New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@strav/create

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strav/create

Scaffold a new Strav application

latest
npmnpm
Version
0.2.8
Version published
Maintainers
1
Created
Source

@strav/create

Scaffold a new Strav application.

Usage

bunx @strav/create@latest my-app --api   # headless REST API
bunx @strav/create@latest my-app --web   # full-stack with views
bunx @strav/create@latest my-app         # interactive prompt

Templates

  • api — Headless REST API with CORS enabled
  • web — Full-stack with .strav views, sessions, and static files

Options

bunx @strav/create <project-name> [options]

--api                     Headless REST API template
--web                     Full-stack template with views and static files
--template, -t api|web    Alias for --api / --web
--db <name>               Database name (default: project name)
-h, --help                Show help

What's scaffolded

my-app/
├── index.ts              Server entry point
├── strav.ts              CLI (migrations, generators)
├── config/               Configuration files
├── database/schemas/     Schema definitions
├── start/routes.ts       Route registration
├── tests/                Test files
├── .env                  Environment variables
└── package.json

License

MIT

Keywords

strav

FAQs

Package last updated on 07 Apr 2026

Related posts