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

@echelon-framework/designer-core

v0.7.1

Published

Graph model + exporters for the Echelon visual process designer (read-only MVP).

Downloads

1,479

Readme

@echelon-framework/designer-core

Core stores, schema types, validation, and utilities for Echelon visual designers.

Installation

npm install @echelon-framework/designer-core

Draft Stores (5)

All stores: Angular Injectable, signal-based, localStorage persistence.

import {
  DraftModelStoreService, // Models (fields, relations, serverManaged)
  DraftFormStoreService, // Forms (fields, inputContracts, emits, outputModel)
  DraftDatasourceStoreService, // DataSources (kind, contract, mockConfig)
  DraftPageStoreService, // Pages (config, route, layout)
  DraftTranslationStoreService, // Translations (keys, languages)
} from '@echelon-framework/designer-core';

Model Store

const store = inject(DraftModelStoreService);
store.upsert({
  id: 'Client',
  title: 'Klient',
  fields: [
    { id: 'name', type: 'string', required: true },
    { id: 'accounts', type: 'array', ref: { modelId: 'Account', kind: '1:N' } },
    { id: 'createdAt', type: 'date', serverManaged: true },
  ],
});
store.toSchema('Client'); // → { name: { type: 'string', required: true }, ... }

Form Store

const store = inject(DraftFormStoreService);
store.upsert({
  id: 'new-client', title: 'New Client',
  intent: 'create',              // create | edit | view | filter | patch
  outputModel: 'Client',         // produces Client
  registerAsDatasource: true,    // visible in DS Designer as kind:'form'
  inputContracts: [...],         // typed requires with schema
  emits: [{ event: 'client.created' }],
  fields: [{ id: 'name', type: 'text', required: true, width: 6 }],
});

Schema Types

import {
  type Schema,
  type SchemaProperty,
  type PropertyType,
  type DatasourceContract,
  type DataContextBinding,
  type DatasourceParamBinding,
  type PaginatedEnvelope,
  validateSchemaCompatibility,
  validateSnapshotAgainstSchema,
} from '@echelon-framework/designer-core';

// Validate DS output covers Form input
const errors = validateSchemaCompatibility(formSchema, dsOutputSchema);

FormIntent + resolveFieldBehavior

import { resolveFieldBehavior } from '@echelon-framework/designer-core';

const behavior = resolveFieldBehavior(
  { required: true, primaryKey: true, serverManaged: true }, // model field
  'create', // intent
);
// → { include: false, required: false, readOnly: false }
// PK + serverManaged excluded on create intent

11 Utility Wrappers

| Lib | Import | Key functions | | ---------------- | ---------------- | ---------------------------------------- | | zod | validation.ts | validateModel(), ModelFieldSchema | | immer | state.ts | updateState(state, draft => ...) | | nanoid | id.ts | generateModelId(), generateFormId() | | date-fns | dates.ts | formatDate(), formatRelative() | | idb-keyval | storage.ts | idb.get/set/remove() (IndexedDB) | | hotkeys-js | keyboard.ts | registerShortcuts() | | pako | compression.ts | compressGzip() | | lz-string | compression.ts | compressForStorage() | | papaparse | csv.ts | parseCsv(), toCsv(), downloadCsv() | | diff-match-patch | diff.ts | computeJsonDiff(), applyTextPatch() |

License

BUSL-1.1