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

@design.estate/dees-catalog

v28.5.0

Published

A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.

Readme

@design.estate/dees-catalog

Lit and TypeScript web components for application shells, forms, tables, charts, storage, media, and agent workspaces. Shared theme tokens and controls keep these surfaces consistent.

Issue Reporting and Security

For reporting bugs, issues, or security vulnerabilities, please visit community.foss.global/. This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a code.foss.global/ account to submit Pull Requests directly.

Find the right component

Start with the task below, then open the component's API and source in the component index. Search by both the UI pattern and the element tag before implementing a custom control. For example, segmented control, view switcher, view-toggle, and single-selection toggle all lead to dees-input-multitoggle.

| Task or UI pattern | Existing component | Selection guidance | | --- | --- | --- | | Switch between a few views, modes, or time periods; segmented control | dees-input-multitoggle | One selected value in a shared track. Use keyed options when labels differ from stored values. | | Choose one form answer from visible radio options | dees-input-radiogroup | Radio indicators, required validation, optional payload values. | | Turn one setting on or off | dees-input-toggle, dees-input-checkbox | Boolean setting or checkable form choice. Multitoggle's boolean mode is useful when both alternatives need explicit labels. | | Toggle an independent toolbar option | dees-button with pressed, dees-input-toggle | A toolbar or app-bar command that stays on uses a button with pressed; a labelled setting uses the switch. A set of independent options is not a single-selection multitoggle. | | Choose from a longer menu of values | dees-input-dropdown | Searchable single selection; enableSearch defaults to true. | | Put several dropdowns on a row that may be too narrow for them: a model and its effort, an account | dees-picker-fold | Where they do not fit, one button says the choices and opens the same dropdowns in a speech bubble; fold="always" for a narrow cell. Never hand-build the fold. | | Group related commands | dees-button-group, dees-actionbar | Layout for actions. A button group does not own a selected value. | | Navigate open content panels, with optional close controls | dees-appui-tabs | Tab selection, close actions and keyboard focus. Use multitoggle for changing a display mode within a panel. | | Build an application shell with views and menus | dees-appui | Main/secondary navigation, content tabs, bars and view lifecycle. Routes by hash, or by path beside the host's server routes. | | Give an app a navigation of its own, or a view a column of sections, outside the shell: groups, gold sections that fold, a record's sections, filters, actions, links | dees-appui-menu | level 1 is the app's navigation, level 2 a view's own column with a head; every item kind draws alike at both. Inside dees-appui the shell draws both levels: configure them there instead. | | Give a view its page header: title, summary, actions, tabs; a record's header with its mark and owner; a toolbar and a bar of filter chips; a loading header | dees-appui-page | One max-width and padding for every view; the primary action at the end of the title row. A record's page names what it belongs to and carries its mark; loading draws placeholders as tall as the header. Do not hand-code headers. | | Open a list's record beside the list, each scrolling on its own; a list with a sidebar; a side panel of a record's sections | dees-appui-detailpane in a dees-appui-page with layout="fill" | The host opens it from a row and closes it on close-request; the reader resizes it, and width-change reports the width to keep. Its head carries the record's mark, a tag and glyph buttons, its foot the record's actions; headless leaves the head out. At 700px or less it covers the list. | | Switch a page's sub-views or a record's parts with tabs under its heading | dees-appui-secondarytabs, or tabs on dees-appui-page | A stripe of its own under the heading, the selected tab's line on its hairline; one Tab stop, badges, the first label under the title. Open records a reader closes again are content tabs (dees-appui-tabs). | | Head a view with its title, summary and actions above content that scrolls on its own | dees-appui-contentheading, or contentHeading in the view definition | A title with its outline badges, a line under it, a meta line of facts, the view's tools and actions at the end of the row, a toolbar row, a bar for filter chips and a hairline across the content area; it stays while the view scrolls. dees-appui-page draws its header with it. | | Report a page's warnings and errors from its header instead of stacking hints above its content | dees-statusbutton | One button beside the page's actions shows the worst status and a count; its speech-bubble panel lists the statuses, and an error or a severe warning opens it by itself. Keep dees-hint for a note next to the thing it explains. | | Say that a tile, panel or list is loading, empty or failed | dees-state | One pattern for all three: icon or spinner, sentence, the way on, Retry and folded technical detail. A dees-table says the same through loading, error and 'empty' actions. | | Show, paste or share a link to the current app screen; address/location bar | dees-appui-location | Clickable ancestors, URL editing and copy feedback. Enable it in App UI; route state belongs to the shell. | | Reach any screen, menu item or host command by name | dees-appui-commandpalette | The shell opens it with the platform modifier and K and with the app bar's search field. Host commands come from IAppConfig.commands / setCommands(). | | Find the host's own records from the palette while typing: repositories, people, tickets | dees-appui-commandpalette providers | From two letters each provider offers "Search … for" first, then what its server answers under its own heading, with a mark, a description and a fact per row. Debounced, aborted by a newer query, placeholders while it answers, its own row when it fails. | | Show what happened per project or record, newest first, each line a link; follow pipelines and deployments live | dees-appui-activitylog with group on its entries, status and progress on live ones | A sticky head per group (mark, name, the host's summary, age), then each entry: a kind pill, the message in two lines at most, its age; a live entry's status, detail and progress under its message, at the top of the log while it runs. Entries without a group keep the flat log under date heads. | | Build a simpler grouped dashboard | dees-simple-appdash | Grouped dashboard navigation without configuring the full App UI shell. | | Offer sign-in methods and reveal an authenticated app | dees-simple-login | Passkeys, providers and password form; the application owns authentication. | | Show an application's sign-in page before its shell | dees-appui-signin | The application's brand, tagline and highlights beside a frameless dees-simple-login; one column on a phone. A notice says why the person is here (signed out, not linked, failed). | | Show products with quantities or select a kit | dees-shopping-productcard | Independent quantity and selection events; the application owns the cart and inventory. | | See components composed into one working application | Integrated App UI demo | Shared state, layout presets, navigation, service tabs, charts, files, settings and activity. Start here before assembling a shell. | | Collect and submit form values | dees-form, dees-form-submit | Give each input a stable key; use the form's collection and validation flow. | | Choose, photograph or drop files, and show each file's upload | dees-input-fileupload, dees-dropzone-overlay | The field selects files (capture opens a phone camera) and shows the upload state the host reports with setFileState(); the overlay receives files dropped anywhere in the window. | | Edit multiline plain text | dees-input-textarea | Notes and descriptions as strings, with validation and form reset; no rich-text editor. | | Track epics, tasks and subtasks across workflow columns | dees-kanban | Board, ordering, projects, filters, ticket detail with links, source and history, discussion, live refresh and stable ticket references. | | Show a conversation about a record: comments by people and agents, what happened, a reply | dees-thread | Timeline of comments and events, Markdown composer with close/reopen actions, pending and refused posts, read-only and failed states. The host owns posting and adds the posted entry. | | Show what happened over time: the versions a target ran, what changed | dees-timeline | Each entry its moment short with the full one in its tooltip, a dot in its tone on a rail, and what happened. Not a conversation: comments with a reply belong in dees-thread. | | Show who wrote, did or owns something: a picture, else initials; an agent apart from a person | dees-avatar | Round for a person, a rounded square with its own glyph for an agent or the system; a picture that fails falls back to the initials. decorative beside a visible name. | | Show a link or code for a phone to scan: device pairing, a sign-in, an address | dees-qrcode | A QR code as SVG, dark on a light tile in both themes; size, errorCorrection (default M) and quietZone. An empty or oversized value shows a note in its place. | | Compose comments with searchable inline references | dees-input-richtext searchReferences, dees-input-reference | In Markdown, # at the start of a word searches the host's records at the caret and links the one chosen; dees-input-reference writes plain text with references, at #_. Both keep stable reference IDs. | | List the records a page is about as rows from edge to edge: repositories, organizations, people; open one beside the list or follow its link | dees-list | A 36px mark, the name with what it belongs to before it, a second line, facts in fixed columns and an age, or a head and one grid for every row; one selection, a foot that counts. Not for sorting, filtering or editing: that is dees-table. | | Show a tree of folders and files that an API answers folder by folder, to read and select from | dees-tree | Fed by load(path), asked when a folder opens; a head with a filter, sizes on the top level, and references (a submodule) as rows that do not open, with a note at their end. It changes nothing and needs no execution environment: editing a project's files is dees-workspace-filetree. | | Search, filter, sort, edit and act on records | dees-table | Use its columns, selection and data actions before building a table toolbar or row-action layer. | | Offer an action about what a tile shows: open its details, export it, add to it | dees-tile actions | Footer or header actions, drawn and held while they run exactly like a table's header and footer actions. Never a footer bar of buttons built by hand; actions on a table's rows or on the table itself are the table's own. See Where actions go. | | Filter a view's rows: an account, a month, "Include private" | dees-table filters | Behind the filter button at the end of the table's search field, which counts the active filters and opens them in the speech bubble; each active one is a removable chip in the bar above the column headers. Never a row of dropdowns and checkboxes in the header. See Where actions go. | | Put a table's search field in a page header, beside the page's own buttons | dees-table-search | The table's own field and filter button, linked to the table; the table hides its built-in field. Do not wire a plain input to setSearchQuery(). | | Show metrics, health and operational context | dees-statsgrid, dees-dataview-statusobject | Metric tiles versus structured status details and actions. | | Show a few figures of one record in a side panel or a card: stars, watching, forks | dees-statstrip | One 60px box of equal columns, each a figure over what it counts. A dashboard's tiles with gauges, trends and actions are dees-statsgrid. | | Rank figures with each row's share drawn as a bar behind it: top pages, top sources, countries, the pages visitors are on now | dees-barlist | 30px rows over a tinted bar as long as the row's share, a quiet chip before the label, the figure at the end, heads in capitals; rows may be links. Records with marks and facts are dees-list; a chart of categories is dees-chart-bar. | | Say what a side panel knows about a record: its facts, its latest release, its recent items, its links | dees-grouped-list | Rows of one line for facts, a card line, a box of records with descriptionLines, and lines for links; a section's headerAction links to all of them. | | Plot a time series, compare categories, show proportions, capacity or profiles | Chart components | Area, bar, donut, gauge and radar have distinct data contracts. | | Browse object storage with folders, files and preview | dees-storage-browser | Owns columns/list switching, provider operations and responsive preview. | | Preview a file or display source/diffs | dees-preview, dees-dataview-codebox | Preview chooses the viewer; codebox owns source and inline/split diffs. | | Edit project files with terminals | dees-workspace | Monaco, file tree, terminal and diff workspace. | | Run an agent conversation with tools and decisions | dees-harness-chat | Compose the harness family; use its resource list to arrange conversations and resources, its session list for a read-only overview of sessions. Pending prompts distinguish local submission from confirmed queue admission. | | Ask for a focused decision or show contextual commands | dees-modal, dees-contextmenu | Modal task flow versus contextual action menu. Use existing overlay ownership. | | Put the actions of a dialog, a speech bubble or a card of your own at its bottom edge | dees-actionfooter | Divider, tinted strip, the primary rightmost, one action at a time. A dialog's menuOptions and a bubble's actions are drawn by it already; never a row of buttons built by hand. Not the countdown question bar, which is dees-actionbar. | | Show completion, progress or transient feedback | dees-stepper, dees-progressbar, dees-toast | Workflow stages, measurable progress, or a brief notification. |

