1.57K
total weekly downloads
22 packages
create-pattern
Scaffolder for Pattern projects — npm create pattern@latest.
@pattern-js/admin-sdk
Pattern admin SDK — the stable extension surface for admin UIs and mods (typed API client, menu/command helpers, shared protocol types).
@pattern-js/core
Pattern execution engine — runtime-neutral core (Web-standard APIs only).
@pattern-js/mod-admin
Pattern admin mod — authorable, self-reflecting control surface (control plane, workflow store, run inspection).
@pattern-js/mod-agents
Neutral agent contracts for Pattern: agent/tool/guardrail descriptors that flow on edges, the boundary.tool workflow pair (engine-validated params), the modality-agnostic turn event protocol, and the tool registry — no model-provider dependency. Pair with
@pattern-js/mod-agents-openai
OpenAI Agents SDK provider for Pattern: agent/run ops that reify @pattern-js/mod-agents descriptors into SDK agents — workflow tools as linked sub-runs, guardrails, MCP servers, streamed turn events, history threading, compaction, HITL approvals, realtime
@pattern-js/mod-ai
AI capabilities for Pattern via the Vercel AI SDK: text, structured object, embeddings, image, speech (TTS), transcription (STT) and video ops across any provider, direct or through the Vercel AI Gateway, plus the model provider for @pattern-js/mod-agents
@pattern-js/mod-auth-magic-link
Email magic-link login for Pattern — the reference identity provider mod. One op, one route, one login method; tokens delivered via the identity.deliverToken hook (console fallback = zero-config dev login).
@pattern-js/mod-auth-oidc
OIDC login for Pattern — sign users in with Google, Microsoft, Keycloak or any OpenID Connect issuer. Authorization-code flow with PKCE, ID tokens verified with jose, sessions minted by mod-identity. Code-configured (a small wrapper mod); several provider
@pattern-js/mod-billing
Payments for Pattern — the provider-neutral billing contract: named accounts with sourced secrets, hosted checkout + customer portal as ops, a normalized webhook event union with stable-id dedup, a user↔customer mapping, subscription→role entitlement proj
@pattern-js/mod-billing-stripe
Stripe driver for @pattern-js/mod-billing — Checkout Sessions, the Customer Portal, subscription state and Billing Meter events over a zero-dependency fetch client, plus Stripe-Signature webhook verification (raw bytes, constant-time, rotation-aware) feed
@pattern-js/mod-buddy
Buddy — the in-admin workflow assistant for Pattern. A chat dock in the editor that drafts workflows, self-repairs against the validator, debugs failed runs from traces, and applies proposals to your open canvas. Its control-plane toolset (the pattern_* t
@pattern-js/mod-chat
A complete chat application for Pattern agents: transcript-style SPA (the strand shows tool calls live), conversations + turn event log in mod-store (refresh mid-turn recovers), lease-guarded turns with Stop, image input, HITL approvals — the turn pipelin
@pattern-js/mod-docs
Self-reflecting documentation for Pattern apps: a markdown-first docs app at /docs (admin's visual language, reading-first) where every installed mod — first or third party — contributes its own chapter, the op reference is generated from the live registr
@pattern-js/mod-email
Transactional email for Pattern — the contract mod. Admin-configured accounts (provider + sourced secrets + from), driver mods plug in (Resend, SMTP, …), one email.send op, and a packaged workflow that delivers identity sign-in links the moment a default
@pattern-js/mod-email-resend
Resend driver for @pattern-js/mod-email — dependency-free (the Resend API is one fetch). Install it, create an account in admin → Resources → Email, and email.send delivers through Resend.
@pattern-js/mod-email-smtp
SMTP driver for @pattern-js/mod-email, built on nodemailer — any relay, your own server, or a local catcher. Host/port/user are account options in admin → Resources → Email; the password comes from the vault or an env var.
@pattern-js/mod-identity
Users, sessions, roles and pluggable login methods for Pattern — the optional identity brick. Opaque revocable cookie sessions (CAS-backed, sqlite or in-memory), a single-use token kernel (login/invite/bootstrap), a login page, and admin screens.
@pattern-js/mod-store
Generic persistence for Pattern apps: JSON document collections with declared indexes, a blob store, and CAS leases (with auto-release on run settle). SQLite or in-memory drivers; ops for visible canvas wiring; a Data browser in the admin.
@pattern-js/mod-vault
Encrypted-at-rest secrets for Pattern: AES-256-GCM vault (master key from PATTERN_VAULT_KEY), a vault.read node whose values are masked out of run samples, and a write-only Secrets screen in the admin.
@pattern-js/mod-vectors
Vector search for Pattern — embedding collections that DECLARE their alias and dimensions (query-vs-index model mismatch becomes unrepresentable), filterable metadata, hybrid vector+keyword retrieval with RRF fusion, text chunking, and a zero-dependency s
@pattern-js/runtime-node
Pattern runtime adapter for Node — HTTP/WS host, worker-thread pool, connection registry, sqlite trace sink.