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

@getaster/elements

v0.5.3

Published

Browser-native grids, forms and workspace controls backed by shared Aster data models.

Readme

@getaster/elements

Browser-native controls for metadata-driven enterprise applications: grids, forms, pickers, filters, dashboards and workspaces. Controls share records and edit state through @getaster/data and use CSS for layout and theming.

Preview controls are published separately in @getaster/elements-preview.

Install

npm install @getaster/data @getaster/elements

Use a modern browser with custom elements and ES modules, plus a bundler that resolves npm modules and CSS imports. The package ships TypeScript declarations. Its main entry registers browser elements and requires a DOM; use @getaster/data for headless work. Package tooling requires Node 22 or later.

@getaster/elements/styles/theme-lamplight.css and @getaster/elements/styles/theme-harbour.css each compose the base primitives, element styles and one identity. Lamplight's entry also loads the packaged Bricolage Grotesque and Fraunces Latin faces, with metric-matched local fallbacks, from @getaster/elements/styles/fonts.css. Import one composed entry, not the parts.

Connect a grid

With an OData service exposing a Projects entity set and JSON CSDL metadata:

import { DataContext, fetchTransport } from '@getaster/data';
import { Grid } from '@getaster/elements';
import '@getaster/elements/styles/aster-ui.css';

const ctx = await DataContext.connect(
  fetchTransport('https://your-service.example/odata/')
);
const grid = new Grid();
grid.ctx = ctx;
grid.set = 'Projects';
grid.label = 'Projects';
grid.style.height = '24rem';
document.body.append(grid);

Replace the endpoint and entity set with your own. Give a virtualized grid a bounded height, and supply your application's theme tokens as described in the theming guide. When the view closes, remove the element; separately owned data models remain the host's responsibility.

Compose an application

Use a shared data context to connect a grid, form and selection. JavaScript and YAML composition support reusable workspace definitions. Controls provide keyboard interaction and semantic markup; application labels, focus flow and accessibility still need testing in the completed application.

The package depends on Aster's data core, Lit HTML and Preact signals. Keep one compatible copy of each shared runtime in your build. The YAML compiler is a separate subpath, @getaster/elements/yaml, and is the only entry that loads the yaml parser; a browser that imports a compiled definition never loads it. The optional ECharts adapter accepts an application-supplied runtime; ECharts, showcase data and the mock service are not bundled into this package. The Lamplight font files and their SIL Open Font License texts are included under styles/fonts/. There are no install scripts.

Documentation and support

License

Apache-2.0. See the included LICENSE and package-specific NOTICE. Separately installed dependencies retain their own licenses.

Named model displays

bindFieldPresentations(ctx, model, set, registry, overrides?) binds separately registered fieldPresentation renderers to model display: { renderer } references. Give the returned presentation to Grid or Form and call dispose() when the view closes. Registrations declare scalar dependencies through defineCompositeRenderer(properties, callback, { dependencies }).

Compact related displays read their own permitted record through batched data lookups. A missing dependency uses the model's plain displayField label or “Unavailable”. Field and custom scalar type references use the existing field callback context. Metadata never supplies executable code. See the formatted values guide and the named displays showcase for complete examples.