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

@ottimis/jack-provider-sdk

v0.16.0

Published

Plugin contract for AI provider integrations in Jack — backend interface, capability matrix, spawner primitives, knowledge context. Consumed both by in-tree providers and external packages.

Readme

@ottimis/jack-provider-sdk

Plugin contract for AI provider integrations in Jack. Every package that drives an AI coding agent inside Jack — jack-claude, jack-codex, jack-gemini, future jack-<name> — depends on this SDK and exports a single JackProvider object that satisfies the contract here.

What's in the box

Three layers, all re-exported from the package root:

  • ./backend — neutral wire-shape contract: AgentBackend, AgentQueryOptions, AgentSession, AgentPermissionMode, AgentEffortLevel, AgentHooks, BackendName (open string union — 'sdk', 'cli', 'acp', …), AgentForkSessionOptions, AgentListSessionsOptions.
  • ./spawner — process-spawning primitives shared by every backend: ProcessSpawner, ProcessHandle, SpawnArgs, localSpawner. The host can swap localSpawner for a Docker variant (createDockerSpawner()) and providers won't notice.
  • ./provider — plugin-level contract: JackProvider, CapabilityMatrix, ToolDescriptor, ProviderBranding, ProviderModelOption, ProviderModelDefaults, KnowledgeContext, KnowledgeMcpResolution, SlashCommandSupport, SlashCommandDef, PrepareSpawnContext, InProcessMcpServerSpec, PersistedPermissionsApi, ProviderDetectResult, BackendDescriptor.

NormalizedMessage and other wire-shape canonicals are re-exported from @ottimis/jack-chat-core so consumers don't need a direct dep on chat-core when their only entrypoint is the wire shape.

Install

pnpm add @ottimis/jack-provider-sdk @ottimis/jack-chat-core

@ottimis/jack-chat-core is a peer dep — pin a compatible version in your provider package.

Implementing a JackProvider

import type { JackProvider } from '@ottimis/jack-provider-sdk'

export const myProvider: JackProvider = {
  id: 'my-agent',
  label: 'My Agent',
  branding: { accentColor: '#ff6b6b', iconKey: 'sparkles' },
  detect: async () => ({ installed: true }),
  backends: [{ id: 'sdk', label: 'SDK backend', factory: () => myBackend }],
  defaultBackendId: 'sdk',
  capabilities: { /* honest declaration — see CapabilityMatrix */ },
  modelDefaults: { oneShot: 'my-cheap-model' },
  toolCatalog: [/* ToolDescriptor[] */],
  parseToolName: (raw) => ({ kind: 'native', toolName: raw }),
  applyKnowledgeContext: (ctx, opts) => { /* fold into native opts */ },
  readSessionTranscript: async (opts) => { /* on-disk replay */ }
}

Step-by-step walkthrough (Pattern A vs Pattern B, capability matrix, knowledge context, gotchas): docs/implementing-a-provider.md. Full type reference lives in the JSDoc on each exported type.

Versioning

  • Minor bumps add optional fields to JackProvider / CapabilityMatrix / ToolShape. Existing providers keep working.
  • Major bumps rename or restructure required fields. Provider authors update their pinned range.

The host (Jack) declares the minimum SDK version it supports. The plugin loader (Phase 5 follow-up) rejects packages whose declared peerDependencies.@ottimis/jack-provider-sdk doesn't satisfy the host's range.

Build & test

pnpm install
pnpm typecheck
pnpm test
pnpm build

pnpm build produces dual ESM (dist/) + CJS (dist/cjs/) output with declaration files. dist/cjs/package.json is auto-written with { "type": "commonjs" } so Node resolves the right module format.