Before adding a control

  1. Find the task above and search the tag index below. Read the linked API and the actual implementation; similarly named controls have different contracts.
  2. Open its catalog demo with pnpm run watch (the running workspace uses port 3002). Check selection, events, form participation, keyboard behavior and sizing.
  3. Compose the existing component. If it lacks a needed reusable capability, extend its owner and verify existing consumers instead of copying its markup and styles into each view.
  4. When adding or extending a component, update its task entry, tag/source index, API example and demo together. Keep internal anchor and source links valid.

Documentation map

Installation

The examples below import DeesElement directly, so install both packages:

pnpm add @design.estate/dees-catalog @design.estate/dees-element@^4.0.1

The catalog runs on @design.estate/dees-element 4 and @design.estate/dees-domtools 5. A host that depends on either package itself uses those majors (^4.0.1 and ^5.0.0); an older major puts a second copy in its bundle.

Quick Start

import { html, DeesElement, customElement } from '@design.estate/dees-element';
import '@design.estate/dees-catalog';

@customElement('my-app')
class MyApp extends DeesElement {
  render() {
    return html`
      <dees-button type="accent" @click=${() => alert('Hello!')}>
        Click me!
      </dees-button>
    `;
  }
}

Entry points

| Import | What it is | | --- | --- | | @design.estate/dees-catalog | Every component, registered on import, with the types of their properties and events. | | @design.estate/dees-catalog/icon | dees-icon alone (see DeesIcon). | | @design.estate/dees-catalog/contextmenu | dees-contextmenu alone, with the dees-icon it draws glyphs with, and its menu-item types TContextMenuItem, IContextMenuItemRegular, IContextMenuDivider, IContextMenuOptions and IContextMenuSearch (see DeesContextmenu). Leaves out ECharts, xterm.js, highlight.js, Monaco and the other components. | | @design.estate/dees-catalog/cdn | Where the catalog loads Monaco from, as constants, and monacoVsDirectoryUrl() for a server that serves Monaco itself. Imports no component, Lit or DOM API, so it runs in plain Node. | | @design.estate/dees-catalog/richtext-markdown | The richtext editor's Markdown format without the editor: richtextMarkdownToDoc, richtextDocToMarkdown and richtextMarkdownRenderOptions, and its references: richtextReferenceHref, richtextReferenceId, richtextMarkdownToReferences and richtextReferencesToMarkdown. Imports no component, Lit or DOM API, so it runs in plain Node. | | @design.estate/dees-catalog/demos | The components' demos (see Demos): importing it gives every component its catalog demo, and it exports the registry (registerDemo, getDemo, getRegisteredDemos, TDemoFactory, ICatalogDemo) and the harness demo data (harnessDemoConversation, harnessDemoMarkdown, makeStreamingSimulator, IHarnessStreamSimulatorTarget). No other entry imports a demo. |

