create-temp-ks
v0.3.0
Published
Scaffold a Bun + Express + TypeScript project with optional Redis, S3, Socket.io, and ORM (Mongoose or Prisma) support.
Readme
create-temp-ks
A scaffold CLI that generates a Bun + Express + TypeScript backend, with optional Redis, S3, Socket.io, and your choice of ORM (Mongoose, Prisma, or none).
Quick start
bunx create-temp-ks
# or
npx create-temp-ksAnswer the prompts and a new project will be created in a folder named after your app.
cd my-app
bun install # skipped if you answered yes during scaffolding
bun run devFeatures
- ✅ Project-name prompt with validation
- 📦 Pre-configured Bun + Express + TypeScript
- 🧠 Optional Redis (Bun's built-in client)
- 🧠 Optional S3 (Bun's built-in client)
- 🧠 Optional Socket.io integration
- 🗃️ Choose ORM: Mongoose, Prisma, or none
- ⚙️
.envandpackage.jsonare configured based on your selections - 🧹 Unused features are stripped from the generated project
Usage
create-temp-ks # interactive scaffold
create-temp-ks --help # print usage
create-temp-ks --version # print versionPrompts
| Prompt | Type | Default |
| --- | --- | --- |
| App name | text | my-app |
| Use Redis? | confirm | yes |
| Use S3? | confirm | yes |
| Use Socket.io? | confirm | yes |
| ORM | select (Mongoose / Prisma / None) | Mongoose |
| Run install? | confirm | yes |
What gets generated
my-app/
├── .env # env file populated based on your selections
├── Dockerfile
├── Jenkinsfile
├── eslint.config.js
├── loadEnv.ts # vault loader (optional)
├── loadToken.sh
├── package.json # name, deps adjusted based on selections
├── tsconfig.json
└── src/
├── index.ts # entry point, bootstraps middleware + routes
├── server.ts # socket.io server (only if enabled)
├── config/
├── controllers/
├── databases/ # mongo.ts and/or prisma.ts based on ORM
├── middleware/
├── models/ # mongo and/or prisma based on ORM
├── routers/
├── services/ # redis and/or s3 folders based on selections
├── systems/
└── utility/Development
See CONTRIBUTING.md.
bun install
bun run start # runs src/index.ts directly
bun run build # builds dist/index.jsChangelog
See CHANGELOG.md.
License
MIT © KhunEss
