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

c1x-workflow-builder-flowforge

v1.0.0

Published

Core Workflow Engine

Readme

C1X Workflow Builder UI Library

Standalone, framework-agnostic workflow builder built with pure TypeScript core logic and a Web Component wrapper.

What This Provides

  • Pure TypeScript workflow engine for DAG state, validation, history, and JSON serialization.
  • Drag-and-drop node builder UI rendered with LiteGraph (HTML5 canvas).
  • Embeddable Web Component: c1x-workflow-builder.
  • Public API methods for host apps: getWorkflow, loadWorkflow, validateWorkflow, undo, redo, clearWorkflow, fitToScreen.
  • Custom DOM events for host synchronization.

Build The Library

From project root:

  • npm install
  • npm run build

Artifacts are generated in dist.

Embed In React (Fresh Project)

  1. In this library project root:
  • npm run build
  • npm link
  1. In your React app:
  • npm install c1x-workflow-builder
  • npm link c1x-workflow-builder
  1. Import once at app startup so custom element is registered:
import "c1x-workflow-builder/dist/index.js";
  1. Use the element:
<c1x-workflow-builder workflow-id="react-flow-001" />
  1. Optional API usage:
const builder = document.querySelector("c1x-workflow-builder") as any;
const json = builder.getWorkflow();
const ok = builder.loadWorkflow(json);
const result = builder.validateWorkflow();

Embed In Angular (Fresh Project)

  1. In this library project root:
  • npm run build
  • npm link
  1. In your Angular app:
  • npm install c1x-workflow-builder
  • npm link c1x-workflow-builder
  1. In src/main.ts (or another bootstrap import):
import "c1x-workflow-builder/dist/index.js";
  1. In app.module.ts, allow custom elements:
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
  1. In template:
<c1x-workflow-builder workflow-id="ng-flow-001"></c1x-workflow-builder>

Demo Page (Preloaded JSON)

A standalone demo is available in demo/index.html.

It loads demo/sample-workflow.json on startup and calls loadWorkflow, then fitToScreen.

Run:

  • npm run build
  • Open demo/index.html

Event Contract

Common DOM events emitted by the component:

  • workflow-ready
  • workflow-change
  • workflow-validation-failed
  • workflow-history-changed
  • workflow-destroyed

Framework Examples In This Repo

  • React example: examples/react-demo
  • Angular example: examples/angular-demo