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/data

v0.5.3

Published

DOM-free reactive data models for metadata-driven OData applications.

Readme

@getaster/data

Reactive data models for metadata-driven OData applications. Aster's data core shares records, queries, selections and edit state across views without depending on the DOM or a UI framework.

Use it on its own for application state, or with @getaster/elements for grids, forms and other browser controls.

Install

npm install @getaster/data

The package provides ES modules and TypeScript declarations. Node.js consumers require Node 22 or later. Browser consumers need a modern ES-module environment and a bundler or import map that resolves npm dependencies.

Read a collection

This example requires an OData service with JSON CSDL metadata and a Projects entity set. Replace the service URL with your endpoint.

import { DataContext, fetchTransport } from '@getaster/data';

const ctx = await DataContext.connect(
  fetchTransport('https://your-service.example/odata/')
);
const projects = ctx.collection({ set: 'Projects' }, { pageSize: 50 });

try {
  await projects.view(0, 20);
  if (projects.error.value) throw projects.error.value;
  console.log(projects.items.value.slice(0, 20));
} finally {
  ctx.release(projects);
}

DataContext.connect() reads the service metadata. A collection represents a query and loads a bounded window of records; items, status and error expose reactive state. Release a collection when its owner no longer needs it.

What the core provides

  • A shared record store so confirmed changes reach all connected views.
  • Paging, filtering, sorting, grouping, summaries and hierarchical data models.
  • Selections, edit drafts, validation and conflict handling.
  • Composable commands, lifetimes and keyed sessions for application ownership.
  • A transport boundary for HTTP services, authentication and local test services.

Service capabilities determine which queries and writes are supported. The server must enforce authorization and write concurrency; client-side field visibility and validation are not security boundaries. Configure authentication and CORS for your deployment. For local examples without a server, use @getaster/mock.

The only runtime dependency is @preact/signals-core. The package has no install scripts and contains no UI controls, fonts, charting runtime or mock WebAssembly.

Documentation and support

License

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

Selected lookup fields

ctx.lookup(set, key, fields?) keeps the existing batched foreign-key lookup. With fields, it loads missing dependencies from partial cached records and unions simultaneous selections into one request per set. Selected fields merge through the record store; server-hidden fields retain their masking state. Permission-sensitive consumers must use the stored record's known and hidden sets when projecting the returned entity for a callback.