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

@x12i/funcx-cui

v1.1.0

Published

React catalog admin + playground UI for FuncX Templates Manager APIs

Readme

@x12i/funcx-cui

React catalog user interface for FuncX: browse normalized ai-functions catalog rows, edit instructions/prompt/rules/schemas, workflow (draft → ready → released), and the playground (preview + live run()).

Pairs with a FuncX Templates Manager API (or any host implementing the same REST contract).

Install

npm install @x12i/funcx-cui @x12i/funcx react react-dom

Published on npm as @x12i/funcx-cui (public, @x12i scope).

In this monorepo, the package lives at funcx-cui/ and is linked via workspace / file:../funcx-cui.

Quick embed

import { FuncxCuiProvider, FuncxTemplatesManagerApp } from "@x12i/funcx-cui";
import "@x12i/funcx-cui/styles.css";

export function AdminApp() {
  return (
    <FuncxCuiProvider apiPrefix="/api">
      <FuncxTemplatesManagerApp title="FuncX Catalog" />
    </FuncxCuiProvider>
  );
}

Proxy /api to your Templates Manager API (default port 4902).

API prefix

| Prop | Default | Purpose | |------|---------|---------| | apiPrefix | /api | REST path before /health, /functions, /playground/run, etc. |

Use apiPrefix="https://catalog.example.com/api" for cross-origin hosts (CORS must allow the browser origin).

Modes

| Mode | Behavior | |------|----------| | admin (default) | Create, open workspace, edit, playground | | catalog | Browse + playground only (no create/open/edit); playground requires Ready |

<FuncxCuiProvider mode="catalog" apiPrefix="/api">
  <FuncxTemplatesManagerApp title="FuncX Catalog" />
</FuncxCuiProvider>

Pair with API FUNCX_CUI_MODE=catalog on the Templates Manager server to block mutation routes.

Custom modes: registerFuncxCuiMode(id, capabilities) — see src/ui/mode/appMode.ts.

Source layout (UI vs HTTP client)

This package is UI only — React components, hooks, and a browser HTTP client (src/client/) that calls the Templates Manager REST API. It does not include the Express server; that lives in funcx-templates-manager/packages/server.

funcx-cui/src/
├── client/          # HTTP client for Templates Manager REST API (fetch only)
├── domain/          # Catalog logic shared by UI (no React, no fetch)
├── ui/              # React app shell, components, editors, hooks
└── styles/          # CSS bundled with the library

Exports

| Export | Description | |--------|-------------| | FuncxTemplatesManagerApp | Full catalog + workspace + playground shell | | FuncxCuiProvider | Configures apiPrefix + UI mode | | useFuncxCuiMode | Current mode + capability flags | | registerFuncxCuiMode | Register future embedder modes | | configureFuncxCui | Imperative config (non-React embedders) | | Types | FunctionSummary, PlaygroundConfig, WorkflowStatus, … |

Monorepo layout

funcx-mono-repo/
├── funcx/                          @x12i/funcx — core library
├── funcx-cui/                      @x12i/funcx-cui — React UI library (no server)
├── runx/                           @x12i/runx — capability execution (runx-ui for UIs)
└── funcx-templates-manager/
    ├── packages/server/            Express REST API (:4902)
    └── packages/client/            Vite browser app (:4903) → imports @x12i/funcx-cui

Client / server are separate packages. The browser app (packages/client) only renders @x12i/funcx-cui; all REST routes live in packages/server. Do not add Express or Catalox/Mongo logic to funcx-cui.

Develop

Tooling: Vite 8 (vite@^8). @vitejs/plugin-react@^6 is the React plugin major version — not Vite 6.

# From monorepo root
npm install
npm run build:cui          # optional; web dev aliases funcx-cui/src
npm run dev:server           # :4902
npm run dev:client           # :4903

Build

npm run build --prefix funcx-cui

Outputs dist/index.js, dist/index.cjs, dist/funcx-cui.css, and TypeScript declarations.

Related

  • funcx-templates-manager README — API routes, bootstrap, Mongo setup
  • @x12i/funcx 4.10.4 — catalog types, readiness, playground preview helpers, OpenRouter via @x12i/ai-router-runtime