Speed-run a SvelteKit app with the MOTA starter


Want a fresh, batteries-included SvelteKit app without wading through prompts and boilerplate? The MOTA starter wraps the official sv CLI with a one-shot installer that scaffolds your app, merges a template, sets sensible dotfiles, handles licensing, and more.



TL;DR

bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)"
Enter fullscreen mode

Exit fullscreen mode

Run that, follow the prompts, and you’re coding. The script calls npx sv create behind the scenes, then automates the rest. (GitHub)



What you get (automatically)

After you run the command, the installer:

  1. Creates a SvelteKit project via npx sv create (you can still pass extra sv flags if you want—see below).
  2. Detects the project folder and cds into it.
  3. Installs a curated set of base deps for this starter.
  4. Optional Auth setup (interactive):

    • None (default)
    • @auth/sveltekit (runs npx auth secret)
    • lucia
  5. Optional Data layer picker (interactive): Prisma, Drizzle ORM, Supabase, Neon, MongoDB, Redis, or none—kicks off tiny init steps where relevant.
  6. Merges a template repository (default: the MOTA template) so you start with a real app structure instead of a blank skeleton.
  7. Initializes git (if needed) and can make a quiet “scaffold” commit for a clean baseline.
  8. Runs npm-check-updates locally to bump ranges, reinstalls, and removes the tool—so you begin on fresh deps.
  9. Augments .gitignore (OS cruft, logs, editor dirs) and can optionally ignore lockfiles (default Yes).
  10. Copies shared assets from the starter repo when you choose them:

    • .editorconfig (default Yes)
    • .github/ISSUE_TEMPLATE (default No)
  11. Sets a LICENSE (interactive):

    • CORE (custom, non-SPDX) with the right package.json field, or
    • Common SPDX licenses (MIT, Apache-2.0, GPL-3.0-or-later, AGPL-3.0-or-later, LGPL-3.0-or-later, BSD-2/3, MPL-2.0, Unlicense, CC0-1.0, ISC, EPL-2.0).
  12. Optional final local commit of all changes (never pushes).

When it’s done, open the new folder and run your dev server with your package manager of choice (the script already installed deps).



Why this saves time

  • One command, all the things – You don’t have to remember the right order of sv + packages + auth + DB + dotfiles + license. It’s orchestrated for you.
  • Real template, not just a skeleton – By default it merges the MOTA template so you start with a working app structure and assets. Less yak-shaving, more shipping.
  • Team-friendly consistency – Everyone spins up the same baseline (git commit included), which makes diffs and reviews saner.
  • Up-to-date deps from the start – The npm-check-updates pass means you aren’t starting behind on versions.
  • Sane housekeeping.gitignore, .editorconfig, and optional .github templates come prepped, so you don’t copy/paste from old projects.



Options you might want

  bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)" \
    -- --template https://github.com/your-org/your-sveltekit-template.git
Enter fullscreen mode

Exit fullscreen mode

The default template is the MOTA repo. Swap it for your own when needed. (GitHub)

  • Forward flags to sv create
    Anything after -- goes straight to sv. For example:
  bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)" \
    -- --name my-app
Enter fullscreen mode

Exit fullscreen mode



Requirements & platform notes

  • Node 18+ (20+ recommended), git, curl, and at least one of: pnpm, bun, yarn, or npm. The script auto-detects what you have.
  • Tested on macOS 14/13 and Ubuntu 22.04+.



Security tip

Running remote scripts is super convenient—and something you should always eyeball first. You can review it before executing:

curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh | less
Enter fullscreen mode

Exit fullscreen mode

Then run it once you’re comfortable:

bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)"
Enter fullscreen mode

Exit fullscreen mode

The repo’s README documents this flow and the safety notes. (GitHub)



Handy links

  • Installer / README (full step-by-step & flags): (GitHub)
  • MOTA template repo (the default template the script merges): (GitHub)



Wrap-up

If you find yourself starting SvelteKit projects often-or onboarding teammates-the MOTA starter condenses 15-30 minutes of setup into a guided minute. One command, clear prompts, production-minded defaults. Copy the TL;DR and go build something.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *