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)"
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:
-
Creates a SvelteKit project via
npx sv create
(you can still pass extrasv
flags if you want—see below). -
Detects the project folder and
cd
s into it. - Installs a curated set of base deps for this starter.
-
Optional Auth setup (interactive):
-
None
(default) -
@auth/sveltekit
(runsnpx auth secret
) lucia
-
- Optional Data layer picker (interactive): Prisma, Drizzle ORM, Supabase, Neon, MongoDB, Redis, or none—kicks off tiny init steps where relevant.
- Merges a template repository (default: the MOTA template) so you start with a real app structure instead of a blank skeleton.
- Initializes git (if needed) and can make a quiet “scaffold” commit for a clean baseline.
-
Runs
npm-check-updates
locally to bump ranges, reinstalls, and removes the tool—so you begin on fresh deps. -
Augments
.gitignore
(OS cruft, logs, editor dirs) and can optionally ignore lockfiles (default Yes). -
Copies shared assets from the starter repo when you choose them:
-
.editorconfig
(default Yes) -
.github/ISSUE_TEMPLATE
(default No)
-
-
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).
-
CORE (custom, non-SPDX) with the right
- 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
The default template is the MOTA repo. Swap it for your own when needed. (GitHub)
-
Forward flags to
sv create
Anything after--
goes straight tosv
. For example:
bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)" \
-- --name my-app
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
Then run it once you’re comfortable:
bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/bchainhub/sveltekit-starter/sv-starter.sh)"
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.