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

@forestadmin/datasource-demo-bank

v1.0.1

Published

Demo data source for Forest Admin, themed around a retail and business bank's back office: onboarding and KYC, sanctions screening, AML alerts and investigations, SAR reports, card chargebacks, SEPA disputes, outgoing transfers, e-invoicing, credit and th

Downloads

696

Readme

@forestadmin/datasource-demo-bank

Demo data source for Forest Admin, themed around a retail and business bank's back office: onboarding and KYC, sanctions screening, AML alerts and investigations, SAR reports, card chargebacks, SEPA disputes, outgoing transfers, e-invoicing, credit and the account lifecycle.

On boot it builds a throwaway SQLite database (db.sqlite in the current folder), seeds it via Knex and exposes it through @forestadmin/datasource-sql. It is used by forest start (demo) to bootstrap a project with realistic sample data, work queues, Smart Actions and API charts.

import { createDemoBankDataSource } from '@forestadmin/datasource-demo-bank';

agent.addDataSource(createDemoBankDataSource());

// Or with the partner portal at another address:
agent.addDataSource(
  createDemoBankDataSource({ partnerPortalOrigins: ['https://portal.example.com'] }),
);

A few Smart Actions are demo tools: Send new applications, Start the day, Reset the demo cases.

How the data is built

  • Seed (src/seed/): seed/data-model.ts lists the 59 tables, their fields, enums and links (seed/schema.ts reads it and names the links); seed/index.ts creates every table and runs the domain builders (retail, business, banking, crime, disputes, e-invoicing, credit, lifecycle…), then adds the four demo KYC cases (KYC-DEMO-000x). The stories are the same on every boot (fixed seed in seed/random.ts) and dated from the boot, so a demo never looks stale; two boots within the same hour give exactly the same rows. Business coherence is enforced in the builders: a filed SAR escalates its alert, a chargeback links back to its card transaction, and so on.
  • Customize (src/customizations/): the links of the data model, readable record names and parent lists for every table (shared/), then one module per table with its Smart Actions, computed fields and evidence. shared/segments.ts defines the work queues: per key, a table, a name and the filter that selects the records waiting in it.
  • Charts (src/charts/): the API charts: each team's weekly figures, the tasks waiting in every queue (hub_counts), the data model by domain (data_map), a few headline figures (feature_facts) and how far the demo's KYC story has gone (demo_guide).

Partner portal

The Submit application and Upload document Smart Actions take applications and files from a partner portal. Upload document fetches a file only from the portal addresses given in the partnerPortalOrigins option (default ['http://localhost:3500', 'http://127.0.0.1:3500']): a PDF, PNG or JPEG of at most 5 MB, no redirect. An uploaded paper waits for its check like the others; an uploaded ID has no flaw.