The B.E.D. Stack Ecosystem

Understanding the technologies that power Bedest.

Bun

Bun is a fast all-in-one JavaScript runtime. It serves as our package manager, test runner, bundler, and extremely fast execution environment. Bedest leverages Bun's native performance to achieve microsecond API responses.

ElysiaJS

Elysia is an ergonomic, fast web framework for Bun. Bedest uses Elysia for routing, validation (via TypeBox), dependency injection (Context), and its powerful macro system for security guards (RoleGuard, PlanGuard).

Drizzle ORM

Drizzle is a headless TypeScript ORM that lets you write SQL-like queries with full type safety. Bedest integrates Drizzle tightly, allowing us to enforce Row-Level Security (RLS) directly in our schema definitions.

PostgreSQL

The robust database powering the ecosystem. For the multi-tenant version, we heavily utilize Postgres's native Row-Level Security (RLS) to physically isolate tenant data at the database level.

PGlite

Used specifically for our test environment. PGlite provides an in-memory Postgres implementation, meaning you don't need Docker running to execute our lightning-fast, fully isolated integration test suites.