Svelte Commerce
A standalone open-source storefront built with SvelteKit, headless across 26 commerce backends. MIT licensed.
Keep 100% of every direct book sale and own your reader email list. Author website, newsletter, pre-orders and analytics in one place, free to start. Also for course creators and musicians.
CommerceTypeScript · JavaScriptGitHub @andybedford62-AIOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗A complete SaaS platform for authors to build and manage professional websites with book catalogs, digital sales, newsletter capture, and flip book previews.
npm install
cp .env.example .env.local # fill in your values
npx prisma migrate dev --name init
npm run dev
| URL | What you see |
|---|---|
http://localhost:3000 | AuthorLoft marketing page |
http://apbedford.localhost:3000 | Demo author site (A.P. Bedford) |
http://localhost:3000/admin/dashboard | Admin panel |
http://localhost:3000/login | Login |
| Layer | Technology |
|---|---|
| Framework | Next.js 15, App Router, TypeScript |
| Styling | Tailwind CSS |
| Database | PostgreSQL + Prisma ORM |
| Auth | NextAuth.js (email + Google OAuth) |
| Payments | Stripe (subscriptions + book purchases) |
| Storage | AWS S3 |
| Multi-tenancy | Subdomain middleware routing |
src/
├── app/
│ ├── (marketing)/ # AuthorLoft landing page + pricing
│ ├── (auth)/ # Login, register
│ ├── (author-site)/[domain] # Public author site (home, books, about, contact)
│ ├── (admin)/admin/ # Author admin panel
│ ├── (superadmin)/ # Platform super-admin
│ └── api/ # Auth, newsletter, Stripe webhook, downloads
├── components/
│ ├── ui/ # Button, Input, Badge
│ ├── author-site/ # Nav, Footer, BookCard, NewsletterForm
│ └── admin/ # AdminSidebar
├── lib/ # auth, db, stripe, s3, utils, placeholder-data
├── middleware.ts # Subdomain routing
prisma/schema.prisma # Full data model
| Feature | Free | Standard ($12/mo) | Premium ($29/mo) |
|---|---|---|---|
| Books | 5 max | Unlimited | Unlimited |
| Custom domain | No | Yes | Yes |
| Digital sales | No | Yes | Yes |
| Flip books | No | Yes | Yes |
| Analytics | No | Basic | Advanced |
*.authorloft.com → Vercelhttps://authorloft.com/api/stripe/webhook