For AI agents: the complete documentation index is available at https://dotpress.dev/llms.txt, the full documentation bundle is available at https://dotpress.dev/llms-full.txt, and this page is available as Markdown at https://dotpress.dev/examples/index.md.

Examples

Runnable apps, from one feature to a complete API. Each one is tested by the CI of the repository, and its code is imported in these pages when the site is built: what you read is what runs.

ExampleWhat it showsServer
ExpressRoutes, validation, returned errors, OpenAPI and ScalarExpress
FastifyDotpress routes on an existing Fastify instance, on Node.js and AWS LambdaFastify
HonoOne app on Node.js and AWS Lambda, with native Hono middlewaresHono
AuthenticationSign-up, login, token rotation, cookie sessions, roles, logoutExpress
EventsEvents emitted by an API, listeners run by a worker through RedisFastify
MailerA contact form sending multilingual MJML emails, with previews and SMTPHono
CacheMemo and batching per request, cache with tags and grace period, RedisExpress
Tasks APIA team task manager: every package in one app, organized by featureFastify

Start with the example of your server, then the one of the feature you need. The Tasks API shows how they fit together in a real project.

Run an example

Every example requires Node.js 22.18 or later, which runs the TypeScript sources directly. Copy it with degit, then install it with your package manager:

npx degit dotpressjs/dotpress/examples/express my-api
cd my-api
npm install
npm run dev

In every example, npm test runs the tests and npm run typecheck checks the types. The examples that use Redis or an SMTP server work without them: their compose.yaml starts them for development.