Name a component's event and property types from the package root, never from a dist_ts_web/... path:

import type { ICellEditDetail } from '@design.estate/dees-catalog';

table.addEventListener('cellEdit', (event: CustomEvent<ICellEditDetail<IInvoiceRow>>) => {
  save(event.detail.row, event.detail.key, event.detail.newValue);
});

Demos

No component imports its demo, so a host bundles no demo of the components it uses, nor the libraries only the demos load (node scripts/measure-host-bundle.mjs measures what a shell of dees-appui, dees-theme and the icon entry, and the main entry, bundle from the build). The demos live in the ./demos entry: each demo module registers its demo beside its component, and importing the entry gives every component the demo and demoGroups statics that a @design.estate/wcctools catalog reads. A catalog of your own that shows the catalog's components with their demos imports the entry once:

import * as deesWccTools from '@design.estate/wcctools';
import * as catalog from '@design.estate/dees-catalog';
import '@design.estate/dees-catalog/demos';

deesWccTools.setupWccTools({ sections: [{ name: 'Catalog', type: 'elements', items: catalog }] });

Without it the components show under "Without demo". In code, getDemo(DeesButton) returns a component's demo once the entry is imported, and names the entry while it is not.

The prebuilt bundle

dist_bundle/bundle.js is the whole catalog as one ES module, without the demos, for a page that loads it without a bundler of its own. It imports its shared code, and on first use ECharts, xterm.js, highlight.js, Lightweight Charts, the rich-text editor and the PDF.js worker, from dist_bundle/chunks/ by relative URL, so a server publishes the whole dist_bundle/ directory, chunks/ beside bundle.js; bundle.js alone fails at its first import. The chunks come from the same origin, so script-src 'self' covers them.

