# hono-bento - [Introduction](/docs.md): An opinionated framework for Hono APIs, with one folder per feature and schemas shared across your monorepo. - [Getting started](/docs/getting-started.md): Install hono-bento and build your first feature, one file at a time. - [The layout](/docs/layout.md): One folder per feature, one list of features, schemas apart from the app. In one package or a monorepo. The rules, and the test that keeps them. - [Monorepo setup](/docs/monorepo.md): Put your schemas in a workspace package that the API and every other app import. - [Working with agents](/docs/agents.md): Why the layout suits coding agents, and the files and endpoints that help them. - **Guides** - [Add a feature](/docs/guides/add-a-feature.md): Create a new feature folder and register it with one line in specs.ts. - [Add an endpoint](/docs/guides/add-an-endpoint.md): Add a route to an existing feature, touching one schema file and one feature folder. - [Prisma and Postgres](/docs/guides/prisma.md): Set up a db package with Prisma 7 and Postgres, wire it into handlers through deps, and run it locally and in CI. - [Drizzle, Kysely and others](/docs/guides/other-orms.md): Use any database library through deps. Drizzle and Kysely examples, with Postgres error mapping. - [Consuming schemas](/docs/guides/consuming-schemas.md): Build a typed client in another app that validates requests and parses responses with the API's own schemas. - [Testing](/docs/guides/testing.md): Test each feature through the real app, and keep the layout honest with hono-bento check. - **Concepts** - [Specs](/docs/concepts/specs.md): A feature's routing table, the source of truth for its routes and its OpenAPI docs. - [Handlers](/docs/concepts/handlers.md): One function per route, in a file named after its operation, typed from its route's contract. - [Streams](/docs/concepts/streams.md): Server-sent events and JSON lines, typed and checked event by event like any other response. - [Database](/docs/concepts/database.md): Give handlers a database (or anything else) through a typed deps object, and turn ORM errors into HTTP errors. - [Authentication](/docs/concepts/auth.md): Pluggable strategies resolve who is calling; an authorizer decides what they may do. - [Validation](/docs/concepts/validation.md): Zod schemas validate the body, query and path params before your handler runs. - [Errors](/docs/concepts/errors.md): Every failure becomes the same JSON shape, and internal details never reach clients. - [Verification](/docs/concepts/verification.md): What catches each kind of mistake, from the type checker to tests generated from your specs. - [OpenAPI](/docs/concepts/openapi.md): Generate an OpenAPI 3.1 document from the same specs you mount. - **Reference** - [The CLI](/docs/cli.md): hono-bento init starts an app, hono-bento add grows it, and hono-bento check keeps it in the layout. - [API reference](/docs/reference.md): Every export, by entry point.