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

@aglyn/plugins-data

v1.38.0

Published

The Data plugin for Aglyn: datasets, their records, and CSV or JSON import and export, managed in the Aglyn console. Install it if you are running or building on the Aglyn platform and want datasets.

Readme

@aglyn/plugins-data

The Data plugin for Aglyn: datasets, their records, and CSV or JSON import and export, managed in the Aglyn console. Install it if you are running or building on the Aglyn platform and want datasets.

Published to npm from the Aglyn monorepo. Versions follow semantic versioning.

Install

npm install @aglyn/plugins-data

Peer dependencies:

  • @mui/material
  • firebase
  • react

None is optional.

What's in it

This package is a first-party Aglyn plugin. It is loaded through Aglyn's plugin manager: the apps read its entry in the monorepo's plugins.config.json, import the module each surface names, and call the registrar declared for that surface. It is not a standalone library; installing it on its own loads nothing.

The plugin is console-only and declares one registrar, registerDataConsole (the console surface). Datasets are organization-shared collections that repeatable components read at render time through bindings; they are not a canvas component, so there is no site registrar and no server entry point in this package.

registerDataConsole() registers:

  • A Data nav item and page at /data, behind the dataStore feature flag. The page is code-split.
  • The organization datasets card, HostDatasetsCard, as a widget in the orgData slot.
  • Datasets as a repeat source (DATASET_REPEAT_SOURCE), which is what offers "Repeat over dataset" on an element in Besigner and draws a repeat's copies from real rows on the canvas.

It also keeps the datasetSchema installable artifact type (artifactTypes in plugins.config.json, registered from registerDataConsoleServerDeclarations): a dataset's schema published to a marketplace, installed as a new, empty dataset, and updated in place. The installer asks this plugin through @aglyn/aglyn/plugin-manager/plugin-artifact-types and never reads the datasets collection; the schema's model (sanitizeDatasetSchema, resolveInstalledDatasetSchema, summarizeSchemaChange) is @aglyn/plugins-data/artifact/dataset-schema.

On the server, registerDataServerDeclarations() also registers the two automation steps that write a dataset record, datasetAppend and updateDataset (server/dataset-steps.server.ts). The Workflows engine runs them through the platform's server-step seam (registerServerStepExecutor), and plugins.config.json declares them under serverSteps. A record a step writes refreshes the live pages that repeat over its dataset (server/dataset-live-pages.ts).

Entry points

| import | contents | | -- | -- | | @aglyn/plugins-data | BUNDLE_ID, registerDataConsole, HostDatasetsCard, and the transfer resource a dataset's records move as: DATASET_TRANSFER_RESOURCE (data.dataset) and datasetTransferResourceKey(datasetId) | | @aglyn/plugins-data/* | any module under src/lib/, for example @aglyn/plugins-data/model/dataset-record-view (datasetRecordFields, describeDatasetValue) |

Usage

The registrar is normally called by Aglyn's generated console loader. Called directly:

import { registerDataConsole } from '@aglyn/plugins-data'
registerDataConsole()

Import and export run on the platform's transfer framework (AGL-3530). The plugin declares data.dataset under transferResources with instances, so each dataset is its own resource, data.dataset:<datasetId>; it registers the server half from registerDataConsoleServerDeclarations (transfer/dataset-transfer.server.ts: the field catalog, match keys, the export's pages and count, the dry run held to the dataset's model, the writes and their undo) and the client half from registerDataConsole. The Data card opens the wizard and the export dialog through the console's launcher:

import { useTransferLauncher } from '@aglyn/aglyn'
import { datasetTransferResourceKey } from '@aglyn/plugins-data'

useTransferLauncher()?.openImport({ resource: datasetTransferResourceKey(datasetId), scope: 'org' })

How it fits

A plugin may import the tenant runtime, the renderer, the Besigner logic, the core and the shared packages. It never imports another plugin, and the core never imports a plugin. Data depends on @aglyn/aglyn (which owns the dataset model and the CSV helpers), @aglyn/tenant-runtime, @aglyn/tenant-feature-instance and a few @aglyn/shared-* packages. Other plugins that need CSV parsing take it from the core, not from this package.

License

Apache-2.0. Source: https://github.com/aglyn/aglyn/tree/main/libs/plugins/data