npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@telamonjs/ui

v1.23.0

Published

Admin framework for Next.js + React: declarative CRUD (CrudConfig + TanStack Query), 36-type field system, rich dialogs, app shell, dashboards and charts

Readme

@telamonjs/ui

npm License: MIT

The TelamonJS admin framework for Next.js and React. A single CrudConfig object declares a module (list, form, queries, mutations, dialogs) and ListPage renders the whole CRUD experience: table, toolbar, filters, dialogs and exports. Around it you get an app shell with a command palette, a 36-type field renderer registry, dashboards, charts and a queue dashboard. The public API is pinned by a snapshot test, and accessibility is asserted with axe.

Install

The fastest path is a generated app, which comes with everything wired up: npx -p @telamonjs/cli create-telamonjs-app my-admin. To add the package to an existing Next.js app:

pnpm add @telamonjs/ui next next-auth react react-dom react-hook-form sonner zod next-intl @tanstack/react-query

| Peer dependency | Range | | --- | --- | | next | ^15.5.29 \|\| ^16.4.6 | | next-auth | ^5.0.0-beta.20 | | react | ^18.0.0 \|\| ^19.0.0 | | react-dom | ^18.0.0 \|\| ^19.0.0 | | react-hook-form | ^7.0.0 | | sonner | ^1.7.1 \|\| ^2.0.7 | | zod | ^3.0.0 | | next-intl | ^4.14.0 | | @tanstack/react-query | ^5.90.2 | | jspdf (optional) | ^4.2.1 | | jspdf-autotable (optional) | ^5.0.7 |

DashboardGrid needs the react-grid-layout stylesheet (import 'react-grid-layout/css/styles.css'), and jspdf + jspdf-autotable only for PDF export (Excel and CSV export need no extra package). Then load the styles and the Tailwind preset:

// app/layout.tsx
import '@telamonjs/ui/styles'

// tailwind.config.js (darkMode: 'class')
presets: [require('@telamonjs/ui/tailwind-preset')]

Import @tanstack/react-query and next-intl directly in your app. This package deliberately does not re-export them: a re-export creates a second instance under optimizePackageImports, and you get "No QueryClient set".

A module in one object

'use client' // config.tsx needs it: the hooks run on the client

import { type CrudConfig, ListPage } from '@telamonjs/ui'

export const config: CrudConfig<Product, ProductFormData> = {
  module: { name: 'products', title: 'Products', route: '/admin/products' },
  list: { title: 'Products', columns, searchPlaceholder: 'Search products…', serverSidePagination: true },
  form: { sections, validation: productSchema },
  query: { queryKey: ['products'], queryFn: productsApi.list }, // must resolve PaginatedResponse<Product>
  mutations: {
    create: { mutationFn: async d => ({ success: true, data: await productsApi.create(d) }), invalidates: [['products']] },
    update: { mutationFn: async ({ id, data }) => ({ success: true, data: await productsApi.update(id, data) }), invalidates: [['products']] },
    delete: { mutationFn: async ({ id }) => { await productsApi.delete(id); return { success: true } }, invalidates: [['products']] },
  },
}

// page.tsx
<ListPage<Product> config={config} />

Field types are 'text', 'email', 'relationship' (options come from an async loadField), 'multiselect', 'richtext' and 31 more; there is no 'select' type. Forms are CSS Grid: widen a field with span, not a class.

What's inside

| Area | Highlights | | --- | --- | | Pages | ListPage, DetailPage, CreatePage, EditPage | | Dialogs | CreateDialog, EditDialog, ViewDialog, ViewPortalDialog (launcher grid, inline per-section editing), DialogFrame, SplitDialogFrame, ConfirmActionDialog (validated inputs incl. dates, free body, dialog- or caller-controlled pending) | | Forms | AdminForm, CreateForm, EditForm, Stepper, FileUpload, useUnsavedChangesGuard | | Auth | SignInForm (credentials over next-auth, same-origin ?callbackUrl only), ForgotPasswordForm | | Field system | 36 field types; registerFieldRenderer adds your own | | Shell | AdminShell (sidebar, breadcrumb, header, Cmd+K palette fed from your menu), ShellPage, AdminTabs, ImpersonationBanner | | Data | DataTable, VirtualDataTable, InfiniteList, bulk actions, Excel/CSV/PDF export, QueryErrorState (error + pending "Try again" for your own useQuery) | | Admin | PermissionMatrix (roles × permissions grid), AuditChangesViewer (field diff, before/after or payload, secrets masked) | | Dashboards and charts | DashboardGrid, DashboardShell, StatCard, ChartWidget, LineChart, BarChart, PieChart, AreaChart, KPICard | | Queue UI | @telamonjs/ui/queue: QueueTabbedDashboard, QueueApiProvider, createNestJSAdapter, a frontend for @telamonjs/queue | | Server | @telamonjs/ui/server: createPaginationContext, buildPrismaOrderBy (both list.sortParam wire forms, _count.<relation>), createPaginatedResponse, revalidatePathAction | | i18n | @telamonjs/ui/i18n: msg, useText, LocaleSwitcher; UI copy ships in pt-BR (default), en and es |

Menu icons are strings resolved through setIconResolver(): the icon registry belongs to your app.

Entry points

  • @telamonjs/ui
  • @telamonjs/ui/server
  • @telamonjs/ui/charts
  • @telamonjs/ui/business
  • @telamonjs/ui/detail
  • @telamonjs/ui/styles (stylesheet)
  • @telamonjs/ui/tailwind-preset (file ./tailwind-preset.js)
  • @telamonjs/ui/queue
  • @telamonjs/ui/cards
  • @telamonjs/ui/pickers
  • @telamonjs/ui/filters
  • @telamonjs/ui/menu
  • @telamonjs/ui/i18n

Every name each entry point exports, runtime and types: Public API index.

Full docs

Full docs → getting started, components and patterns (MDX sources of the docs site, readable on GitHub).

MIT licensed. Base primitives are derived from shadcn/ui; see THIRD_PARTY_NOTICES.md.