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

@orkestral-ai/forge-sync

v0.1.1

Published

Orkestral Forge — sincronização de sinais de comportamento (code-free). O código do usuário nunca sai da máquina.

Readme

@orkestral-ai/forge-sync

Behavioral-signal transport for Orkestral Forge — ships how a developer works with code, never the code itself, so the Forge model keeps getting better.


🇺🇸 English

What it is

@orkestral-ai/forge-sync is the thin client library that the Orkestral desktop app uses to send behavioral signals to the Orkestral cloud.

A behavioral signal is small, code-free metadata about how a developer handles their work — for example: whether they accepted or rejected a Forge edit, whether the local Forge model or a premium model produced the preferred result, or what kind of correction was applied. The user's source code never leaves their machine — only these decision signals do.

These signals feed the central distillation that makes Forge — a code model that runs 100% on the user's machine, at $0 per task — smarter every day.

Where it fits

premium model PLANS → Forge EXECUTES → review VERIFIES
        │  (code-free signal: verdict · winner · correction type)
        ▼
   forge-sync.capture() → flush() → Orkestral cloud (Supabase Edge Function)
        ▼
   daily distillation (GPU) → new Forge version → synced back to every app

This package is only the transport. It has no endpoints or keys baked in — the app passes them at runtime (endpoint, getToken). The proprietary logic lives in the Orkestral app and the cloud trainer; this is just the pipe.

The privacy barrier

The model learns how you deal with code — never your code. As defense in depth, capture() drops any string field longer than 2,000 characters (a likely sign of file content leaking in by accident).

Install

npm install @orkestral-ai/forge-sync

Usage

import { createForgeSync } from '@orkestral-ai/forge-sync';

const sync = createForgeSync({
  endpoint: 'https://<project>.supabase.co/functions/v1/forge-signals',
  getToken: () => orkestralCloudJwt, // the signed-in user's JWT, or null
  appVersion: '0.1.1',
});

// At verification points — code-free metadata only:
sync.capture({ type: 'review_verdict', verdict: 'approved', executor: 'forge' });
sync.capture({ type: 'forge_vs_premium', winner: 'forge' });

await sync.flush(); // best-effort; on failure, signals stay queued for retry

API

| Member | Description | |---|---| | createForgeSync(options) | Creates a sync client. | | options.endpoint | Ingest endpoint (Supabase Edge Function URL). | | options.getToken | () => string \| null \| Promise<…> — the user's auth token. | | options.appVersion? | Attached to each batch (cohort telemetry). | | options.maxBatch? | Signals per request (default 50). | | options.fetchImpl? | Custom fetch (tests). | | sync.capture(signal) | Queue a code-free signal. Non-blocking. | | sync.flush() | Promise<{ sent, skipped, reason? }> — send pending; keeps them on failure. | | sync.pending() | Number of queued signals. |

A ForgeSignal is { type: string, ...codeFreeMetadata }.

Build

npm install
npm run build   # tsup → minified ESM + CJS + .d.ts in dist/

License

Proprietary — UNLICENSED. © Orkestral. The source lives in a private repository; only the minified build is published to npm.


🇧🇷 Português

O que é

@orkestral-ai/forge-sync é a biblioteca cliente enxuta que o app desktop do Orkestral usa pra enviar sinais de comportamento pra nuvem do Orkestral.

Um sinal de comportamento é um metadado pequeno e sem código sobre como o dev lida com o trabalho — por exemplo: se ele aceitou ou rejeitou uma edição do Forge, se o Forge local ou um modelo premium gerou o resultado preferido, ou que tipo de correção foi aplicada. O código-fonte do usuário NUNCA sai da máquina — só esses sinais de decisão saem.

Esses sinais alimentam a destilação central que deixa o Forge — um modelo de código que roda 100% na máquina do usuário, com custo $0 por tarefa — melhor a cada dia.

Onde se encaixa

modelo premium PLANEJA → Forge EXECUTA → review VERIFICA
        │  (sinal sem código: veredito · vencedor · tipo de correção)
        ▼
   forge-sync.capture() → flush() → nuvem Orkestral (Supabase Edge Function)
        ▼
   destilação diária (GPU) → versão nova do Forge → sincroniza de volta em todo app

Este pacote é só o transporte. Não tem endpoint nem chave embutidos — o app passa em runtime (endpoint, getToken). A lógica proprietária vive no app Orkestral e no treinador da nuvem; aqui é só o cano.

A barreira de privacidade

O modelo aprende como você lida com o código — nunca o seu código. Como defesa em profundidade, o capture() descarta qualquer campo string acima de 2.000 caracteres (provável sinal de conteúdo de arquivo vazando sem querer).

Instalar

npm install @orkestral-ai/forge-sync

Uso

import { createForgeSync } from '@orkestral-ai/forge-sync';

const sync = createForgeSync({
  endpoint: 'https://<projeto>.supabase.co/functions/v1/forge-signals',
  getToken: () => orkestralCloudJwt, // o JWT do usuário logado, ou null
  appVersion: '0.1.1',
});

// Nos pontos de verificação — só metadado sem código:
sync.capture({ type: 'review_verdict', verdict: 'approved', executor: 'forge' });
sync.capture({ type: 'forge_vs_premium', winner: 'forge' });

await sync.flush(); // best-effort; em falha, os sinais ficam na fila pra retry

Build

npm install
npm run build   # tsup → ESM + CJS + .d.ts minificados em dist/

Licença

Proprietária — UNLICENSED. © Orkestral. O source vive num repositório privado; só o build minificado é publicado no npm.