Skip to content

Holo-JSThe backend your framework is missing

Database, ORM, auth, queues, mail, storage, and realtime for Next.js, Nuxt, and SvelteKit. Keep your framework's routing and rendering. Add the backend.

Holo-JS

A quick taste ​

Define a model for an existing table:

ts
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:

ts
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.

Released under the MIT License.