@guren/server
v2.26.0
Published
HTTP layer of the Guren framework, on Hono: routing, controllers, middleware, auth, sessions, queues and the AWS Lambda adapter. Applications import it through @guren/core.
Maintainers
Readme
@guren/server
The HTTP layer of Guren, a Bun-first fullstack TypeScript framework with Laravel-style conventions. Routing, controllers, middleware, auth, sessions, queues, mail, events, and the AWS Lambda adapter, built on Hono.
Application code should not import this package
Install and import @guren/core instead. It re-exports this package's whole public API, so there is one import specifier to learn and one to keep working across releases:
bun add @guren/coreimport { Controller, Router, createApp } from '@guren/core'Starting a new app? Scaffold one, and this is wired up for you:
bunx create-guren-app my-app --authIt is published separately because the framework is released as independently versioned packages, not because application code is meant to reach for it. Depend on it directly only when you are writing a Guren plugin against the HTTP layer.
What is in here
| Area | Contents |
|------|----------|
| HTTP | Application, Router, Controller, middleware, exception handling, CSRF, CORS, rate limiting |
| Auth | Sessions, guards, password hashing, API tokens, OAuth, authorization policies |
| Subsystems | Queues, mail, events, notifications, cache, broadcasting, storage, scheduling, i18n, logging, health checks |
| Runtimes | @guren/server/lambda for AWS Lambda, @guren/server/redis for Redis-backed stores |
Develop on Bun; deploy to Bun, AWS Lambda on the Node.js runtime, Vercel, or Cloudflare Workers. The default password hasher writes node:crypto scrypt on every runtime, so a hash written on Bun verifies on Node.js.
Documentation
License
MIT