Content Security Policy

One library still loads from jsdelivr by default when it is first needed, through DeesServiceLibLoader: Monaco, for the workspace editors. Everything else ships inside the catalog: ECharts for the ECharts-based charts (with only the series and components they draw), xterm.js and its addons for terminals, Lightweight Charts, and highlight.js with the languages its code views name. Charts, terminals and code views therefore work under script-src 'self'. A server whose CSP lists Monaco's CDN takes the URL from the cdn entry, which follows the catalog's pin, instead of writing it by hand:

import { CDN_MONACO_BASE_URL } from '@design.estate/dees-catalog/cdn';

// a directory: the trailing slash makes each source match the files below it
const scriptSrc = ["'self'", `${CDN_MONACO_BASE_URL}/`].join(' ');
const styleSrc = ["'self'", `${CDN_MONACO_BASE_URL}/`].join(' ');
const connectSrc = ["'self'", `${CDN_MONACO_BASE_URL}/`].join(' ');
const workerSrc = 'blob:';

Monaco is not one module: its loader.js and the modules it requires load from below CDN_MONACO_BASE_URL (script-src). Its editor.main links editor/editor.main.css into the document head (style-src), and the catalog reads the same file with fetch() (connect-src) for the editors' shadow roots, once that link has loaded, from the browser's cache: the stylesheet loads once. Under a style-src that blocks the link the editors still get the stylesheet through fetch(), but Monaco's rules for the document itself (its screen-reader live region) are missing. Monaco starts its language workers from blob: URLs (worker-src), and each worker loads its script from below CDN_MONACO_BASE_URL under the page's script-src. Without worker-src blob: the browser blocks the workers: the editors still open, but without what the workers compute, such as JSON validation.

A host that serves Monaco from its own origin needs no CDN source at all; see Serving Monaco from your own origin.

CDN_SCRIPT_URLS and CDN_VERSIONS are deprecated, every entry of them: nothing loads those URLs any more (xterm, ECharts and highlight.js are bundled; the echarts pin still names the 5.6.0 file the catalog once loaded, while the bundled ECharts is 6.x), so a CSP needs none of them. They stay exported until the next major. A host that already ships xterm or highlight.js hands its own in with provideXtermModules or provideHighlightJs, and the catalog uses it instead of its bundled copy. The bundled highlight.js languages are Bash (also shell, console), C, C++, C#, CSS, diff, Dockerfile, Go, GraphQL, HTML/XML, INI/TOML, Java, JavaScript, JSON, Kotlin, Less, Markdown, PHP, Python, Ruby, Rust, SCSS, SQL, Swift, TypeScript and YAML, under highlight.js's names and aliases; an unlabelled fence in a harness message is detected among them, and code in another language is shown plain. The same constants are exported from the package root, beside CDN_BASE and CDN_VERSIONS.

Serving Monaco from your own origin

A host whose CSP forbids CDN scripts, or that must work offline, serves Monaco's min/vs directory itself and tells the catalog where, before the first editor mounts. The cdn entry locates that directory, from the @design.estate/monaco-editor security fork the catalog itself depends on, so the copy matches the catalog's pin even when the host has no monaco-editor of its own:

// server, in Node
import { fileURLToPath } from 'node:url';
import { monacoVsDirectoryUrl } from '@design.estate/dees-catalog/cdn';

app.use('/assets/monaco/min/vs', express.static(fileURLToPath(monacoVsDirectoryUrl())));
// or copy it into the static files at build time:
// await fs.cp(monacoVsDirectoryUrl(), './public/assets/monaco/min/vs', { recursive: true });
// page, before the first editor mounts
import { DeesServiceLibLoader } from '@design.estate/dees-catalog';

DeesServiceLibLoader.getInstance().provideMonacoBaseUrl('/assets/monaco/min/vs');

monacoVsDirectoryUrl() is a file: URL ending in /. Monaco then loads its scripts, its worker scripts and its stylesheet from the page's own origin, so 'self' covers them in script-src, style-src and connect-src; its workers still start from blob: URLs, so the CSP keeps worker-src blob:. The CDN stays the default for now; the next major serves Monaco from the host's own origin by default.

Languages

The words the components say to a reader — button texts, names for assistive technology, tooltips, empty states — come from one typed @push.rocks/smarti18n catalog, exported as dcMessages (namespace @design.estate/dees-catalog). English is the source; German, with the formal "Sie", ships complete. A page provides its language once, through provideI18n from @design.estate/dees-element, and every component re-renders when it changes:

import { createI18n } from '@push.rocks/smarti18n';
import { provideI18n } from '@design.estate/dees-element';
import { dcMessages } from '@design.estate/dees-catalog';

const i18n = createI18n({ locale: 'de-DE', formats: { number: 'de-DE' } });
provideI18n(document.documentElement, i18n, { reflect: true }); // sets <html lang dir>
await i18n.setLocale('en-GB');

