# Tupik > [![npm](https://img.shields.io/npm/v/@tupik/core?label=%40tupik%2Fcore)](https://www.npmjs.com/package/@tupik/core) [![npm org](https://img.shields.io/badge/npm-%40tupik-cb3837)](https://www.npmjs.com/org/tupik) [![license](https://img.shields.io/npm/l/@tupik/core)](LICENSE) Agents writing or reviewing Tupik code should load the Agent Skill first: it holds the rules, recipes and checks. ## Docs - [Documentation](https://tupik.org/docs/): guides, middleware and API reference - [Full text for language models](https://tupik.org/llms-full.txt): the skill, its references and every package README in one file ## Agent skill - [Tupik Agent Skill](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/SKILL.md): Tupik is a TypeScript web framework that is secure by construction: every route says who may call it, validates its input, classifies sensitive fields and raises typed errors. - [Access rules](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/access.md): Every route has exactly one access rule: its own `access` option, or the module default set with `createModule(prefix, { access })` or `.access(rule)` (which covers the routes declared after it). - [Validation, data classes and errors](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/data-and-errors.md): `schema` takes any Standard Schema v1 validator (Zod, Valibot, ArkType, or `fromAjv`/`fromTypeBox`/`fromTypia` from `@tupik/schema` for precompiled validators). - [Middleware](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/middleware.md): All middleware comes from `@tupik/middleware` (Web Standards only; runs on Node, Bun and Workers). - [Common mistakes and their fixes](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/mistakes.md): Each block shows the wrong code (marked `wrong`) next to the fix. - [Recipes](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/recipes.md): Each recipe is a complete module that compiles. - [Tooling: prove the rules hold](https://github.com/CodeHamper/tupikjs/blob/main/skills/tupik/references/tooling.md): Types catch a missing `access`. ## Packages - [@tupik/bun](https://github.com/CodeHamper/tupikjs/blob/main/packages/bun/README.md): Bun adapter for **Tupik**: serves an app with `Bun.serve`. - [@tupik/client](https://github.com/CodeHamper/tupikjs/blob/main/packages/client/README.md): Type-safe RPC client for **Tupik**. - [@tupik/core](https://github.com/CodeHamper/tupikjs/blob/main/packages/core/README.md): Zero-dependency core of **Tupik**, a multi-runtime TypeScript web framework: Radix Tree router, fluent modules (no decorators, no reflection), middleware pipeline and an app engine built on Web Standards (`Request`/`Response`). - [create-tupik](https://github.com/CodeHamper/tupikjs/blob/main/packages/create-tupik/README.md): Scaffold a new **Tupik** app for Node.js, Bun or Cloudflare Workers. - [@tupik/edge](https://github.com/CodeHamper/tupikjs/blob/main/packages/edge/README.md): Edge adapter for **Tupik**: exposes an app as a fetch handler for Cloudflare Workers, Deno and Fastly Compute. - [@tupik/env](https://github.com/CodeHamper/tupikjs/blob/main/packages/env/README.md): Environment validated at startup for **Tupik**: typed variables, secrets that never reach logs and Cloudflare bindings checked by shape. - [@tupik/hono](https://github.com/CodeHamper/tupikjs/blob/main/packages/hono/README.md): Mount a **Tupik** app inside a [Hono](https://hono.dev) app and move an API to Tupik one route at a time. - [@tupik/infra](https://github.com/CodeHamper/tupikjs/blob/main/packages/infra/README.md): Universal production building blocks for **Tupik**: pluggable key/value storage with TTL, a structured JSON logger and duck-typed OpenTelemetry tracing. - [@tupik/lint](https://github.com/CodeHamper/tupikjs/blob/main/packages/lint/README.md): Static analysis for **Tupik** handlers, built on the [Oxc](https://oxc.rs) parser (Rust, via `oxc-parser`). - [@tupik/mcp](https://github.com/CodeHamper/tupikjs/blob/main/packages/mcp/README.md): Turns a **Tupik** app into an MCP server (Streamable HTTP, JSON-RPC 2.0, stateless). - [@tupik/middleware](https://github.com/CodeHamper/tupikjs/blob/main/packages/middleware/README.md): Official universal middlewares for **Tupik**: `cors`, `rateLimit`, `jwt`, `logger`, `compress`, `helmet`, `requestId`, `cookies`, `timing` and `csrf`, plus the SaaS set: `session`, `tenant`, `clientIp`, `bodyLimit`, `timeout`, `webhookSignature`, `idempotency`, `captcha`, `apiKey`, `audit`, `errorReporter`, `etag`, `cacheControl`, `edgeCache`, `locale`, `maintenance`, `basicAuth` and `ipAllow`. - [@tupik/node](https://github.com/CodeHamper/tupikjs/blob/main/packages/node/README.md): Node.js HTTP driver for **Tupik**. - [@tupik/openapi](https://github.com/CodeHamper/tupikjs/blob/main/packages/openapi/README.md): OpenAPI 3.1 generator for **Tupik** apps, built from the route metadata (`access`, data classes, error catalog), plus the `tupik` CLI: security audit, personal data map (LGPD/GDPR) and contract snapshot/breaking-change check. - [@tupik/password](https://github.com/CodeHamper/tupikjs/blob/main/packages/password/README.md): Argon2id password hashing for **Tupik**, compiled from Rust (RustCrypto `argon2`) to WebAssembly. - [@tupik/schema](https://github.com/CodeHamper/tupikjs/blob/main/packages/schema/README.md): [Standard Schema v1](https://standardschema.dev) integration for **Tupik**: validate route input with any compliant library (Zod, Valibot, ArkType and others), turn failures into RFC 9457 `application/problem+json` responses, and compile fast JSON serializers. - [@tupik/testing](https://github.com/CodeHamper/tupikjs/blob/main/packages/testing/README.md): In-process TestKit for **Tupik** apps: inject requests through `app.fetch` without opening a socket, and assert route contracts (`schema.response`) and RFC 9457 problems. - [@tupik/uws](https://github.com/CodeHamper/tupikjs/blob/main/packages/uws/README.md): [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js) adapter for **Tupik**: serves an app on the uWS HTTP server instead of `node:http`. ## Optional - [README](https://github.com/CodeHamper/tupikjs/blob/main/README.md): overview, minimal example and status - [Security policy](https://github.com/CodeHamper/tupikjs/blob/main/SECURITY.md): Tupik exists to make APIs harder to get wrong, so security reports get priority over feature work. - [Contributing to Tupik](https://github.com/CodeHamper/tupikjs/blob/main/CONTRIBUTING.md): Thanks for helping.