PORTABLE WEB APPS · SELF-HOSTED PLATFORM

Servers exist.
Your app doesn't care.

Build a small TypeScript App against Web Standard Request and Response. Run it locally, manage it on your own nosrv Platform, or hand deployment to a supported cloud provider.

  • Web Standard handlers
  • Portable context
  • Versioned deployments
terminal
$ npx nosrv create my-app
$ cd my-app
$ npm install
          $ npx nosrv dev

nosrv dev server
Local: http://127.0.0.1:8787
Ready when you are nosrv deploy
Local Node.js nosrv Platform Cloudflare AWS Lambda Google Functions Azure Functions

ONE SMALL CONTRACT

Write the App.
Choose the runtime later.

nosrv keeps application code focused on HTTP, portable context, and declared resource capabilities. Provider details stay at the deployment boundary, so a useful internal tool does not have to begin as an infrastructure project.

01

Familiar HTTP

Receive a standard Request, return a standard Response, and use ordinary Web APIs.

02

Explicit resources

Declare database, KV, and storage needs and use runtime-provided environment, secrets, and identity instead of importing a cloud SDK.

03

Static and dynamic

Ship an API with a frontend, a static-only site, scheduled work, or a small file collection.

04

AI-readable by design

A compact specification, examples, and JSON management commands give coding agents firm boundaries.

THE APP CONTRACT

Small enough to understand at a glance.

The handler stays portable. Runtime services arrive through ctx, with requirements visible beside the code that uses them.

import { defineApp } from "@nosrv/core";

export default defineApp({
  requires: { db: true },

  async fetch(request, ctx) {
    const { rows } = await ctx.db.sql.query(
      "SELECT * FROM notes",
    );
    return Response.json(rows);
  },
});

SELF-HOSTED, WHEN YOU WANT IT

A home for the small Apps your team keeps making.

Run one lightweight Platform with Docker or systemd. Deploy from another machine, watch linked source during development, and operate Apps from the browser or an agent-friendly CLI.

nosrv Platform dashboard showing several running applications
DeployAuthenticated Artifact upload with digest verification.
OperateStart, stop, restart, inspect logs, and list status.
Roll backKeep immutable versions and activate an earlier one.
PersistPer-App SQLite and files, or shared PostgreSQL and Redis.

START SMALL. KEEP AN EXIT.

01

Create

Begin with one handler, plain HTML, or even a lone index.html.

02

Iterate

Run locally or link source into Platform with automatic restarts.

03

Deploy

Send a versioned Artifact to your Platform or select a public target.

04

Grow

Move to dedicated infrastructure without rewriting the App boundary first.

A SMALL WEB APP CAN START HERE

From first file to a running service.

npx nosrv create my-app