Sign In

@authon/create-app

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authon/create-app

Create a new project with Authon authentication pre-configured

Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@authon/create-app

Scaffold a new project with Authon authentication pre-configured.

Prerequisites

Before using this CLI, create an Authon project and get your API keys:

  • Create a project at Authon Dashboard

    • Click "Create Project" and enter your app name
    • Select the authentication methods you want (Email/Password, OAuth providers, etc.)
  • Get your API keys from Project Settings → API Keys

    • Publishable Key (pk_live_...) — use in your frontend code
    • Test Key (pk_test_...) — for development, enables Dev Teleport
  • Configure OAuth providers (optional) in Project Settings → OAuth

    • Add Google, Apple, GitHub, etc. with their respective Client ID and Secret
    • Set the redirect URL to https://api.authon.dev/v1/auth/oauth/redirect

Test vs Live keys: Use pk_test_... during development. Switch to pk_live_... before deploying to production. Test keys use a sandbox environment with no rate limits.

Usage

npx @authon/create-app

Non-interactive

npx @authon/create-app my-app --template nextjs-app --yes

Templates

TemplateFrameworkSDK
nextjs-appNext.js (App Router)@authon/nextjs
nextjs-pagesNext.js (Pages Router)@authon/nextjs
react-viteReact + Vite@authon/react
vue-viteVue 3 + Vite@authon/vue
nuxtNuxt 3@authon/nuxt
svelteSvelteKit@authon/svelte

What's included

Each generated project includes:

  • Framework-specific configuration
  • Authon authentication setup (provider, middleware)
  • Landing page with sign-in
  • Protected dashboard page
  • .env.example with Authon configuration
  • CLAUDE.md for 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

License

MIT

Keywords

authon

FAQs

Package last updated on 21 Aug 2026

Related posts