Skip to content

Web apps · Express

Express REST API

A TypeScript Express API with routing, validation, and an in-memory store you can swap for PostgreSQL.
routes · read from the template's source

$ express routes

  • GET/
  • GET/api/todos
  • POST/api/todos
  • PATCH/api/todos/:id
  • DELETE/api/todos/:id

$ npm run dev

5 routes · API only, no screen to capture4 HTTP methods

These routes are read from this template's own source files. It is an API, so there is no screen to capture.

What you get

An Express 4 server written in TypeScript and run with tsx in development. It exposes a small todos resource with zod-validated request bodies and an in-memory array; replace the array with a database client and the handlers stay the same.

Files, exactly as copied.

Exactly what is copied into a new project: 5 files, nothing generated.

Raw data: GET /api/v1/templates/node-express-api

tsconfig.json
tsconfig.json
{  "compilerOptions": {    "target": "ES2022",    "module": "NodeNext",    "moduleResolution": "NodeNext",    "outDir": "dist",    "rootDir": "src",    "strict": true,    "esModuleInterop": true,    "skipLibCheck": true  },  "include": [    "src"  ]}

Remix

Remix this template.

Describe what to change and the agent starts from Express REST API's files. The box is already started for you: finish “Start from Express REST API and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Node.js + Express, so installs are fast.

  • express^4.21.0
  • zod^3.24.0
  • tsx^4.19.0
  • typescript^5.8.0

How it runs

Framework
Node.js + Express
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
3000
Entry route
/api/todos

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on Express REST API

Create a free account, start from this template, and ask the AI agent to turn it into your app.