Skip to content

AdonisJS v7Inertia ReactMIT licensed

Your models. Your admin. Your code.

Pupitre is a Filament-class admin panel framework for AdonisJS. Declare typed resources, reactive forms, tables and server-authorized actions; keep every React component yours.

node ace add @rikology/pupitre
node ace make:resource Post
Pupitre example panel dashboard in light mode: sidebar navigation, stats strip and charts
The dashboard of the example app in apps/example, rendered with the default @rikology/pupitre-ui skin.

Describe it once. Ship a whole admin.

A resource is one file next to your Lucid model. Pupitre reads it and handles the plumbing you would otherwise write by hand.

app/admin/resources/post_resource.tsts
import { defineResource, table, actions } from '@rikology/pupitre'
import Post from '#models/post'
import PostPolicy from '#policies/post_policy'

export default defineResource(Post)
  .policy(PostPolicy)
  .recordTitle('title')
  .form((s) => [
    s.text('title').required().maxLength(200),
    s.select('status').options({
      draft: 'Draft',
      published: 'Published',
    }),
  ])
  .table((t) => t.columns([
    table.text('title').searchable().sortable(),
    table.badge('status'),
  ]))
  .actions({ row: [actions.edit(), actions.delete()] })

What you get from that file

  • Index, create, edit and view pages, with their routes
  • VineJS validation derived from the form schema
  • Lucid queries for search, sort, filters and pagination
  • Bouncer policy checks on pages, records and actions
  • Action transport, modals and notifications
Posts resource table with searchable title column, status badges, filters and row actions

Everything a back office needs

Familiar Filament concepts, rebuilt for Lucid, VineJS, Bouncer and React.

How it works

Server builders stay the source of truth; the browser renders a compiled spec.

  1. 1

    Describe

    Write panels, resources, forms, tables and actions with immutable TypeScript builders on the server.

  2. 2

    Compile

    Pupitre turns the builders into an authorized JSON spec. Simple reactive closures become safe expressions, never source sent to the browser.

  3. 3

    Render

    One Inertia page renders the spec through a catalog of React components. Copy any of them into your app to change it.

Read the full introduction for the request lifecycle and package map.

Official plugins

Opt-in packages you install and register on a panel.

Write your own plugin

Build your first panel

From node ace add to a working resource in a few minutes.

Type to search…

↑↓ navigate↵ selectEsc close