@authon/create-app
v0.1.0
Published
Create a new project with Authon authentication pre-configured
Maintainers
Readme
create-authon-app
Scaffold a new project with Authon authentication pre-configured.
Usage
npx create-authon-appNon-interactive
npx create-authon-app my-app --template nextjs-app --yesTemplates
| Template | Framework | SDK |
|----------|-----------|-----|
| nextjs-app | Next.js (App Router) | @authon/nextjs |
| nextjs-pages | Next.js (Pages Router) | @authon/nextjs |
| react-vite | React + Vite | @authon/react |
| vue-vite | Vue 3 + Vite | @authon/vue |
| nuxt | Nuxt 3 | @authon/vue |
| svelte | SvelteKit | @authon/svelte |
| express | Express.js | @authon/node |
| node | Plain Node.js | @authon/node |
What's included
Each generated project includes:
- Framework-specific configuration
- Authon authentication setup (provider, middleware)
- Landing page with sign-in
- Protected dashboard page
- Server-side token verification (where applicable)
.env.examplewith Authon configurationCLAUDE.mdfor AI agent context
Options
-t, --template <template> Use a specific template (skip framework prompt)
-y, --yes Skip prompts and use defaults
-h, --help Show help
-v, --version Show version