Database and Migrations
SQLite, Postgres, and MySQL with migrations, seeders, transactions, and a fluent query builder.
Database, ORM, auth, queues, mail, storage, and realtime for Next.js, Nuxt, and SvelteKit. Keep your framework's routing and rendering. Add the backend.
SQLite, Postgres, and MySQL with migrations, seeders, transactions, and a fluent query builder.
Typed models with relationships, scopes, casts, observers, and factories. Column names autocomplete.
One schema validates on the server and the client, with typed errors and framework form helpers.
Login, registration, sessions, email verification, password reset, MFA, API tokens, and social login.
Policies and abilities that work with or without auth, and return 403 or 404 the way you choose.
CSRF protection, rate limiting, and CORS, wired into each framework's middleware.
Run work in the background with sync, database, or Redis drivers. Retry and inspect failed jobs.
Dispatch domain events, react with listeners, queue them, or wait until the transaction commits.
Write mail in code or Markdown, preview it in the browser, and send notifications by email, database, broadcast, or your own channel.
File, memory, Redis, or database cache stores, with locks and cached queries.
Local, public, and S3 disks, plus a media library that attaches files and image conversions to models.
Push events to the browser over WebSockets, and keep query results live without writing socket code.
Define a model for an existing table:
import { defineModel, hasMany } from '@holo-js/db'
export default defineModel('posts', {
fillable: ['title', 'body', 'status'],
relations: {
comments: hasMany('Comment', { foreignKey: 'post_id' }),
},
})Then query it from any server route. Column names and results are typed from your migrations:
import Post from './server/models/Post'
const posts = await Post
.with('comments')
.where('status', 'published')
.latest()
.paginate(10)
const draft = await Post.create({
title: 'Hello Holo',
body: 'My first post.',
status: 'draft',
})Start the Quick Start to build this in about ten minutes.