create-routerbase-app
v0.1.0
Published
Scaffold a minimal Node.js app for the RouterBase OpenAI-compatible API.
Maintainers
Readme
Create RouterBase App
RouterBase is an OpenAI-compatible API gateway for calling many AI models through one base URL. This package scaffolds a minimal Node.js starter app that calls RouterBase chat completions with plain fetch.
Create A Project
npm create routerbase-app@latest my-routerbase-appOr:
npx create-routerbase-app my-routerbase-appThen:
cd my-routerbase-app
cp .env.example .env
npm startGenerated Files
package.json: npm scripts forstart.index.js: a dependency-free RouterBase chat completion example..env.example: where to placeROUTERBASE_API_KEY.README.md: quick usage notes for your generated app.
CLI Options
create-routerbase-app my-app --model google/gemini-2.5-flash
create-routerbase-app my-app --force--model <id>: Sets the default model in the generated starter.--force: Allows creating into a non-empty directory.
