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

@anchrd/intel-api

v0.6.3

Published

Intel is a customer-deployed, model-agnostic operating layer for company knowledge and processes. It gives people and MCP-capable AI clients the same governed access to three surfaces:

Downloads

1,338

Readme

@anchrd/intel-api

Intel is a customer-deployed, model-agnostic operating layer for company knowledge and processes. It gives people and MCP-capable AI clients the same governed access to three surfaces:

  • Knowledge — company content with sharing, immutable versions, retrieval, citations and a graph
  • Flows — versioned, durable processes that reference Knowledge and Tools
  • Tools — MCP capabilities discovered through a Cloudflare MCP Portal

The UI, the HTTP API and the Intel MCP surface call the same application services, so authorization, validation and side effects never differ by surface. You deploy it into your own Cloudflare account against your own Gate; nothing runs on Anchrd infrastructure.

This package contains the portable server, the Cloudflare adapter, the D1 migrations and the customer CLI.

Requirements

  • A Gate instance — Gate owns identity and capabilities, and is the only required Anchrd dependency
  • A Cloudflare account with Workers, D1, R2, Queues and Workflows (Vectorize and Workers AI are optional and only add semantic search and attachment conversion)
  • Node 22 or newer

Install

npm install @anchrd/intel-api @anchrd/intel-ui
npx intel prepare
npx intel bootstrap
npx intel build
npx intel doctor

Use the Cloudflare export from a customer Worker:

// biome-ignore lint/performance/noBarrelFile: Wrangler needs the named Workflow entrypoint.
export { default, IntelFlowWorkflow } from "@anchrd/intel-api/cloudflare";

intel build reads an optional strict intel.json. Customer theme files override shadcn semantic tokens; SVG logo/favicon and complete language catalogs are embedded at build time. Installed builds land in .intel/ui, and migrations in .intel/migrations.

Put intel.json next to the customer project's package.json:

{
  "ui": {
    "theme": "./branding/theme.css",
    "logo": "./branding/logo.svg",
    "favicon": "./branding/favicon.svg",
    "defaultLanguage": "en",
    "languages": {}
  }
}

The theme is plain CSS containing shadcn semantic tokens such as --primary, --background, --sidebar, and --radius. It is loaded after Intel's defaults, so customer tokens win without a component fork. Unknown config fields, missing assets, non-SVG branding, and incomplete language catalogs fail the build. A ready-to-copy starting point is included under node_modules/@anchrd/intel-api/examples.

Configure customer-specific GATE_URL, INTEL_URL, and the comma-separated exact-origin allowlist TOOL_SOURCE_ORIGINS in the deployment environment. The Worker requires GATE_SERVICE_KEY and a random INTEL_SESSION_SECRET of at least 32 bytes as Wrangler secrets. ALLOW_INSECURE_OAUTH=true is only supported for explicit local development; production OAuth issuers must use HTTPS. Gate OAuth uses PKCE and dynamic public-client registration; browser access tokens stay inside an encrypted HttpOnly cookie and are never exposed to the UI bundle or D1. Copy node_modules/@anchrd/intel-api/examples/dev.vars.example to .dev.vars for a local customer Worker.

The portal endpoint exposes RFC 9728 metadata. The Tools UI follows that metadata, dynamically registers with Gate or Cloudflare Access, and completes a separate PKCE flow — silently, with prompt=none, as soon as a Gate session exists. Nobody is asked to connect anything.

⚠️ Two settings outside this repository decide whether that silent sign-in can work. In Cloudflare Zero Trust → Access controls → AI controls → your portal → Edit → Advanced settings, Managed OAuth must be enabled, and an Access policy must carry the people who use Intel. Without both, every silent sign-in is refused and the Tools area shows "No access to the company portal" — correct behaviour for somebody outside every policy, and a misleading one for a deployment that simply never enabled the setting.

The only tool secret Intel stores is the resulting per-user access token for its own portal endpoint — one per person, never one shared operator token — sealed with a key derived from INTEL_SESSION_SECRET and kept in the portal_tokens table of your D1; provider credentials stay with the portal and never reach Intel. The Intel audience token is never forwarded to another OAuth resource.

The reference Wrangler deployment binds DB, CONTENT, INDEXING, AI, SEARCH, FLOWS, and ASSETS. Create SEARCH as a 1024-dimension cosine Vectorize index for the default multilingual Workers AI @cf/baai/bge-m3 embedding adapter. FLOWS targets the exported IntelFlowWorkflow class. The portal speaks standard Streamable HTTP MCP; Intel caches schemas and unseals the caller's portal token from portal_tokens just in time, refreshing it shortly before use. Durable Flow state contains no browser, Gate, or provider credentials.

Related packages

License

Proprietary. Published publicly for installation convenience; this is not an open-source license and grants no right to use, copy, modify or redistribute the software. Contact Anchrd for licensing.