Skip to content

aguspe/tiler-ts

Repository files navigation

tiler-ts

Plug-and-play dashboards for TypeScript / Node.js. Playwright-first.

CI Docs Docs site MIT license


tiler-ts is a set of npm packages for building dashboards in TypeScript / Node.js — schema-first data, 14 first-party widgets, and a drag-and-drop editor that auto-saves over the wire. The package set is Playwright-friendly out of the box: drop the reporter into playwright.config.ts and you get a self-contained HTML dashboard at the end of every test run, or run the live server and stream results in real time.

The editor on its default test-automation dashboard

30-second tour

npx @aguspe/tiler-cli init     # scaffolds tiler.config.ts + .env.example
npx @aguspe/tiler-cli serve    # boots Fastify; opens http://localhost:4567/dashboards

Drop a widget on the grid with the + Add Panel button. The drawer shows a live preview that updates as you edit the JSON; Use example fills it with the widget's canonical config. Edits auto-save; ⌘Z undoes; TV flips into kiosk mode for displays; 🌙 toggles dark.

For Playwright runs (no server, just a static report):

npm i -D @aguspe/tiler-playwright
// playwright.config.ts
import { defineConfig } from "@playwright/test";
export default defineConfig({
  reporter: [["@aguspe/tiler-playwright", { outDir: "tiler-report" }]],
});

The deeper how-to lives at aguspe.github.io/tiler-ts — start with the intro, then pick a path (static reporter, live server, or the JSON-import bridge).

Examples

Workspace pipeline

Command What it does
pnpm test Vitest across packages — 270+ tests covering schemas, resolvers, widgets, SSR, reporter, server routes, sqlite store, refresh manager, editor
pnpm typecheck tsc --noEmit across packages
pnpm lint Biome lint + format check
pnpm format Biome format --write
pnpm build tsup + Vite builds for each package
pnpm size size-limit budget enforcement
pnpm deps dependency-cruiser boundary checks

CI runs all of the above on every PR (Node 20 + 22, ubuntu + macos).

Packages

Package What it does
@aguspe/tiler-core Schemas, registry, MemoryStore, helpers, presets, buildSnapshot, defineConfig
@aguspe/tiler-widgets 14 widgets + design tokens
@aguspe/tiler-viewer Read-only SSR + hydration
@aguspe/tiler-playwright Static-report Playwright reporter
@aguspe/tiler-server Fastify + sqlite + ingestion + WebSocket
@aguspe/tiler-editor Drag/drop editor with auto-save + drawer preview
@aguspe/tiler-cli tiler init/serve/doctor/import-playwright-json

License

MIT

About

Plug-and-play dashboards for TypeScript / Node.js. Playwright-first.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors