Framework Adapters

Standalone API

Build standalone, zero-host HTTP APIs with pure Taser, Vite, and Nitro. Maximum throughput, zero boilerplate, and web-standard Request/Response execution.

The Standalone architecture is the default and recommended way to build backend services with Taser. In this mode, you do not need Express, Fastify, or any other host web framework.

Taser handles request dispatching, middleware pipelines, input validation, and responses directly using high-performance web standards.


Why Standalone?

Zero Host Overhead

Eliminates intermediate framework wrappers. Requests pass directly into Taser's compiled radix tree.

Web Standards First

Handlers interact with native Request, Response, Headers, and Cookies objects.

Deploy Anywhere

Change a single preset in nitro.config.ts to deploy to Cloudflare, Vercel, Node, Bun, Deno, or AWS Lambda.

Instant Dev HMR

Vite loads routes virtually with instantaneous hot-module replacement on file creation or edits.


Quickstart

1. Scaffold a Standalone Project

pnpm create taserjs@latest my-api --framework none --preset node-server -y

2. Project Files

A standalone project contains no host server files:

my-api/
├── vite.config.ts         # Plugins: [taser(), nitro()]
├── nitro.config.ts        # Deployment preset
├── src/
│   ├── taser.ts           # Router builder
│   ├── context.ts         # Boot and request context
│   └── routes/            # File-based endpoints
└── package.json

3. Run Development Server

pnpm dev

Taser starts on http://localhost:3000.

4. Build for Production

pnpm build

Depending on your deployment mode, Taser packages your output into .output/ (with Nitro presets) or dist/ (with standalone Vite).