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

@syncropel/config

v0.8.0

Published

JSON Schema definitions + TypeScript types for the Syncropel daemon's configuration records. Use with any JSON Schema validator to lint routing rules, triggers, fold rules, health checks, AITL rules, and permission rules before applying them via `th_engin

Downloads

236

Readme

@syncropel/config

JSON Schemas + TypeScript types for Syncropel daemon configuration records. Use this package to lint config records (routing rules, triggers, fold rules, health checks, AITL rules, permission rules, auth configs) before submitting them via a th_engine_config LEARN.

Pairs with the @syncropel/sdk record client and with any GitOps pipeline that applies config records from YAML / JSON source.

Install

npm install @syncropel/config
# peer: any JSON Schema validator — ajv is the conventional choice
npm install ajv

Usage

import {
  RoutingRuleSchema,
  type RoutingRule,
} from "@syncropel/config";
import Ajv from "ajv";

const ajv = new Ajv({ strict: true });
const validate = ajv.compile(RoutingRuleSchema);

const rule: RoutingRule = {
  name: "route-code-intents",
  match_expression: 'record.act == "INTEND" && record.body.domain == "code"',
  action_template: {
    kind: "Route",
    target: "did:sync:agent:dev",
    budget_usd: 1.0,
  },
};

if (!validate(rule)) {
  console.error("invalid rule:", validate.errors);
  process.exit(1);
}

The compile-time type and the runtime schema stay aligned — changes to one show up in the other on the next package bump.

What's in the box

| Schema | TypeScript type | Used for | |---|---|---| | RoutingRuleSchema | RoutingRule | Dispatch-pipeline routing rules | | EventTriggerSchema | EventTrigger | Record-match or cron-scheduled triggers | | FoldRuleSchema | FoldRule | Task-thread status derivation | | HealthCheckSchema | HealthCheck | CEL-based health checks | | AitlRuleSchema | AitlRule | How intelligence proposals are gated | | PermissionRuleSchema | PermissionRule | Fail-closed permission rules | | AuthRequiredSchema | AuthRequired | auth.required = true/false switch | | AuthCorsOriginsSchema | AuthCorsOrigins | CORS allowlist |

All schemas live under ./schemas/ and are importable as plain JSON for tooling that doesn't want the TypeScript surface.

Provenance + drift

The schemas in this v0.1.0 release are hand-authored from the Rust config.rs source of truth. The generation of schemas directly from the Rust serde types via schemars is tracked as a v0.19 follow-up task in the Syncropel roadmap (see the schemars-automation entry under the v0.19 planning docs once they land). Once that ships, the hand-authored files are replaced with generator output and a CI check pins drift so the two can't diverge silently.

Meanwhile, if you spot a mismatch between what the schemas accept and what the daemon actually deserializes, please file an issue. The schemas track crates/syncropel-engine/src/config.rs as-of v0.1.0 (daemon 0.18.0); field additions land in the next @syncropel/config minor release.

License

Apache-2.0.