Skip to content

justplainstuff/plainstack

Repository files navigation

plainstack

Plainstack is a web framework where you start with a single-file. It extends Hono with full-stack concerns like database migrations, background jobs, scheduled jobs, and more.

Features

  • Small API in the spirit of Hono
  • Database migrations
  • Automatic CRUD operations and zod schema for entities
  • Fully typed SQL queries
  • Zod-based form validation
  • Authentication helpers that go well with Hono's OAuth providers
  • Cookie-based session management
  • <Toast /> component for flash messages
  • Background jobs with parallel workers
  • Scheduled jobs to run code at a specific time or interval (cron syntax)
  • JSX client components

Getting Started

Clone the starter repo to get a plainstack app with Tailwind, OAuth and more:

git clone [email protected]:justplainstuff/starter.git
bun dev

or install plainstack manually:

bun install plainstack

Documentation [WIP]

  • Database migrations
  • Create entity
  • Update entity
  • Query entity
  • SQL queries
  • Form validation
  • Sessions
  • Authentication
  • Background jobs
  • Scheduled jobs
  • <Toast />
  • Client Components

Examples

Check out the full list of examples.