Skip to content

Template catalog

Project templates

NameLanguageStart commandIncluded examples
basic-tsTypeScripttsx watch src/server.tsStatic page, GET, POST, WebSocket, morgan
basic-jsJavaScriptnode --watch src/server.jsJavaScript equivalent of basic-ts
static-tsHTML / CSS / JavaScripttyoi run --openStatic site, 404 page, browser JavaScript type checking
api-tsTypeScripttsx watch src/server.tsHealth endpoint, task listing and creation, input validation, in-memory store
realtime-tsTypeScripttsx watch src/server.tsWebSocket chat, connection management, message validation

All templates require Node.js 20.14 or later and use ESM. The package name in package.json and the tyoi-server version are replaced when the project is generated.

Configuration templates

NameOutputMain settings
basictyoi.config.jsport, autoPort, public, api, LAN, QR code, browser, morgan

Common scripts

TypeScript server templates provide dev, typecheck or build, and start. static-ts has no server code to compile and starts directly with tyoi run.

If a template file already exists at the destination, review the copy result before using it. The create command itself rejects an existing destination directory.