MCPcopy Index your code
hub / github.com/cfworker/cfworker

github.com/cfworker/cfworker @v1.10.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.10.1 ↗ · + Follow
470 symbols 1,205 edges 121 files 61 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

import { readdirSync, readFileSync, writeFileSync } from 'fs';

export async function generatePackageListMarkdown() { const packages = readdirSync('packages'); const npm = 'https://www.npmjs.com/package/'; let markdown = `# cfworker

A collection of packages optimized for Cloudflare Workers and service workers.

; for (const name of packages) { if (name === 'worker-types' || name === 'examples' || name === 'site') { continue; } try { const buffer = readFileSync(packages/${name}/package.json); const pkg = JSON.parse(buffer.toString()); markdown +=## ${pkg.name}

${ name === 'dev' ? '' : ![](https://badgen.net/bundlephobia/minzip/${pkg.name}) ![](https://badgen.net/bundlephobia/min/${pkg.name}) ![](https://badgen.net/bundlephobia/dependency-count/${pkg.name}) ![](https://badgen.net/bundlephobia/tree-shaking/${pkg.name}) ![](https://badgen.net/npm/types/${pkg.name}?icon=typescript) }

${pkg.description}

readme | npm

`; } catch {} } let readme = (await readFileSync('README.md')).toString(); readme = readme.replace( /(.|\r|\n)*## contributing/gm, markdown + '\n## contributing' ); writeFileSync('README.md', readme); }

generatePackageListMarkdown();

Extension points exported contracts — how you extend this code

SessionContainer (Interface)
(no doc) [2 implementers]
packages/cosmos/src/session.ts
TraceKitError (Interface)
(no doc)
packages/sentry/src/tracekit.ts
Crypto (Interface)
(no doc)
packages/uuid/src/declarations.d.ts
User (Interface)
(no doc)
packages/examples/src/auth/user.ts
Route (Interface)
(no doc)
packages/web/src/router.ts
SchemaTestSuite (Interface)
(no doc)
packages/json-schema/test/types.ts
JwtPayload (Interface)
(no doc)
packages/jwt/src/types.ts
ErrorConstructor (Interface)
(no doc)
packages/worker-types/index.d.ts

Core symbols most depended-on inside this repo

set
called by 69
packages/web/src/cookies.ts
get
called by 68
packages/web/src/router.ts
on
called by 33
packages/dev/src/runtime/html-rewriter.js
json
called by 29
packages/web/src/req.ts
progress
called by 26
packages/dev/src/logger.js
assertArg
called by 24
packages/cosmos/src/util.ts
create
called by 24
packages/web/src/response-builder.ts
text
called by 22
packages/dev/src/runtime/html-rewriter.js

Shape

Method 173
Function 155
Class 77
Interface 64
Enum 1

Languages

TypeScript100%

Modules by API surface

packages/cosmos/src/client.ts39 symbols
packages/dev/src/runtime/html-rewriter.js22 symbols
packages/web/src/router.ts20 symbols
packages/cosmos/src/response.ts19 symbols
packages/dev/src/runtime/kv.js15 symbols
packages/web/src/response-builder.ts12 symbols
packages/dev/src/cloudflare-api.js12 symbols
packages/dev/src/cli/deploy-command.js12 symbols
packages/dev/src/logger.js11 symbols
packages/cosmos/src/session.ts11 symbols
packages/web/src/req.ts10 symbols
packages/dev/src/worker-host.js10 symbols

For agents

$ claude mcp add cfworker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact