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/page-builders

v0.7.1

Published

Echelon page builders — type-safe TS factories: defineEntityListPage, defineDetailPage, defineSidebar.

Downloads

1,353

Readme

@echelon-framework/page-builders

Type-safe TS factories for PageConfig — PageBuilder, @Page, ProcessBuilder, @Process, defineMenu.

Installation

npm install @echelon-framework/page-builders

PageBuilder

import { PageBuilder, widget } from '@echelon-framework/page-builders';

const config = PageBuilder.create('clients')
  .title('Client List')
  .ds('clientsList') // transport datasource
  .local('selectedClient') // local state
  .computed('total', 'countFn', ['clientsList']) // computed DS
  .widget(
    'title',
    { x: 0, y: 0, w: 12 },
    widget.any('page-title', { options: { title: 'Clients' } }),
  )
  .widget(
    'table',
    { x: 0, y: 1, w: 9 },
    widget.any('data-table', { bind: { rows: 'clientsList' } }),
  )
  .widget(
    'detail',
    { x: 9, y: 1, w: 3 },
    widget.any('form-ref', { options: { formId: 'client-detail' } }),
  )
  .handler('table.select', [{ setDatasource: 'selectedClient', from: '$event' }])
  .onInit([{ fetch: 'api/clients', into: 'clientsList' }])
  .build();

@Page Decorator

import { Page } from '@echelon-framework/page-builders';

@Page({ route: '/clients', title: 'Clients' })
export class ClientsPage {
  static readonly config = PageBuilder.create('clients')...build();
}

ProcessBuilder (Multi-step Wizards)

import { ProcessBuilder } from '@echelon-framework/page-builders';

const process = ProcessBuilder.create('new-transaction')
  .title('New FX Transaction')
  .sessionKey('txDraft')         // shared local DS across steps
  .step({
    id: 'client',
    title: 'Step 1 — Select Client',
    route: '/process/new-tx/client',
    form: { id: 'clientForm', fields: [...] },
    next: 'params',              // auto-generates navigate action
  })
  .step({
    id: 'params',
    title: 'Step 2 — Parameters',
    route: '/process/new-tx/params',
    form: { id: 'paramsForm', fields: [...] },
    next: 'review',
  })
  .step({
    id: 'review',
    title: 'Step 3 — Review & Submit',
    route: '/process/new-tx/review',
    summary: true,               // shows kv-list of accumulated state
    commit: { transport: 'rfq.send', onSuccess: 'done' },
  })
  .build();
// → { processConfig, pages: PageConfig[] } — one page per step

Each step: form.submit → mergeDatasource sessionKey → navigate next. Final step: fetch + clear + navigate done.

defineMenu

import { defineMenu } from '@echelon-framework/page-builders';

export const menu = defineMenu([
  {
    id: 'trading',
    label: 'Trading',
    icon: '💱',
    children: [{ id: 'fx-spot', label: 'FX Spot', route: '/fx-spot' }],
  },
  {
    id: 'user',
    kind: 'user',
    label: 'jdoe',
    userActions: [{ id: 'logout', label: 'Logout', kind: 'danger' }],
  },
]);

License

BUSL-1.1