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

@solidev/data

v1.1.5

Published

A **Django-REST-Framework-style data layer for Angular**. Declare a model once and get HTTP access, querysets, filtering, sorting, pagination, forms, validation and display/edit widgets — all driven by that single declaration.

Readme

@solidev/data

A Django-REST-Framework-style data layer for Angular. Declare a model once and get HTTP access, querysets, filtering, sorting, pagination, forms, validation and display/edit widgets — all driven by that single declaration.

export class ProductBase extends DataModel {
  static override readonly __name: string = "ProductBase";

  @charField({ description: "Name", maxLength: 200 })
  public name!: string;

  @charField({
    description: "Status",
    choices: [
      { value: "draft", desc: "Draft" },
      { value: "published", desc: "Published" },
    ],
  })
  public status!: string;

  @foreignKeyField({ description: "Category", related: "Category", priority: -1 })
  public category!: number;
}
<data-dispedit [model]="product" field="name" mode="dd" [editable]="true" />
<data-dispedit [model]="product" field="status" mode="dd" [editable]="true" />
<data-dispedit [model]="product" field="category" mode="dd" [editable]="true" [collection]="categories" />

That is the whole idea: status renders as a <select> and category as an FK dropdown because the field metadata says so. You declare the model; the UI follows.

Install

npm install @solidev/data
bootstrapApplication(AppComponent, {
  providers: [{ provide: DATA_API_URL, useValue: "https://api.example.com/v1" }, provideHttpClient()],
});

What's in the box

| Module | What it gives you | | -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | data | DataModel + field decorators, Collection<T>, Queryset<T>, DataBackend (with SSR TransferState support) | | modellist | ModelListService — field selection, filters, sorter, paginator, and the components to render them | | dispedit | <data-dispedit> and friends — metadata-driven display/edit, FK/M2M pickers, flags, safe-delete | | auth | JWT service + interceptor with automatic refresh and replay | | messages, routing, updates, uploader, richedit | supporting pieces |

Documentation

  • Guides — see the docs/ directory in the repository, also published in the generated documentation under Guides.
  • API reference — generated with compodoc: npm run mkdocs:serve.
  • Worked exampleprojects/data/src/examples/catalog/, a small catalog domain (tree categories, m2m tags, geolocated stores, flags) that is test-covered, so it cannot drift from the library.

Using this library with an AI agent

This package ships AGENTS.md — a rules file covering the model conventions and the runtime contracts that fail silently when broken. It is available in consuming projects at node_modules/@solidev/data/AGENTS.md.

Point your agent at it from your own AGENTS.md / CLAUDE.md:

This project uses `@solidev/data`. Before writing or changing any model, collection, list component, or `dispedit`
usage, read `node_modules/@solidev/data/AGENTS.md` and follow it.

Start here

Whatever else you skip, read the Relations guide and the Traps guide. The FK ⇄ details pairing is a runtime contract enforced by string concatenation, and most of the ways to misuse this library fail silently.

Requirements

Angular 22+. Peer dependencies: @angular/common, @angular/core, @ng-bootstrap/ng-bootstrap and jwt-decode, plus the engines behind the two editor entry points — prosemirror-* for @solidev/data/richedit and @codemirror/* for @solidev/data/mdedit. npm 7+ installs all of them with the package; the editors only reach your bundle if you import their entry point.

Licence

See LICENSE.