Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justplainstuff/plainstack
Single-file web framework
https://github.com/justplainstuff/plainstack
bun hono kysely plainjob plainstack postgres sql sqlite typescript zod
Last synced: about 8 hours ago
JSON representation
Single-file web framework
- Host: GitHub
- URL: https://github.com/justplainstuff/plainstack
- Owner: justplainstuff
- License: mit
- Created: 2024-05-20T18:02:05.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-13T11:19:39.000Z (3 months ago)
- Last Synced: 2025-01-14T15:12:18.062Z (7 days ago)
- Topics: bun, hono, kysely, plainjob, plainstack, postgres, sql, sqlite, typescript, zod
- Language: TypeScript
- Homepage: https://www.plainstack.dev
- Size: 2.72 MB
- Stars: 113
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# plainstack
Plainstack is a web framework where you start with a single-file. It extends [Hono](https://github.com/honojs/hono) with full-stack concerns like database migrations, background jobs, scheduled jobs, and more.
## Features
- Small API in the spirit of [Hono](https://github.com/honojs/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
- `` 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](https://github.com/justplainstuff/starter) repo to get a plainstack app with Tailwind, OAuth and more:
```bash
git clone [email protected]:justplainstuff/starter.git
``````bash
bun dev
```or install `plainstack` manually:
```bash
bun install plainstack
```## Documentation [WIP]
- Database migrations
- Create entity
- Update entity
- Query entity
- SQL queries
- Form validation
- Sessions
- Authentication
- Background jobs
- Scheduled jobs
- ``
- Client Components## Examples
Check out the [full list of examples](https://github.com/justplainstuff/plainstack/tree/main/example).