// a word of your own, for one language
i18n.override(dcMessages, 'de', { 'appui.skipLink': 'Direkt zum Inhalt' });
  • Without a provider, the components speak English in neutral formats: numbers ungrouped (5000), inside messages too, at most three fraction digits, file sizes in Intl units (2 kB), and weeks from Monday. A component whose provider goes away returns to this.

  • Modals, menus and toasts appended to document.body find the provider on <html>. An overlay opened from a subtree that speaks another language passes that language through the overlay helper's i18n option (DeesModal.createAndShow({ …, i18n }), DeesModal.confirm, DeesModal.prompt, DeesToast.show). The overlay's own words (its default buttons, help and close labels) speak it as well as the content it renders, and follow that instance rather than the page.

  • Numbers and dates follow the instance's formats (formats.number, formats.date), which a host sets apart from the language.

  • The app shell's labels (see dees-appui) still override the catalog's words in every language. A label goes through the formatter the catalog's own words go through, so it can say a count by its plural form: activityGroupCount: '{count, plural, one {# change} other {# changes}}'.

  • compactAge() writes how long ago something happened as short as a column takes it, as the activity log does beside an entry: 31m, 2h, 5d, 2y, the locale's word for now under a minute. A host writes the same age into its own rows with it, a dees-list item's age or a grouped list row's value:

    import { compactAge } from '@design.estate/dees-catalog';
    
    compactAge(Date.now() - repo.updatedAt);              // '31m': English, as without a provided I18n
    compactAge(i18n.format, Date.now() - repo.updatedAt); // '31 Min.' with the formats of a German I18n

    It rounds to whole minutes under an hour, whole hours under two days (25h, 47h), whole days from two (2d) to under 30, then months of 30 days and years of 365. A month takes the locale's narrow unit as well; where that is the form a minute takes, as in English (3m), it is written 3mo, so an age months old is never read as minutes.

  • compactDuration() writes how long something has taken so far, to the second, as the activity log does for a running entry: 58s, 5m 58s, 1h 06m, the second part in two figures so its width holds while it counts; compactDuration(i18n.format, ms) in the formats of the host's I18n.

  • The date picker names months and weekdays in the date format's language and starts the week where that format does (Monday in de-DE, Sunday in en-US; Monday without a provider); its weekStartsOn, when set, wins.

  • A helper outside an element (the block editor's slash menu, the storage browser's formatSize and validateMove, the agent chat's harnessFormat* helpers, the PDF formatFileSize) takes the words or formats to speak in and defaults to English; dcSourceWords are the catalog's English source words.

  • The agent chat's tool descriptors get the showing element's words as the optional second argument of label, subtitle and summary, and custom body renderers find them as helpers.t, so a registered tool can speak the reader's language too.

  • Every component's words are in the catalog. scripts/check-literal-ratchet.cjs, part of pnpm test, counts the English literals left in component templates and lets the count only go down; the two it still counts are URL examples in the block editor's link and video fields, which no language changes.

  • An error a host throws for a component to show (a stepper action's refusal) can speak the reader's language after it was thrown: @push.rocks/smarti18n's LocalizedError (≥ 1.5.0) keeps a catalog key and its parameters with the words they come from, and its message says them in the language of the moment it is read. A component that renders again on a change of language, as the stepper's alert does, shows the new language. Its key and args are typed as t() types them:

    import { LocalizedError } from '@push.rocks/smarti18n';
    
    throw new LocalizedError(words, 'claim.amountInvalid', { amount }); // words = i18n.bind(catalog)
  • The pseudo-locales en-XA (longer, accented words) and ar-XB (right to left) show clipped text and direction faults: createI18n({ locale: 'en-XA', pseudo: true }).

Development Guide

For developers working on this library, please refer to the UI Components Playbook for comprehensive patterns, best practices, and architectural guidelines.

Repository development notes, including readme.plan.md and readme.hints.md, live in docs/development/. These notes are retained in Git and excluded from the published package.

Before publishing, verify the installed package as well as the source tests:

pnpm test
node scripts/check-packed-consumer.mjs

pnpm test rebuilds the package first. The consumer check installs its tarball in an isolated temporary project and checks the table, settings, modal, PDF viewer, PDF thumbnail, harness message-list, datepicker, textarea and composer declarations with TypeScript 5.9.3 and 6.0.3, strict: true and skipLibCheck: false. It also runs Chromium construction, reconnect, selection/copy and real keyboard checks against the installed modules and bundle. The packed tests also exercise strict calendar validation, multiline form values and attachment capabilities. Trusted keyboard entry inside a native dialog is checked in UTC, Los Angeles, Berlin and São Paulo. No source aliases or vendor declarations are used. Pass an existing release tarball as the script's argument to verify those exact bytes.

Test sets

pnpm test runs every test file and is the check before a release. While working on a change, run the test files that change can affect:

pnpm test:changed                  # what changed since origin/main, committed or not
pnpm test:changed --list           # which test files, and the change that picks each, without running them
pnpm test:set element dees-table   # the test files that cover one element
pnpm test:set group dataview       # ... or an element group; `pnpm test:set groups` lists them
pnpm test:set path ts_web/elements/00theme.ts
pnpm test:set why test/test.chips.chromium.ts ts_web/elements/00group-utility/dees-icon/dees-icon.ts

A set runs the ratchet checks pnpm test runs, builds the package when a picked test file reads the build, and then runs the picked files with the options of pnpm test. Arguments after -- go to tsrepo test. Tests are bundled without a type check; pnpm run build checks the types.

scripts/test-set.mjs picks a test file when the change touches what the file covers: the modules it imports, followed through their own imports, and every element whose tag it or one of those modules uses in a template or creates by name. A barrel such as ts_web/index.ts is followed only for the names imported from it, and for what it imports for effect alone. No component imports its demo, so a demo counts for a test file that imports its demo module or the demos entry (ts_web/demos/index.ts), or uses a tag only the demo defines. A change to package.json, pnpm-lock.yaml, pnpm-workspace.yaml, tsconfig.json or .smartconfig.json runs every test file; documentation, and a test file the change deleted or renamed away, runs none. What neither imports nor tags show, a test file names in a comment line, // test-set:covers <path> ... (the notices and entry-point tests do).

The full run starts four test files at a time (concurrency in the "@git.zone/tsrepo".test section of .smartconfig.json), each in a Chromium or Node.js process of its own. A test file therefore keeps to its own process: a server it starts binds port 0 and reads the port it got, and it waits for an element's own events rather than for the clock. A file has 30 seconds (--timeout 30); one that needs more is split by subject.

Component index

Search this table by the actual HTML tag. It includes registered catalog elements and supporting subcomponents; the task guide identifies the usual composition entry points. API links lead to sections below; source links always lead to the owning implementation, including components without a dedicated reference section yet. Demo files live beside their components, and ts_web/demos/index.ts imports them all.

Run node scripts/check-component-docs.cjs to check index coverage and README links. After adding a component or API section, run the same command with --write-index to regenerate the tag table from registrations. Update the task guide and examples deliberately; the generated table does not replace them.

| Element | Family | API | Source | | --- | --- | --- | --- | | dees-actionbar | feedback | DeesActionbar | Source | | dees-actionfooter | button | DeesActionFooter | Source | | dees-appui | appui | DeesAppui | Source | | dees-appui-activitylog | appui | DeesAppuiActivitylog | Source | | dees-appui-appbar | appui | — | Source | | dees-appui-bottombar | appui | DeesAppuiBottombar | Source | | dees-appui-commandpalette | appui | DeesAppuiCommandpalette | Source | | dees-appui-contentheading | appui | DeesAppuiContentheading | Source | | dees-appui-detailpane | appui | DeesAppuiDetailpane | Source | | dees-appui-location | appui | DeesAppuiLocation | Source | | dees-appui-maincontent | appui | DeesAppuiMaincontent | Source | | dees-appui-menu | appui | DeesAppuiMenu | Source | | dees-appui-page | appui | DeesAppuiPage | Source | | dees-appui-profiledropdown | appui | — | Source | | dees-appui-secondarytabs | appui | DeesAppuiSecondarytabs | Source | | dees-appui-signin | appui | DeesAppuiSignin | Source | | dees-appui-tabs | appui | DeesAppuiTabs | Source | | dees-appui-tray | appui | DeesAppuiTray | Source | | dees-audio-viewer | media | DeesAudioViewer | Source | | dees-avatar | dataview | DeesAvatar | Source | | dees-badge | feedback | DeesBadge | Source | | dees-barlist | dataview | DeesBarList | Source | | dees-button | button | DeesButton | Source | | dees-button-exit | button | DeesButtonExit | Source | | dees-button-group | button | DeesButtonGroup | Source | | dees-chart-area | chart | DeesChartArea | Source | | dees-chart-bar | chart | DeesChartBar | Source | | dees-chart-donut | chart | DeesChartDonut | Source | | dees-chart-gauge | chart | DeesChartGauge | Source | | dees-chart-line | chart | DeesChartLine | Source | | dees-chart-log | chart | DeesChartLog | Source | | dees-chart-radar | chart | DeesChartRadar | Source | | dees-chips | layout | DeesChips | Source | | dees-contextmenu | overlay | DeesContextmenu | Source | | dees-dashboardgrid | layout | DeesDashboardgrid | Source | | dees-dataview-codebox | dataview | DeesDataviewCodebox | Source | | dees-dataview-statusobject | dataview | DeesDataviewStatusobject | Source | | dees-dropzone-overlay | overlay | DeesDropzoneOverlay | Source | | dees-form | form | DeesForm | Source | | dees-form-section | form | DeesFormSection | Source | | dees-form-submit | form | DeesFormSubmit | Source | | dees-formatting-menu | input | — | Source | | dees-grouped-list | dataview | DeesGroupedList | Source | | dees-harness-chat | harness | DeesHarnessChat | Source | | dees-harness-composer | harness | DeesHarnessComposer | Source | | dees-harness-content-blocks | harness | DeesHarnessContentBlocks | Source | | dees-harness-conversation-picker | harness | DeesHarnessConversationPicker | Source | | dees-harness-elicitation-card | harness | DeesHarnessElicitationCard | Source | | dees-harness-message | harness | DeesHarnessMessage | Source | | dees-harness-message-list | harness | DeesHarnessMessageList | Source | | dees-harness-overflow-text | harness | DeesHarnessOverflowText | Source | | dees-harness-permission-card | harness | DeesHarnessPermissionCard | Source | | dees-harness-question-card | harness | DeesHarnessQuestionCard | Source | | dees-harness-reasoning | harness | DeesHarnessReasoning | Source | | dees-harness-resource-list | harness | DeesHarnessResourceList | Source | | dees-harness-session-list | harness | DeesHarnessSessionList | Source | | dees-harness-session-sidebar | harness | DeesHarnessSessionSidebar | Source | | dees-harness-sidebar | harness | DeesHarnessSidebar | Source | | dees-harness-status | harness | DeesHarnessStatus | Source | | dees-harness-thread-cut | harness | DeesHarnessThreadCut | Source | | dees-harness-todos | harness | DeesHarnessTodos | Source | | dees-harness-tool-card | harness | DeesHarnessToolCard | Source | | dees-harness-tool-fullscreen | harness | — | Source | | dees-harness-usage | harness | DeesHarnessUsage | Source | | dees-harness-work-run | harness | DeesHarnessWorkRun | Source | | dees-heading | layout | DeesHeading | Source | | dees-hint | feedback | DeesHint | Source | | dees-icon | utility | DeesIcon | Source | | dees-image-viewer | media | DeesImageViewer | Source | | dees-input-checkbox | input | DeesInputCheckbox | Source | | dees-input-code | input | DeesInputCode | Source | | dees-input-datepicker | input | DeesInputDatepicker | Source | | dees-input-datepicker-popup | input | — | Source | | dees-input-dropdown | input | DeesInputDropdown | Source | | dees-input-dropdown-popup | input | — | Source | | dees-input-fileupload | input | DeesInputFileupload | Source | | dees-input-iban | input | DeesInputIban | Source | | dees-input-list | input | DeesInputList | Source | | dees-input-multitoggle | input | DeesInputMultitoggle | Source | | dees-input-phone | input | DeesInputPhone | Source | | dees-input-profilepicture | input | DeesInputProfilePicture | Source | | dees-input-quantityselector | input | DeesInputQuantitySelector | Source | | dees-input-radiogroup | input | DeesInputRadiogroup | Source | | dees-input-reference | input | DeesInputReference | Source | | dees-input-richtext | input | DeesInputRichtext | Source | | dees-input-tags | input | DeesInputTags | Source | | dees-input-text | input | DeesInputText | Source | | dees-input-textarea | input | DeesInputTextarea | Source | | dees-input-toggle | input | DeesInputToggle | Source | | dees-input-typelist | input | DeesInputTypelist | Source | | dees-input-wysiwyg | input | DeesInputWysiwyg | Source | | dees-kanban | kanban | DeesKanban | Source | | dees-kanban-activity | kanban | DeesKanbanActivity | Source | | dees-kanban-card | kanban | DeesKanbanCard | Source | | dees-kanban-column | kanban | DeesKanbanColumn | Source | | dees-kanban-discussion | kanban | DeesKanbanDiscussion | Source | | dees-kanban-ticket-detail | kanban | DeesKanbanTicketDetail | Source | | dees-label | layout | DeesLabel | Source | | dees-legend | chart | DeesLegend | Source | | dees-list | dataview | DeesList | Source | | dees-meter | feedback | — | Source | | dees-modal | overlay | DeesModal | Source | | dees-mosaic | layout | DeesMosaic | Source | | dees-pagination | layout | DeesPagination | Source | | dees-panel | layout | DeesPanel | Source | | dees-pdf-viewer | media | DeesPdfViewer | Source | | dees-picker-fold | input | DeesPickerFold | Source | | dees-popover | overlay | DeesPopover | Source | | dees-preview | media | DeesPreview | Source | | dees-profilepicture-modal | input | — | Source | | dees-progressbar | feedback | DeesProgressbar | Source | | dees-qrcode | dataview | DeesQrcode | Source | | dees-resize-handle | layout | DeesResizeHandle | Source | | dees-searchbar | utility | DeesSearchbar | Source | | dees-settings | layout | — | Source | | dees-shopping-productcard | simple | DeesShoppingProductcard | Source | | dees-simple-appdash | simple | DeesSimpleAppDash | Source | | dees-simple-login | simple | DeesSimpleLogin | Source | | dees-slash-menu | input | — | Source | | dees-sparklebox | layout | — | Source | | dees-speechbubble | overlay | DeesSpeechbubble | Source | | dees-spinner | feedback | DeesSpinner | Source | | dees-state | feedback | DeesState | Source | | dees-statsgrid | dataview | DeesStatsGrid | Source | | dees-statstrip | dataview | DeesStatStrip | Source | | dees-statusbutton | feedback | DeesStatusbutton | Source | | dees-stepper | layout | DeesStepper | Source | | dees-storage-browser | dataview | DeesStorageBrowser | Source | | dees-storage-columns | dataview | — | Source | | dees-storage-keys | dataview | — | Source | | dees-storage-preview | dataview | — | Source | | dees-table | dataview | DeesTable | Source | | dees-table-search | dataview | DeesTableSearch | Source | | dees-terminal-view | terminal | DeesTerminalView | Source | | dees-theme | utility | DeesTheme | Source | | dees-thread | dataview | DeesThread | Source | | dees-thumbnail-audio | media | DeesThumbnailAudio | Source | | dees-thumbnail-folder | media | DeesThumbnailFolder | Source | | dees-thumbnail-image | media | DeesThumbnailImage | Source | | dees-thumbnail-note | media | DeesThumbnailNote | Source | | dees-thumbnail-pdf | media | DeesThumbnailPdf | Source | | dees-thumbnail-video | media | DeesThumbnailVideo | Source | | dees-tile | layout | DeesTile | Source | | dees-timeline | dataview | DeesTimeline | Source | | dees-toast | feedback | DeesToast | Source | | dees-tree | dataview | DeesTree | Source | | dees-updater | utility | DeesUpdater | Source | | dees-video-viewer | media | DeesVideoViewer | Source | | dees-windowcontrols | utility | DeesWindowControls | Source | | dees-windowlayer | overlay | DeesWindowLayer | Source | | dees-workspace | workspace | DeesWorkspace | Source | | dees-workspace-bottombar | workspace | DeesWorkspaceBottombar | Source | | dees-workspace-diff-editor | workspace | DeesWorkspaceDiffEditor | Source | | dees-workspace-filetree | workspace | DeesWorkspaceFiletree | Source | | dees-workspace-markdown | workspace | DeesWorkspaceMarkdown | Source | | dees-workspace-markdownoutlet | workspace | DeesWorkspaceMarkdownoutlet | Source | | dees-workspace-monaco | workspace | DeesWorkspaceMonaco | Source | | dees-workspace-terminal | workspace | DeesWorkspaceTerminal | Source | | dees-workspace-terminal-preview | workspace | DeesWorkspaceTerminalPreview | Source | | dees-wysiwyg-block | input | — | Source |

Component API

Reflected properties

A component's public configuration is one surface in markup, in devtools and in CSS: every public property of a string, number or boolean type reflects to its attribute, whether it was set from markup or through a property binding. A page can style around a configuration, such as dees-panel[variant='outline'] or dees-spinner[bnw], and a component's own :host([...]) rules hold however the value arrived. Attribute names are the property name in lower case unless the property declares another one, such as dees-table's show-column-filters.

Four kinds of property stay unreflected, each listed with its reason in scripts/reflect-allowlist.json: user data and state that changes per keystroke, pointer move, scroll or data tick (a field's value, a search query, progress; a toggle's on/off value reflects, since its own styles select it); objects, arrays and functions, which have no attribute; names that are global HTML or ARIA attributes with native behaviour on the host (title, aria-label); and large text or encoded data (a whole file, a diff, a data URL). pnpm test runs scripts/check-reflect-ratchet.cjs, which fails on a new public primitive property that neither reflects nor is listed there.

Failed actions

Components that run an application callback — dees-modal's menuOptions[].action, dees-table's dataActions[].actionFunc and onRetry, dees-tile's actions[].actionFunc, dees-appui-page's and dees-appui-contentheading's actions[].action, dees-appui-detailpane's headerActions[].action and footerActions[].action, dees-state's actions[].action and onRetry, dees-popover's actions[].action and dees-actionfooter's actions[].action — await it. A rejected callback is never dropped: the component dispatches the cancelable dees-action-error event (bubbling and composed) and, unless a listener cancels it, shows the error through dees-toast. Successful callbacks behave exactly as before and dispatch nothing.

element.addEventListener('dees-action-error', (event: CustomEvent<IActionErrorDetail>) => {
  const { error, action, source } = event.detail;
  // source: 'modal-menu' | 'modal-dismiss' | 'stepper-cancel' | 'table-header' | 'table-footer' | 'table-empty'
  //       | 'table-row' | 'table-rowmenu' | 'table-contextmenu' | 'table-doubleclick' | 'table-rowclick'
  //       | 'table-keycombination'
  //       | 'tile-header' | 'tile-footer' | 'page-action' | 'heading-action' | 'state-action' | 'state-retry'
  //       | 'popover-action' | 'actionfooter' (a footer's own `source` when it sets one)
  event.preventDefault();      // render your own error surface instead of the toast
  reportToCrashService(error);
});

IActionErrorDetail, actionErrorEventName, actionErrorMessage, reportActionError and runAction are exported from the package root, so a component outside the catalog can announce failures the same way.

Where actions go

An action sits on the thing it acts on, in that thing's own place for actions, so every implementation offers its actions the same way. Choose the place by what the action is about:

| The action is about | Its place | For example | | --- | --- | --- | | A row of a table | the table's dataActions with type: ['inRow', 'contextmenu'] | "Open", "Approve" | | A table as a whole, or its selected rows | the table's dataActions with type: ['header'] or ['footer']; ['empty'] for the way on from no rows | "Import", "Export", "Approve selected", "New service" | | What a tile shows: a summary, a status, a chart, a list that is not a table | the tile's actions, type: ['footer'] for the way on from the content, ['header'] for one that adds to or refreshes it | "Open the audit trail", "Export CSV", "New invoice" | | A whole page or view | dees-appui-page actions, or the view's contentHeading actions | "New service" | | A decision a dialog asks for | dees-modal menuOptions | "Cancel", "Delete" | | What a speech bubble shows, such as its filters | the bubble's actions | "Clear filters" | | A place that loads, is empty or failed | dees-state actions | "Retry", "New service" | | Not an action: a standing explanation of a view — how a feature works, what a list holds | the table's or the tile's info: an info button (ⓘ) at the end of the footer bar, after the footer actions, that opens it in the speech bubble | "A GoBD year archive holds one fiscal year: …" | | Not an acti