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

@synap-core/workspace-templates

v0.78.0

Published

Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace

Readme

The Synap catalog

ONE home for every official installable template: workspaces, capabilities, skills, packs, automations and views. The team sees, edits, validates and publishes them all from this folder, through one lib and one CLI. The live catalog is the Control Plane's synap_packages table, and it has one write door: POST /api/packages → publishPackageCore.

Name today: synap-app/packages/workspace-templates/, npm @synap-core/workspace-templates. Planned, not done: a rename to packages/catalog/, @synap-core/catalog, with the old name kept as a re-export shim for one release. See Coordinated rename.

How installs, reconciles and tiers work is in the synap-market skill (synap-backend/skills/synap-market/), which is also the agent door.


1. What lives here, by kind

| Dir | Kind | Format | Published today? | | ------------------------------------ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | src/*.yaml | workspace (and pack, for a suite) | Legacy workspace YAML (meta: plus body). A thin adapter reads it as {kind: workspace, meta, spec} | Yes. 31 entries, CI on every push to main | | capabilities/<key>.capability.json | capability | Manifest (below). meta carries the listing and visibility; spec is the CapabilityDefinition | Yes, CI on every push to main (§4) | | skills/<slug>/ | skill | Either a manifest <slug>.skill.json (creative-director), or an Agent-Skills folder (SKILL.md plus references) with a header skills/<slug>.catalog.json beside it. A manifest folder may also hold a source file the skill builds on a computer (facecam-edit/synap-matte.swift): never a catalog entry, it reaches the computer through the npm package, pinned by version and sha256 in the skill's body (held equal by src/facecam-edit.matte.test.ts) | The manifest: yes. A folder: only with its header, and only when it holds no reference files (a skill package carries no documents). Headers decided by the founder on 2026-11-05: bookmark-enrichment and routing-to-channels public, mapping-the-server unlisted (private to the official owner); reading-client-progress and the parked stellar-scf-grants-advisor stay staged | | views/<slug>.view.json | view | Manifest; spec.views in the canonical shape the CP stores ({slug, displayName, type, config, scopeProfileSlugs}) | Category view. Three today (bookmark-views-pack, event-views-pack, task-views-pack), moved from the old CP pack fragments on 2026-11-05. CI on every push to main | | automations/<slug>.automation.json | automation | bridge-setup flowDefinition form, plus a header automations/<slug>.catalog.json beside it | Only with its header, and only without apply-time placeholders. Headers decided by the founder on 2026-11-05: bookmark-enrichment public; url-bookmark-capture, github-pr-events and the four ship-a-change-* that carry no pod id unlisted. mail-feed stays staged: it carries two placeholders bridge-setup fills; ship-a-change-deployed too: its playbook_run node needs one pod's agent and goal ids (handToAgentId, trackId), which a package install cannot supply | | agents/<slug>.agent.yaml | agent | Manifest. spec (schema/agent.ts) is what the pod reads as definition.agent: harness (the agent_type join key), aliases, worker, tried, detect, wake (data: program + args + params, never a shell line; required for a worker only), practices.skills, mcp (where its program reads MCP servers: config under ~/, format yaml/json, key dot path, entry; the CLI writes the pod's server there on synap agents add, the pod ignores it), toolProfile (entry / builder) + toolGroups (only with entry): the MCP tools an agent's first key lists, read by the pod (backend#900). One per program of the backend harness registry, plus hermes. CP category agent, official vendor only, left out of browse lists (the catalog installs every official agent on every pod, founder decision D8) | Yes, on every push to main, like every other kind (the first publish was the founder's, by hand, on 2026-11-07; FIRST_PUBLISH_BY_HAND is empty since) | | renderer-bundles/<slug>.yaml | renderer-bundle | Manifest (schema/renderer-bundle.ts): the cells (each an entry module under packages/web/src/renderer-bundle/cells/, importing only the bundle's kit space-packages/kit-bundle.ts), and the host's fallbacks (defaults). pnpm --filter @synap-core/workspace-templates build:renderer-bundle builds renderer-bundles/built/<slug>.definition.json (the RendererBundleDefinition: its own React, kit and tokens, the cells' code, every sha256) and <slug>.build.json (inputs, the commits it was built from, the tRPC trace). Neither is committed (built/ is gitignored): the publish workflow builds them from the commit it publishes, and scripts/build-renderer-bundle.test.ts runs the same build and checks it. Never in the npm package (files). Licence PolyForm Noncommercial 1.0.0 | Category renderer-bundle, private, never synced: the CP delivers it to any live pod a Synap plan covers (decision c91d26dc; founder, 20 Nov 2026). CI on every push to main, once the CP accepts the category | | schema/ | | Zod manifest schema: header.ts, plus one body per kind (workspace, capability, skill, automation, view, agent, playbook) | | | standards/*.standard.yaml | | Quality standard per workspace (pnpm eval) | | | scripts/catalog-lib.mjs | | The ONE lib: loadCatalog → validateCatalog → diffCatalog → publishCatalog | | | src/*.ts | | The typed bundle (dist/) that clients ship as the zero-network fallback | |

A staged file is read, validated and counted, and the problem list carries a staged warning for it. It cannot reach POST /api/packages. On 2026-11-05 the whole-catalog validate printed ✓ 93 catalog entries validated (selected: 27 workspace · 44 capability · 18 skill · 0 pack · 0 automation · 3 view) + 13 retired.

No CP pack fragment. The old CP templates/packs/*.json shape (a JSON with a top-level _meta) is a load error. Its three view packs are kind: view manifests in views/. Its ten profile packs and the misfiled deep-research playbook are in retired-sources/packs/ (never loaded or published): the CP retired the profile-pack category in its migration 0049, and the playbook never reached the CP.

What stays elsewhere:

  • System skills (system/*) stay in synap-backend/skills/. They are the pod's teaching substrate, seeded at boot, and are not marketplace items. Catalog files may reference system/* slugs; the validator checks those exist when the sibling repo is checked out, and says it skipped when it is not.
  • CLI runtime skills (authoring-*, coordinating-*) stay in synap-cli/templates/skills/.

2. The one manifest shape

{
  "apiVersion": "synap/v1",
  "kind": "capability",            // workspace | capability | skill | pack | automation | view
  "meta": {                        // the header: same limits as the CP publishSchema
    "slug": "apify",               // kebab-case; dots only for a capability whose slug === spec.key
    "name": "Apify — Web Scraping",
    "description": "Find and run any Apify actor to collect data from public web pages and social posts. …",
    "tags": ["capability"], "isPublic": true, "syncByDefault": true
    // also: icon, color, domain, requiredTier, version?, owner ("template-owner" ⇔ private)
  },
  "spec": { "key": "apify", "skills": [ … ] },      // the per-kind body
  "dependencies": []                                // { kind, slug } — what an install pulls in
}

One pure compiler, toPublishBody(manifest), turns a manifest into today's POST /api/packages body. The CP door and its PACKAGE_TYPES are unchanged. A workspace publishes as category workspace, a capability as capability, a skill as skill, an automation as workflow, a view as view.

Playbook goals use {name} placeholders. @{arg:} is refused at authoring; the runtime still reads it.

3. Add or update, per kind

Workspace. Edit or add src/<slug>.yaml, along with its *.template.test.ts when the template has one. Then run pnpm --filter @synap-core/workspace-templates build. That regenerates src/templates.ts and dist/. The publish refuses a stale dist/. Bump package.json version whenever content changes: the official publish stamps definition.sourcePackage.version, and clients let a remote row win only when it is strictly newer than their bundle.

Capability. Edit capabilities/<key>.capability.json. The listing and visibility go in meta; the definition goes in spec.

  • This file is the only copy. The CP's insert-only bootstrap reads this package's capabilities/ (installed from npm); it holds no copy of its own.

  • A reader is an ordinary verb that reads one link: intent: "read_webpage", metadata.readOnly: true, a required url parameter, and urls: [...] declaring the links it handles (host[/path], *.host, or "*"; the grammar lives in @synap-core/types/url-read). The pod's one read door routes by those patterns; nothing else names a vendor. It returns a UrlRead (status, text, media, ...), saves nothing, and an account-billed one runs only on the person's tap. Reference: the apify-social-post-capture add-on's capture_social_post. synap catalog validate enforces it (skill-urls). The agents' own door to reading a link is the pod's built-in web.read verb (Synap Core), not a catalog capability: the old web.read pack is retired.

  • An add-on (founder decision D6) is a capability that extends another one: spec.extends: "<base key>" (e.g. apify-linkedin-profiles extends apify). It is its own package, listing and installed tool, with its own actions; it declares no tools and no vault: its skills requires the base's tools by name and run through the base's access. spec.extends is the one authored field: the {kind: capability, relation: require} dependency on the base is added at publish, and synap catalog validate refuses an add-on that names no catalog capability, declares a tool, requires a tool its base does not declare, repeats one of its base's action ids, or carries a dependency on its base that disagrees (addon-*).

  • A verb that must always ask (it deletes, destroys or publishes) declares metadata.proposeOnly: true: no auto grant and no "runs on its own" rule ever runs it, whatever its name. Adding it later only tightens (it reaches installed pods without a re-approval); setting it back to false re-earns the owner's approval. Never beside readOnly: true. Reference: postiz's four post verbs. synap catalog validate enforces the shape (skill-propose-only).

Skill. Either a manifest skills/<slug>/<slug>.skill.json (kind: skill, spec = the CP's definition.skill), or an Agent-Skills folder skills/<slug>/SKILL.md. A folder stays in the shape synap bridge-setup reads; to publish it, add a header BESIDE it (never inside: bridge-setup imports every file in the folder as a document):

// skills/<slug>.catalog.json — a manifest without spec
{
  "apiVersion": "synap/v1",
  "kind": "skill",
  "meta": {
    "slug": "<slug>",
    "name": "Display name",
    "description": "listing copy",
    "tags": [],
    "isPublic": true,
  },
  "dependencies": [],
}

It compiles to definition.skill = { slug: <frontmatter name>, name: meta.name, description: <frontmatter description>, kind: "instruction", scope: "pod", body }, the same slug/description/body bridge-setup imports. Refused: reference files in the folder (skill-documents), metadata.auto_load: true (skill-auto-load), a frontmatter name that is not meta.slug (skill-slug). Without a header the folder is staged. Deciding which folders get a header (their listing and visibility) is a content decision; reading-client-progress and stellar-scf-grants-advisor are client-specific. A private (unlisted) header carries "isPublic": false, "owner": "template-owner". synap bridge-setup reads these folders from the installed package; the CLI holds no copy (synap-cli#91).

View. Add or edit views/<slug>.view.json:

{
  "apiVersion": "synap/v1",
  "kind": "view",
  "meta": {
    "slug": "task-views-pack",
    "name": "Task Views",
    "description": "listing copy",
    "icon": "layout-grid",
    "color": "#3B82F6",
    "tags": ["tasks"],
    "isPublic": true,
  },
  "spec": {
    "views": [
      {
        "slug": "task-board",
        "displayName": "Task Board",
        "type": "kanban",
        "config": { "groupByField": "status" },
        "scopeProfileSlugs": ["task"],
      },
    ],
  },
  "dependencies": [],
}

It publishes as category view with definition = { profiles: [], views, description: meta.description, icon, color }, the shape the seeded view rows carry. Only the canonical view shape is accepted (the CP's name / singular scopeProfileSlug shorthand is refused), and view slugs are unique within the file.

Pack. A pack is a workspace suite (src/*.yaml with the suite tag): it publishes as category workspace and owns no space.

Automation. Either a manifest (kind: automation, spec in the authoring flow form), or a raw automations/<slug>.automation.json in the flowDefinition form bridge-setup reads, published once a header automations/<slug>.catalog.json (kind: "automation", no spec) sits beside it. It publishes as category workflow: definition = { profiles: [], automations: [{ key: <slug>, name, description?, triggerType, triggerConfig, flowDefinition, status }] }, i.e. the raw file minus its metadata notes. Refused: an apply-time placeholder (apply-time-placeholder: an empty or <…> connection id, a <…> output channel, a skill node without skillId) and any raw key a package cannot carry (state). synap bridge-setup reads bookmark-enrichment, mail-feed and url-bookmark-capture from the installed package; the CLI holds no copy (synap-cli#91).

Every kind. Run the gate before you push:

cd synap-app
node_modules/.bin/vitest run packages/workspace-templates        # schema, parity, lifecycle, goal grammar
pnpm --filter @synap-core/workspace-templates type-check:catalog # schema/ + scripts/
synap catalog validate                                           # the whole corpus, offline

The lib needs Node ≥ 22.18, because it imports schema/*.ts through native type stripping. An older Node refuses with unsupported-runtime.

Retiring a template

A template that leaves the catalog is not just deleted: it gets a tombstone in retired.yaml (schema schema/retired.ts), so a pod can tell "retired, replaced by X" from "never heard of it" and offer the person a safe move to X.

  1. Delete the file (src/<slug>.yaml, capabilities/<key>.capability.json, …).
  2. Add an entry to retired.yaml:
    - slug: radar
      kind: workspace # default; capability · skill · pack · automation · view
      replacedBy: ecosystem # a LIVE slug of the same kind, or omit when nothing replaces it
      reason: Radar was merged into Ecosystem, which tracks competitors and trends in one place.
      since: "2026-07-16"
  3. synap catalog validate: replacedBy must be live and not retired, no slug may be both live and retired in the same category (the CP keys rows on slug + category, so a retired workspace posthog-analytics beside a live capability of that slug is fine), and the reason must be one plain sentence a person reads.
  4. Publish as usual. publishCatalog sends each tombstone of the selected kinds to POST /api/packages/retire through the catalog door, after the live publishes (a replacement published in the same run exists by then; a tombstone whose replacement failed is not sent). The preview prints retire radar → ecosystem with its status: new (no CP row, a tombstone row is created), changed (the live row is retired, or its retirement updated), unchanged (not sent). A CP without the endpoint is reported as such, never skipped silently.

Removing an entry from retired.yaml does not un-retire the CP row. The evidence behind each seeded entry is in the pod file 00c1b2fe-ef98-41fa-86cf-801dfab12cd1 ("Template lifecycle: decisions wave + lane catalog").

Removing a kind from a live template

retired.yaml tombstones a whole template, not a kind inside one. There is no kind-level tombstone: remove the profiles: entry and everything that names it (views, relations, entity bento, onboarding collect, standards), bump the package.json version (minor for a removed kind), and republish. A pod that already installed the template keeps its profile and entities (profiles are never removed from an installed pod); only new installs lose the kind. The kinds removed this way are listed in src/retired-goal-kinds.test.ts, which fails if a template declares one again (Life OS goal, Enterprise OS objective, Project Management okr: "Goal" is the pod's track, decision D2, 2026-10-23).

Writing a process (a playbook that follows a kind's lifecycle)

The status belongs to the kind or role, never to a playbook. Its profile declares the lifecycle ONCE, in its template:

lifecycle:
  property: post-status
  options:
    - { key: Idea, category: open }
    - { key: Published, category: done }
    - { key: Archived, category: lost, humanOnly: true }

Every option has one category (open · active · paused · done · lost); rules read the category, names stay free. humanOnly marks an option no agent sets; an agent's move into done or lost proposes. Every move goes through the one status door (moveStatus; an agent sends update_entity with expectedStatus).

A step that can still move may also say when it is late and what it waits on, by the pod's own rules (lifecycleOptionWaitsProblems in src/validate.ts; never on a done or lost option):

- key: sent
  category: active
  dateBinding: dueDate # late once this date passes while it stands here
  waits:
    { on: external, waitKind: payment, refFrom: clientId, dateBinding: dueDate }

dateBinding and waits.refFrom / waits.dateBinding are property slugs. waits.on is a hold's on (person · agent · external · thing · decision · date · nobody); waitKind one of the pod's WAIT_KINDS.

A new lifecycle should adopt one of the ten bases (src/lifecycle-presets.ts: work-item, run, decision, asset, publication, agreement, pipeline, relationship, offering, initiative) and say only how it differs:

lifecycle:
  property: reference-status
  adopts: asset
  rename: { in-review: studied, deprecated: archived } # base key → this kind's key
  drop: [] # base keys this kind does not use
  add: [] # { key, category, after | before }
  humanOnly: {} # per step; false removes a base's mark
  stuckAfterDays: {} # per step
  dateBinding: {} # per step: { sent: dueDate }
  waits: {} # per step: { sent: { on: external } }

The build compiles it into the flat options above and writes the select's enumValues when the YAML leaves them out; nothing new reaches the pod. A lifecycle whose order the bases cannot express stays flat.

A playbook that works that lifecycle is a process: it FOLLOWS it. Its stages name options of it, its workers start on it, and a person decides at the moments that commit the business. It never keeps a second status field. The reference is Content OS "Produce Content" (synap-app/packages/workspace-templates/src/content-os.yaml).

Official vs pod-local. An official template or capability lives ONLY in the catalog (synap-app/packages/workspace-templates/, by kind); landing it on app-bases main publishes it (CI). A playbook, kind or automation an agent creates on a pod (synap_create_playbook, synap_define_kind, …) is pod-local: it never reaches the catalog. To make it official, write it into the catalog file and land it on main. A pod draft proposal mirrored into the catalog is a second copy: once the file lands, withdraw the proposal; the review is the catalog commit.

| Field | Where | Rule | | ---------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | subjectProfile.profileSlug | playbook | The kind or role the process works. | | (no status field) | playbook | The process FOLLOWS the kind's declared lifecycle: every subjectStatus, onApproved and worker status is an option of it. statusProperty, onEnd and humanOnlyStatuses are retired (One model decision 4, playbook-field-retired): a person-only option is humanOnly on the lifecycle, a status no stage owns is derived by the pod, and a session that ends early moves nothing. | | stages[].subjectStatus | stage | The IN-PROGRESS status (In Draft, Review): entering the stage moves the subject to this option, through the door. Must be an existing option of the lifecycle — never invent one. | | stages[].onApproved | stage | The RESULT status (Scripted, sent, won): reached when the stage's work is APPROVED — its expectedOutputs all delivered, else the next stage's gate passing (decision D2). The subject holding it means the run stands at the NEXT stage. With neither (a last stage, or an ungated next stage, and no required output) the engine never writes it, never on a session's end: it stays declared so the follow and flow.of know what the stage reaches, and the stage's goal must name the move (the value or its label) for whoever finishes it, through the status door (stage-on-approved-no-signal). An agent's move into a done or lost option comes back proposed for the person. | | stages[].gate | stage | {kind: human} at every commitment: send to a client, sign, pay, publish, won/lost, anything irreversible. {kind: check} only where the stage's own criteria can be verified. A gated stage writes its status only when the gate passes. A check gate judges the stage being LEFT, so never use it to guard an irreversible status. | | stages[].onFail | stage | {toStage: <key>} — where a rejected gate sends the run (rework loop). | | stages[].criteria | stage | 2–5 binary statements; check.kind evidence (cheapest) · capability · judge · human. | | expectedOutputs[] | stage or playbook | What the step must produce: kind + label + relationToSubject (an existing relation slug, or none). The UI shows what was produced from this. | | activators[] (workers) | playbook | on: created · enters_status (+ status) · count (+ status, min ≥ 2) · schedule (+ cron, UTC) · manual. size: per_thing (default) · per_moment (count and schedule always are). mode: propose (default) · run only when cheap and safe. maxPendingApprovals (default 20) throttles. Compiled to a governed rule the owner can pause; it fires once per thing per transition. | | goalTemplate | playbook | Placeholders are {paramName}. Never @{arg:…} (read-only legacy). | | params | playbook | The subject is a type: entity param. A required param left unanswered becomes a question owed by the person, not an empty string. | | guidance[] | playbook | The rules it follows (backend#924): {ref: "kind:<slug>" \| "skill:<slug>", label?, when?, where?}, refs never ids. Each run renders the CURRENT versions under "Rules this playbook follows": a kind's entities whose lifecycle category is done, an approved skill. So a kind: ref names a catalog kind with a lifecycle whose done options are all humanOnly (entity text becomes prompt text); a kind with an order property renders as "the first row that fits". Style lives here, never in the goal; process stays in the goal. guidance-ref in synap catalog validate. |

Human moments use an ask on an owed slot: confirm / choose (one recommended) / form / act / provide (connection, file or secret through the vault). Never ask for a secret in a form.

Validation: synap catalog validate (process contract, goal grammar, lifecycle ratchet — the count of lifecycle kinds with no process may only go down).

Boards. A kanban names its columns in config.groupByField (the one key the board reads); grouped on the kind's lifecycle property it is the flow board, where a drag is the governed status move. A groupBy (top-level or in config) is never read and is refused (view-kanban-group-*).

Intent: what a space produces

A space is named by its PURPOSE first ("Product · Dev", "Sales · CRM") and is read through the THINGS it makes. The template that owns the space says both, in meta.intent:

meta:
  intent:
    label: Product # the purpose word, ≤ 24 characters
    primary: devplane_feature # the ONE output the main flow produces; one of produces
    produces: # ordered; kinds or roles
      - profile: devplane_feature
      - profile: devplane_story
      - profile: ui-design
  • Several kinds, never one only. List what a person would come to the space to see move, in the order a home shows them.
  • One primary output (One model decision 3): the kind or role the space's main flow produces, the one its home leads with. Required when the space produces anything, and one of produces; the rest are its operational kinds (intent-primary-missing, intent-primary-not-produced). meta.start.profile defaults to it: omit it unless the start is about another kind (start-profile-redundant).
  • No produces (or []) = a library. Brand, Strategy, Ecosystem, Knowledge… are read, not moved: they carry a label only, and no primary (intent-primary-library).
  • Each produced profile declares a lifecycle — a home counts things by lifecycle category, so a kind without one cannot be counted (intent-no-lifecycle, naming it). Declare the lifecycle first (see "Writing a process").
  • Each produced profile is the template's own or one it depends on (require/compose closure), e.g. CRM produces the lead role and Operations the client role, whose lifecycles foundation declares (intent-profile-unknown).
  • Only a template that owns a space declares it. An overlay (compose) layers onto its base's space and a pack (suite) owns none, so neither carries an intent (intent-no-workspace); base carries none either (it is seeded into every space).
  • On the pod. Both install doors forward it as a top-level intent (never in _meta, which the CP rebuilds on serve); the pod keeps it in workspaces.settings.intent. A space with no declared intent gets one inferred at read time (the profiles there that declare a lifecycle and hold things), never stored.

Declared requests (onboarding.intents)

The requests a space takes, in its owner's words, so a person's plain request reaches the space without naming it (find ranks the member spaces on them; space contract L3). They sit in the brief:

onboarding:
  intents:
    - { phrase: write a LinkedIn post, locale: en }
    - { phrase: rédiger un post LinkedIn, locale: fr }

At most 8 phrases of at most 80 characters, each of two or more meaningful words (glue words such as "the", "to", "le", "de" do not count), locale a BCP 47 language, one language per phrase (a space that serves two languages declares each). synap catalog validate checks the caps (onboarding-intent*): the pod clips, drops or never matches what breaks them. The brief reconcile carries intents to an installed space like its other seeded fields.

Capabilities that run on a computer

Some capabilities run on one of the person's computers (a Mac, a Linux box), not on the pod: ffmpeg, a local transcriber, a downloader. The person picks the computer, says yes once per tool per computer, and synap worker on that computer installs, checks and removes the tool from the manifest, with no AI in the loop (decision 168f34db). The rules live in schema/computer.ts (mirroring the backend leaf @synap-core/types/capability-manifest); the media capabilities in capabilities/media-*.capability.json are the reference.

One model, two kinds. What an installation is comes from the manifest, never from a field you set (installKind):

| | a tool | a service | | ---------------------- | ----------------------------------------------- | ----------------------------------------------------------------- | | What the computer runs | a program installed by per-OS steps | containers | | Declared by | install.<os>, verify.<os>, uninstall.<os> | services[]: image by digest, ports on 127.0.0.1, health, limits | | Platforms | any of darwin, linux, win32 | linux only, with placement.requires.runtimes.docker | | Example | media-ffmpeg | (none yet) |

Both at once is refused. Every computer capability carries:

  • placement: runsOn: ["computer"], platforms (Node's process.platform / process.arch; the UI says Mac, Linux, Windows), labels (gpu? ranks, gpu filters), requires (other catalog capabilities, runtimes such as uv or python), and an optional pod fallback with its price, only ever offered per tool, never used silently (decision 6).
  • licence, an SPDX expression shown on the install card. A GPL tool is installed from its source, never bundled with Synap (bundled: true with a GPL licence is refused, decision 4). An OS whose tool has another licence says so in install.<os>.licence (Robust Video Matting is GPL-3.0 on Linux).
  • permissions: the folders, hosts and devices the tool touches.

A tool's steps are data. Each step is a package manager (brew, apt, dnf, winget, uv, pip, npm), a download, or a script. Commands are argv arrays, never shell lines, and paths use the placeholders the computer fills: {home}, {brewPrefix}, {tools}, {models}, {workdir}, {fixture}.

  • A download by url is pinned by its sha256 (a model by id comes from its hub). Pin a dated build, never a latest link: media-ffmpeg pins BtbN's month-end build.
  • A script is pinned by its sha256, declares elevation: "never" (no sudo, no admin prompt in v1) and is shown to the person before it runs. synap catalog validate hashes every inlined script (script-sha256).
  • install.<os>.bins pins each program to a path, so PATH order never decides which ffmpeg runs.
  • verify.<os> is an argv, what it must print, the regex group that is the version (captureVersion) and an optional smoke run that proves the tool works; reverifyEvery (default P7D) says when to check again.
  • Windows steps may ship, but the picker hides Windows until they have been tried on a real machine (decision 5): validate flags each one (computer-untested-os, a warning).

Recipes are stored config. media-ffmpeg does every effect through one verb with a recipe library in spec.recipes (range cut, reframe, loudness, silence cut, word captions, grade, crossfade, overlay, background replace, slideshow, GIF/WebP, keyframes, platform exports). A recipe is:

{
  "name": "loudness-normalize", // kebab-case, unique in the capability
  "description": "Two-pass loudness normalisation to -14 LUFS.",
  "params": {
    // typed; each required or with a default
    "in": {
      "type": "file",
      "description": "The video to work on.",
      "required": true,
    },
    "out": {
      "type": "output",
      "description": "Where the result is written.",
      "required": true,
    },
    "target": {
      "type": "number",
      "description": "Integrated loudness in LUFS.",
      "default": -14,
    },
  },
  "steps": [
    // argv templates; program = a pinned bin, or python
    {
      "program": "python",
      "args": [
        "{script:loudnorm2pass.py}",
        "{bin:ffmpeg}",
        "{in}",
        "{out}",
        "{target}",
      ],
    },
  ],
  "scripts": [
    {
      "name": "loudnorm2pass.py",
      "sha256": "<64 hex>",
      "source": "#!/usr/bin/env python3\n…",
    },
  ],
  "needs": { "filters": ["loudnorm"] }, // what the computer's ffmpeg must have
  "gotchas": ["Normalise after the mix, as the last audio step."],
}
  • Placeholders in args: a declared param, {workdir}, {script:<file>} (a script the recipe ships) and {bin:<program>} (a program pinned in install.<os>.bins on every OS the capability lists).
  • A value spliced into a larger argument (a filter graph) may not carry the graph's syntax; a list of files is only ever a whole argument. renderRecipe (schema/recipe.ts) is the ONE way a recipe becomes argv, for the runner and the tests alike.
  • Your own recipes take the same shape. Where they are stored on the pod (and that the verb looks for yours by name first) is plan b647769e wave 5: not built yet.
  • A recipe may drive another program than ffmpeg. media-blender pins blender and every step is a fresh blender -b --factory-startup --python-exit-code 1 --python {script:<helper>.py} -- <params>: a separate background Blender per run (never the person's open session), a Python error fails the run, and the helper script (pinned by sha256) carries the rules (Standard view transform, area lights hidden from the camera, a disk floor, movies instead of PNG sequences). On a Mac its install step is a script that uses the Blender already in /Applications, else Homebrew's cask; it declares no uninstall, so a Blender the person had is never removed.
  • Tests: schema/recipe.test.ts renders every recipe of every capability with sample params (a new recipe joins by existing); scripts/catalog-lib.computer.test.ts proves each manifest rule. Neither runs ffmpeg: a recipe is tried on a Mac and on the devbox before it is listed.

4. The ONE command set

Landing on app-bases main IS publishing. Every push to main runs CI (below), which publishes every kind, tombstones included. Content that waits for the founder's review waits BEFORE it lands on main; once it lands it is live. Nobody runs a publish step after a merge: synap catalog publish --official is the same lib by hand, for an emergency republish when CI cannot run.

synap catalog validate [--kind k] [slug...]           # offline: per-kind schema, cross-kind refs, goal grammar, duplicates
synap catalog diff     [--kind k] [slug...]           # vs the live CP: new / changed / unchanged (+ warnings)
synap catalog publish  --official [--kind k] [slug...] [--dry-run] [--yes] [--json]   # emergency republish only
synap market publish   --official [slug...] [--dry-run]   # alias of: catalog publish --official --kind workspace
  • publish requires --official and a synap login session that owns the synap-official vendor. The CLI checks the publisher (checkPublisher) before it shows the diff. A non-official account is refused up front. A failed read is reported as cp-unreachable, never as "not official". diff warns instead of refusing.
  • publish validates the whole corpus and stops on any error. It then shows the diff, asks y/N, and writes only after you confirm. --dry-run stops after the preview. Warnings never block.
  • A selection (--kind, slugs) narrows what gets planned and published. Validation always covers the whole corpus, so a workspace's dependencies still resolve.
  • The CLI finds the checkout by package name (@synap-core/catalog first, then @synap-core/workspace-templates), or by --catalog-dir. Every error code maps to a single next step (hint in --json).

CI (synap-app/.github/workflows/publish-official-templates.yml, through the wrapper scripts/publish-official.mjs, which uses the same lib):

| Event | What runs | | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | PR touching the catalog | Job validate only: build, validate every kind, print the offline preview (each entry and the version the CP will derive, where knowable offline). It holds no secret and no id-token: a PR runs its own lockfile and scripts. Guarded by scripts/publish-workflow.guard.test.ts. | | Push to main (or manual) | validate, then job publish (environment catalog-publish): a read-only preview against the live CP, then publish EVERY kind live (no --kind), tombstones included, then npm publish, only if the package.json version is new on npm. A live run with no SYNAP_CP_PUBLISH_TOKEN exits 1: a main run that publishes nothing is red, never green with a warning. |

Main publishes every kind (founder, 2026-11-05: "remove the blocker that only do workspace, we will do ALL"). Secrets, in the catalog-publish environment only: SYNAP_CP_URL and SYNAP_CP_PUBLISH_TOKEN (a CP PAT of the synap-official owner; humans use synap login). npm needs no secret: it publishes through npm Trusted Publishing (OIDC, the job's id-token: write).

The catalog-publish environment (GitHub → app-bases → Settings → Environments; set up and live since 2026-11-06): deployment branches main only; environment secrets SYNAP_CP_PUBLISH_TOKEN and SYNAP_CP_URL; no repository-level copy of either, so no other job, and no workflow a branch pusher writes, can read them.

The CP never reseeds on deploy. deploy.sh, update.sh and ops apply no longer run seed:capabilities or seed:templates. Both seeders are insert-only bootstraps for an empty CP, run by hand: they skip any slug that already has a row. A tripwire (no-template-reseed-on-deploy-tripwire.test.ts) guards this. Official capability keys are reserved: a non-official publish of an official key gets 409 OFFICIAL_CAPABILITY_KEY_RESERVED, and the CP serves the official row first for a key.

No copies. Since 2026-11-05 (founder: "keep one source only") neither the CP nor the CLI holds a copy of any catalog file: both read this package from npm. The CP's no-catalog-copy.tripwire.test.ts fails on a copy there. Two cross-repo guards stay local-only (they skip when the CP is not a sibling checkout): schema/header.mirror.tripwire.test.ts (header limits ↔ the CP publishSchema) and scripts/catalog-lib.columns.tripwire.test.ts (the preview's columns and adoption rule ↔ the CP publish core); their CI-safe halves are snapshots.

5. History, and an empty CP

How the catalog got here (the by-hand runbook this section used to hold is done):

  • Until 2026-11-05 the founder published by hand, kind by kind, with synap catalog publish --official, after deploying the CP that adopts the seeded rows; the CP and the CLI each held a copy of catalog files.
  • 2026-11-05: main publishes every kind (founder: "remove the blocker that only do workspace, we will do ALL"). The copies are deleted: the CP and the CLI read the installed package (CP 2c755f8e, synap-cli#91), guarded by their no-catalog-copy tripwires.
  • 2026-11-06: control-plane-api #70 let the publish token reach every call the publish makes; run 42141858556 printed "Published 116 catalog entries". Since then landing on main publishes.

A brand-new, empty CP only: seed it once, then let CI publish:

docker compose -f docker-compose.prod.yml run --rm control-plane pnpm seed:capabilities
docker compose -f docker-compose.prod.yml run --rm control-plane pnpm seed:templates
gh workflow run publish-official-templates.yml -R Synap-core/app-bases

Both seeders are insert-only; seed:templates seeds workspaces only (views reach an empty CP through the publish).

CI cannot run (GitHub down, the environment broken): synap catalog publish --official, signed in as the synap-official owner, republishes main's catalog through the same lib. Say so where you work: it is a recovery, not a step.

Coordinated rename (planned)

Rename packages/workspace-templates to packages/catalog (@synap-core/catalog) in one change, at a quiet moment, because every tree's node_modules links move:

  1. git mv synap-app/packages/workspace-templates synap-app/packages/catalog.
  2. Update both workspace files: the root pnpm-workspace.yaml (synap-app/packages/workspace-templates) and synap-app/pnpm-workspace.yaml (packages/workspace-templates).
  3. Change the package.json name to @synap-core/catalog. Ship a thin @synap-core/workspace-templates shim that re-exports it for one release. The backend pins >=0.11 <1, the CP ^0.12, the CLI >=0.12 <1, and the synap-app/browser consumers use workspace:*.
  4. Update the workflow paths and --filter in publish-official-templates.yml, and the ci.yml freshness step.
  5. Run pnpm install in each tree: the monorepo root, synap-app/, and each sibling that installs on its own. Then run every consumer's typecheck.
  6. The CLI and both tripwires already resolve packages/catalog first. Remove the workspace-templates fallback once the shim is retired.