@quranjs/create-app
v0.2.0
Published
Scaffold Quran Foundation starter apps
Downloads
137
Readme
@quranjs/create-app
Scaffold Quran Foundation starter apps with one command.
Quick start
npx @quranjs/create-app@latest my-quran-app --template next --package-manager npm --install --git --sdk-source npm --yesUse SvelteKit instead:
npx @quranjs/create-app@latest my-quran-app --template sveltekit --package-manager npm --install --git --sdk-source npm --yesTemplates
next— Next.js App Router starter.sveltekit— SvelteKit starter.
Both templates keep Quran Foundation secrets server-side and use the runtime-split SDK boundary:
@quranjs/api/publicfor browser-safe OAuth initiation.@quranjs/api/serverfor token exchange, refresh, and backend API calls.
Flags
--template next|sveltekit--package-manager npm|pnpm|yarn|bun--install/--no-install--git/--no-git--yes--sdk-source npm|local--sdk-local-path <path>--app-base-url <url>
Required environment variables in generated apps
APP_BASE_URLCLIENT_IDCLIENT_SECRETSESSION_SECRET
Keep CLIENT_SECRET and SESSION_SECRET out of browser code and public config.
