npm.io
0.2.0-pre.0 • Published 2d ago

@noy-db/ui

Licence
MIT
Version
0.2.0-pre.0
Deps
0
Size
560 kB
Vulns
0
Weekly
0

@noy-db/ui

Framework-agnostic base of the noy-db UI family. Pure TypeScript + CSS, no framework binding.

It holds the two portable layers every binding (@noy-db/ui-nuxt, future @noy-db/ui-next, …) imports:

  • Engine (.) — the schema-driven search/list logic: the query AST (tokenize → parse → resolve → evaluate → group/summary/pills), schemaFromDescribe + cross-collection joins, the detail/form field resolvers, column model, formatting/aggregation, and the useCollectionList composable. All domain-free — it consumes a collection's describe() metadata, never hard-coded fields.
  • Design tokens (./tokens.css) — the --nui-* CSS variables + light/dark themes. A consuming app overrides any of them on :root.
import { useCollectionList, schemaFromDescribe, parse, resolve } from '@noy-db/ui'
import '@noy-db/ui/tokens.css'

A framework binding adds the components on top; this package never renders anything itself.

Docs

Naming: bare = base, suffix = binding. @noy-db/ui is the agnostic core; @noy-db/ui-<framework> packages are thin adapters that depend on it.

Keywords