create-nen-app
v0.1.0
Published
CLI scaffold for adding Nen post-quantum payload encryption to a Next.js App Router project.
Readme
create-nen-app
The scaffolding CLI for Nen. Wires post-quantum, end-to-end encrypted API calls into a Next.js App Router project in one command.
Usage
npx create-nen-appIt will:
- install
@withnen/clientand@withnen/server, - patch
next.config.tsfor WebAssembly (asyncWebAssembly), - generate the session routes (
/api/nen/[action]→ handshake / rotate / terminate / status), - generate a protected example route and a client snippet,
- print next steps.
After it finishes, swap fetch for nenFetch on the client and wrap your routes
with withNen on the server — see the
client and server READMEs.
Develop
npm run build # tsup → dist/index.js (the bin)
npm run dev # watch mode
npm start # run the built CLI locallyEntry point: src/index.ts. Built with tsup; dependencies: prompts,
picocolors, commander.
