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

@creezio/app-runtime

v0.26.0

Published

Façade runtime marque — startBrandDesktop / startBrandKernelHarness (orchestration OS)

Readme

@creezio/app-runtime

Rôle

@creezio/app-runtime est la façade n°1 des marques : elle orchestre le boot complet d'un OS Creezio, en desktop Electron (startBrandDesktop) comme en serveur headless (startBrandKernelHarness). La marque fournit son manifest, ses migrations, son API métier, éventuellement un feed Meili et une nav — tout le reste (paths, SQLite, embeds, auth, API /api/v1, MCP, splash, updater, crash-reporter, sidecar navigateur) est composé ici.

API publique

| Export | Rôle | |--------|------| | startBrandDesktop(config) | Boot desktop Electron complet (main mince côté marque) | | startBrandKernelHarness(config) | Boot OS sans GUI (serveur Docker, smokes) | | composeBrandOs | Composition de l'OS natif (kernel, stores, surfaces) | | listenBrandOsHttp / listenBrandBootHttp | Serveurs HTTP OS + endpoint boot précoce | | createBootProgress (boot-progress.ts) | Progression de boot headless : GET /api/v1/os/boot-status, JSONL stdout, journal ops | | warmBrandNativeHosts | Préchauffage embeds (n8n, Hermes) | | wireBrandBrowserSidecar | Sidecar navigateur IA (Chromium CDP, CREEZIO_BROWSER_PROXY) | | mountBrandEmailSurface / mountBrandMcpSurface / mountBrandPlatformSurface | Surfaces optionnelles | | createBrandModuleRegistry | Collecteurs du registre (collectEntitySpecs, collectAssistantSources, collectOnboardingContent, …) — SoT BrandModuleDef (P2.c / F3.4) |

Consommation marque

import { startBrandDesktop } from "@creezio/app-runtime";

await startBrandDesktop({
  manifest,
  electronDirname: __dirname,
  brandMigrations: brandMigrations(),
  registerModuleApi: registerBrandModuleApi,
  meiliFeed: brandMeiliFeed,
  navItems: verticalSlot.items,
});

Comportements clés

  • Crash early writer : installEarlyCrashWriter() est posé dès l'entrée de startBrandDesktop, avant toute résolution de chemins — un crash au tout début du boot laisse un early-*.json à côté de l'exécutable.
  • Data layout packagé : toutes les données vivent sous {installDir}/data/ (voir resolvePackagedDataDir, @creezio/platform-core).
  • Fleet : sans CREEZIO_FLEET_ENDPOINT, l'endpoint par défaut est la sentinelle …/ingest-disabled — l'agent fleet ne fait alors aucun appel réseau.
  • Env utiles : CREEZIO_HTTP_HOST=0.0.0.0 (Docker), CREEZIO_NATIVE_WARM / _N8N / _HERMES (n8n et Hermes découplés en local ; VPS create/update force les deux ON), CREEZIO_DESKTOP_SHELL=window, CREEZIO_BROWSER_PROXY.

Hermes « cerveau unique » — endpoint /mcp (câblé prod)

Le endpoint /mcp servi par listen-brand-os-http.ts accepte deux transports sur la même URL (desktop ET harness Docker) :

  • transport JSON simple historique ({ok, tools} / {name, arguments}) — conservé pour les clients existants ;
  • JSON-RPC 2.0 stateless (mcp-jsonrpc.ts) : seuls les corps portant jsonrpc:"2.0" passent par ce pont (initialize, tools/list, tools/call, ping) — c'est ce que parle le client MCP natif de Hermes (Streamable HTTP, skip_preflight: true).

hermes-mcp-host-tools.ts branche sur la façade MCP les tools host tasks (create_ai_task, get_ai_run_logs…) + workspace (workspace.*, platform.ask_human — @creezio/tasks). Décision d'acteur : façade allowUnauthenticated, les tools qui agissent portent leur gate ; la clé CRM service Hermes (user_id NULL + scopes full) est vérifiée contre la table api_keys et mappée owner — une clé restreinte n'est PAS mappée (fail-closed). Gate : scripts/test-phase-hermes-mcp.mjs.

Plugins (câblé prod — desktop et harness)

  • plugin-seed.ts : seed des plugins embarqués marque (<appRoot>/plugins/ → <userData>/plugins/, idempotent) ;
  • plugin-proxy-mount.ts : /api/v1/plugins/<id>/* → sidecar loopback ;
  • plugin-tools-discovery.ts : tools MCP plugin.<id>.* ;
  • plugin-acl-wiring.ts : ACL Product Hub fail-closed sur la façade.

Guide auteur : CREATE-PLUGIN.

Liens