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

@filamind-app/core

v0.1.4

Published

Shared foundation for the FilaMind suite — Moonraker client, reactive printer state, provenance-stamped values, design tokens, and the widget/plugin registry. Framework-agnostic TypeScript.

Readme

@filamind-app/core

The shared foundation of the FilaMind suite — framework-agnostic TypeScript consumed by FilaMind 3d (web), FilaMind screen (touch), and FilaMind flow. Phase 0.

CI npm License: GPLv3 TypeScript

What's here

| Module | Purpose | | --- | --- | | provenance.ts | Stamped<T> "never-lie" values (value · ts · source · staleAfter) + isStale / freshness | | state/observable.ts | a tiny framework-agnostic observable (consumers bind it to Pinia/signals) | | state/printer.ts | PrinterState — merge-patch from notify_status_update, 1 s coalescing + motion_report fast-path | | moonraker/connector.ts | the backend-agnostic Connector seam (Moonraker first; remote/others later) | | moonraker/client.ts | MoonrakerClient — reconnecting JSON-RPC WS (injectable socket, backoff + jitter + max-attempts), id-correlated, notify fan-out, re-subscribe on reconnect, REST file channel (upload/download) | | moonraker/discovery.ts | zero-config endpoint discoveryresolveMoonrakerUrl() races candidate endpoints (same-origin proxy / direct :7125 / localhost) → first to open wins; runtime override short-circuits. Socket-injectable | | moonraker/subscriptions.ts | the versioned canonical subscription contract — NARROW_STATUS / FULL_CONTROL tiers + tier() | | moonraker/rpc-types.ts | RPC type safetyRpcError (keeps JSON-RPC code/data) · MoonrakerMethods typed-call result map · NotifyEvent + parseNotifyEvent() discriminated notify union | | printer/klippy.ts | the Klippy lifecycle (ready/startup/shutdown/error/disconnected) — tracked apart from the socket so a FIRMWARE_RESTART re-seeds instead of showing stale-as-live | | printer/prompt-parser.ts | parses Klipper's // action:prompt_* protocol into structured modal dialogs (PromptParser) | | session/session.ts | FilaMindSession — the orchestrator: staged init (identify → capabilities → query/seed → subscribe), routes notify_*, owns the Klippy-aware live/stale gate | | safety/write-arbiter.ts | fail-closed WriteArbiter — the single chokepoint for every mutation; enforces safe-mode + a caller guard | | identity/machine.ts | deriveMachineId → stable fm-<hash> from machine.system_info (the roaming-settings key) | | backup/restore-points.ts | reversible, retention-bounded RestorePoints (back-up-first substrate for config/flash/migrate) | | observability/logger.ts | pluggable ring-buffer Logger (the diagnostics-bundle source; replaces silent catch {}) | | registry/widget-registry.ts | the cross-surface widget/plugin registry + aggregateSubscriptions | | remote/commands.ts · remote/command-sender.ts | the cross-surface command bus — UI-only commands (navigate / message / locate) over a Moonraker agent connection. CommandSender identifies as an agent, re-identifies on reconnect, is single-flight, and sanitizes control/bidi text; it is never a mutation path (those still go through WriteArbiter) | | theme/tokens.ts | the theme palettes as --fm-* design tokens — 3 signature Pharaonic themes (Tutankhamun · Horus · Anubis) + neutral light / dark | | i18n/locale-meta.ts | the 19 shipped locales { code, name, rtl, dir } + RTL list + CLDR pluralCategory (Intl.PluralRules) | | i18n/translator.ts | framework-agnostic translate / Translator + the backend message-code contract (resolveMessage) | | i18n/locales/*.json | drop-in catalogs (en + ar shipped as proof, incl. the full Arabic plural set) | | settings/settings.ts | unified user settings (theme · locale · density · motif · reduced-motion): SettingsStore (patch/hydrate/reset/export/import), migrate() (versioned, enum-coercing — import() trusts no foreign JSON), applySettings (re-theme + RTL dir), persistence seam (Moonraker-DB / localStorage) |

Wiring (the consumer entry point)

import { MoonrakerClient, FilaMindSession, FULL_CONTROL } from '@filamind-app/core'

const connector = new MoonrakerClient({ url: 'ws://printer.local:7125/websocket' })
const session = new FilaMindSession(connector, {
  subscriptions: FULL_CONTROL,
  identify: { client_name: 'FilaMind 3d', version: '0.1.0', type: 'web' },
})
await session.start()

// reactive, framework-agnostic — bind these to Pinia/signals/etc.
session.live.subscribe((v) => {/* dim the UI when not trustworthy-live */})
session.printer.objects.subscribe((o) => {/* render telemetry */})
session.prompt.subscribe((ev) => {/* show a Klipper modal */})

Scripts

npm install
npm run type-check   # tsc --noEmit
npm test             # vitest (76 pure-logic tests)
npm run build        # tsup → dist/ (ESM + .d.ts)

Notes

  • Consumed by the suite apps (FilaMind 3d / screen / flow) via the workspace in development.
  • Framework-agnostic on purpose: no Vue/React import in core. The reactive layer is a plain Observable; Vue/Pinia adapts it on the consumer side.
  • Versions are pinned to current real latest-stable; bump deliberately at first real install.
  • GPL-3.0-or-later. FilaMind's own — no third-party project named (R1).

Credits

Built and maintained by the DeltaFabs team:

License

GPL-3.0-or-later © 2026 DeltaFabs team.