CIRCL is an experimental, externally visible Go cryptographic library. Consumers include Cloudflare's Go fork, downstream modules, and external researchers. Every change is security-sensitive. The README disclaims API stability — the…
1.7k6mo agoReviewMountCreate a free account to mount
- UserSpan::deferred() creates a stable request root that can be captured by telemetry contexts before activate() makes the sampling decision. - TelemetryContext::with_user_span() attaches an explicit UserSpan without changing ambient scope; the returned context and handle share the same underlying span. - A deferred root is an inactive span in a shared RwLock. Activation replaces it under the write lock; the first active span wins, while inactive results remain retryable. - Recording and children created before activation are inactive. Contexts that…
1.7k2mo agoReviewMountCreate a free account to mount
Agent-facing context. If you're picking up work on this site, start here. Astro-based docs site. The nimbus-docs package provides the integration, content schemas, navigation/sidebar/TOC computation, MDX→markdown rendering, build hooks, and the nimbus CLI. Everything you see in src/ is user-owned and yours to edit. For Cloudflare deploys, also: wrangler.jsonc at project root. Frontmatter validates against the schema from docsCollection() (@cloudflare/nimbus-docs/content). Required: title. The schema includes optional fields for description, sidebar overrides, drafts, dates, edit-link suppression — read docsSchema in @cloudflare/nimbus-docs/schemas…
1.4k2mo agoReviewMountCreate a free account to mount
This document provides essential information for AI coding agents working in the PartyServer monorepo. PartyServer is a monorepo using npm workspaces with multiple packages:
1.3k9mo agoReviewMountCreate a free account to mount
cloudflare-mcp is a token-efficient Model Context Protocol (MCP) server that exposes the entire Cloudflare API (~2,500 endpoints) using Cloudflare's Code Mode pattern. Instead of registering thousands of MCP tools, it uses just two tools (search and execute) that let agents write JavaScript to query the OpenAPI spec and call APIs — fitting all 2,500 endpoints into ~1,000 tokens. Production URL: mcp.cloudflare.com When modifying MCP or OAuth functionality, always check the latest published MCP specification: Node 22+ required.
92059d agoReviewMountCreate a free account to mount
Chanfana is an OpenAPI 3/3.1 schema generator and request validator for Hono and itty-router on Cloudflare Workers. It uses Zod v4 for schemas and provides auto CRUD endpoints with D1 support. Tests run inside @cloudflare/vitest-pool-workers with a real D1 binding. Config: tests/vitest.config.mts. Formatter/Linter: Biome (biome.json). Key settings: - 2-space indent, 120 char line width, double quotes, always semicolons, trailing commas on multiline - noExplicitAny is OFF — any is used deliberately throughout TypeScript (tsconfig.json): strict: true, verbatimModuleSyntax: true (requires import…
7689mo agoReviewMountCreate a free account to mount
A starter Cloudflare Worker using Chanfana (OpenAPI), Hono, D1, and Zod v4. This is a copyable template — users clone it and build on top. Tests use @cloudflare/vitest-pool-workers with a local miniflare D1 binding. Config: vitest.config.mts. Follow the same conventions as the parent chanfana library: - 2-space indent, double quotes, always semicolons - import type for type-only imports (verbatimModuleSyntax: true) - Classes: PascalCase — endpoint classes named after their action (TaskCreate, TaskList) - Named exports everywhere, no default exports (except…
7689mo agoReviewMountCreate a free account to mount
Contains the unscoped cf public npm CLI and its code generator. Shared code lives in @cloudflare/forge, vendored as a tarball in vendor/ until it is on npm. cf supports Windows, Linux, and macOS. When designing or implementing every feature, account for differences between all three operating systems rather than assuming POSIX behaviour. Pay particular attention to process spawning, signals and exit codes, shells and argument quoting, filesystem paths and permissions, environment variables, and terminal behaviour. Use platform-specific implementations and tests…
76758d agoReviewMountCreate a free account to mount
Cloudflare CLI. Yargs-based, TypeScript, ESM, Node ≥ 22. This package IS the CLI. It also owns the generator that produces its per-API command surface (generator/ → src/commands/_generated/). The cross-cutting runtime (src/index.ts and generic helpers under src/lib/) must remain a generic shell over whatever commands the generator emits into src/commands/_generated/. Product-specific behavior belongs in Forge unless it is one of the deliberately bounded hand-written exceptions below or the universal zone-name resolver used by global --zone. If a generic runtime or generator…
76758d agoReviewMountCreate a free account to mount
This package runs canonical Wrangler test situations against cf. The pinned revision, inventory shape, and regeneration command are documented in README.md; MANIFEST.md is the generated inventory. - Upstream test names and describe() ancestry are canonical identities. Do not rename or delete them when adapting command paths or assertions for cf. - A passing test is executable parity evidence. Use it.todo() when the behavior belongs in cf but is not working or ported yet. Use it.skip() only for Wrangler internals or…
76758d agoReviewMountCreate a free account to mount
Browser-side TypeScript library (@cloudflare/speedtest) that measures connection quality against Cloudflare's edge. Powers speed.cloudflare.com. Uses Vitest with two test projects: - Unit tests (tests/unit/**/*.test.ts) — pure function tests for utils, config, and Results. Run in Node, no browser needed. Fast. - E2E tests (tests/e2e/*.test.ts) — runs a realistic speed test in a real Chromium browser via Vitest Browser Mode + Playwright. Tests the full library integration (fetch, PerformanceResourceTiming, module loading) with multiple measurement phases (latency, download, upload), loaded latency, AIM scoring,…
7493mo agoReviewMountCreate a free account to mount
STOP. Your knowledge of Cloudflare Workers APIs and limits may be outdated. Always retrieve current documentation before any Workers, KV, R2, D1, Durable Objects, Queues, Vectorize, AI, or Agents SDK task. For all limits and quotas, retrieve from the product's /platform/limits/ page. eg. /workers/platform/limits Run wrangler types after changing bindings in wrangler.jsonc. https://developers.cloudflare.com/workers/runtime-apis/nodejs/ Retrieve API references and limits from: /kv/ · /r2/ · /d1/ · /durable-objects/ · /workers-ai/ · /agents/ · /sandbox/ · /containers/
3257mo agoReviewMountCreate a free account to mount
@cloudflare/telescope is a TypeScript browser performance testing library and CLI built on Playwright. It launches real browsers (Chrome, Chrome Beta, Canary, Firefox, Safari, Edge), collects HAR files, Web Vitals, and…
3097mo agoReviewMountCreate a free account to mount
@cloudflare/telescope is a TypeScript browser performance testing library and CLI built on Playwright. It launches real browsers (Chrome, Chrome Beta, Canary, Firefox, Safari, Edge), collects HAR files, Web Vitals, and…
3097mo agoReviewMountCreate a free account to mount
telescope-web is an Astro + Cloudflare Workers web application that serves as the Telescope results UI. It is a fully independent project from the core packages/telescope/ library — do not…
3097mo agoReviewMountCreate a free account to mount
Guidance for AI coding agents working in this package. @cloudflare/waterfall is a standalone, framework-free web component that renders an HTTP Archive (HAR) waterfall chart. It lives at /waterfall/ in the…
3097mo agoReviewMountCreate a free account to mount
Guidelines for AI agents working on the @cloudflare/containers package. This is the @cloudflare/containers npm package — a TypeScript library that wraps Cloudflare's container-enabled Durable Objects. It provides lifecycle management, HTTP/WebSocket proxying, outbound interception, scheduling, and load balancing utilities on top of the Cloudflare Workers runtime. Key exports (src/index.ts): Add a new file to the .changeset directory representing a new version when wrapping up changes so they get released. Do NOT change CHANGELOG.md, that is codegenerated on a release MR that…
2703mo agoReviewMountCreate a free account to mount