cloudflare/cloudflare-os
Agent workspace built on Cloudflare Workers for creating documents, building apps, and running agents with your company’s context and systems.
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- packages/workshop-backend/src/overseer.ts1955 cx
- packages/workshop-frontend/src/ChatInterface.tsx1485 cx
- packages/bundled-blueprints/blueprints/workspace-sheets/files/client.ts1319 cx
- packages/gatekeeper-google/__tests__/workerd/gmail-actions.test.ts1247 cx
- packages/gatekeeper-google/src/gmail.ts1231 cx
- packages/gatekeeper-github/src/github.ts1115 cx
- packages/gatekeeper-google/src/google-api.ts929 cx
- packages/bundled-blueprints/blueprints/workspace-slides/files/client.ts802 cx
- packages/gatekeeper-google/src/markdown-converter.ts790 cx
- packages/gatekeeper-spotify/src/spotify.ts643 cx
Dead code 2.45% unused · 93 findings
- packages/bundled-blueprints/blueprints/workspace-slides/files/client.tsunused-file
- packages/bundled-blueprints/blueprints/workspace-sheets/files/client.tsunused-file
- packages/bundled-blueprints/blueprints/workspace-docs/files/client.tsunused-file
- packages/workshop-evals/evals/chess.eval.tsunused-file
- packages/workshop-evals/evals/change-calendar.eval.tsunused-file
- packages/workshop-evals/evals/incident-desk.eval.tsunused-file
- packages/workshop-evals/evals/worker-logs.eval.tsunused-file
- packages/workshop-evals/src/harness.tsunused-file
- packages/workshop-evals/src/target.tsunused-file
- packages/bundled-blueprints/libraries/ui/src/toolbar.tsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 2 generated files: packages/workshop-backend/src/env.d.ts, packages/workshop-frontend/src/routeTree.gen.ts.
Largest clones in the code
- 48 lines in 2 placestypescript368 tokens
529 if (!this.ctx.storage.kv.get<LinearOAuthGrant>("grant")) { 530 await this.ctx.storage.setAlarm(Date.now() + CONNECT_TIMEOUT_MS); 531 } 532 this.ctx.storage.kv.put("callback", callback); 533 this.ctx.storage.kv.put<StoredNonce>("nonce", { 534 value: initiationNonce, 535 expiresAt: Date.now() + INITIATION_NONCE_LIFETIME_MS, 536 stage: "initiation", 537 }); 538}First 10 of 48 lines.
- 48 lines in 2 placestypescript362 tokenspackages/gatekeeper-confluence/src/confluence.ts:284–331packages/gatekeeper-notion/src/notion.ts:327–381
284 if (!this.ctx.storage.kv.get<StoredGrant>("grant")) { 285 this.ctx.storage.setAlarm(Date.now() + CONNECT_TIMEOUT_MS); 286 } 287 this.ctx.storage.kv.put("callback", callback); 288 this.ctx.storage.kv.put<StoredNonce>("nonce", { 289 value: initiationNonce, expiresAt: Date.now() + INITIATION_NONCE_LIFETIME_MS, stage: "initiation", 290 }); 291} 292 293async prepareReconnect(initiationNonce: string) {327 if (!this.ctx.storage.kv.get<string>("accessToken")) { 328 this.ctx.storage.setAlarm(Date.now() + CONNECT_TIMEOUT_MS); 329 } 330 this.ctx.storage.kv.put("callback", callback); 331 this.ctx.storage.kv.put<StoredNonce>("nonce", { 332 value: initiationNonce, 333 expiresAt: Date.now() + INITIATION_NONCE_LIFETIME_MS, 334 stage: "initiation", 335 }); 336}First 10 of 48 lines, the second copy on the right.
- 27 lines in 3 placestypescript150 tokenspackages/gatekeeper-confluence/src/confluence.ts:257–283packages/gatekeeper-spotify/src/spotify.ts:483–510packages/gatekeeper-zoominfo/src/zoominfo.ts:354–382
257 "knowledge bases, or keep pages up to date.", 258 }; 259} 260 261async connectAccount( 262 callback: Fetcher<GatekeeperConnectCallback>, _options?: GatekeeperConnectOptions, 263): Promise<{ url: string }> { 264 const userObjectId = this.ctx.exports.UserAccount.newUniqueId(); 265 const initiationNonce = generateNonce(); 266 await this.ctx.exports.UserAccount.get(userObjectId).setCallback(callback, initiationNonce);483 "or scope a Gadget to a single playlist.", 484 }; 485} 486 487async connectAccount( 488 callback: Fetcher<GatekeeperConnectCallback>, 489 _options?: GatekeeperConnectOptions, 490): Promise<{ url: string }> { 491 const userObjectId = this.ctx.exports.UserAccount.newUniqueId(); 492 const initiationNonce = generateNonce();First 10 of 27 lines, the second copy on the right.
7 more
- 16 lines in 3 placestypescript132 tokens
- 10 lines in 6 placestypescript52 tokens
- 24 lines in 2 placestypescript252 tokens
- 31 lines in 2 placestypescript244 tokens
- 18 lines in 3 placestypescript116 tokens
- 36 lines in 2 placestypescript219 tokens
- 23 lines in 3 placestypescript109 tokens
Largest clones over all files, tests and data included
- 15362 lines in 11 placestypescriptgenerated44,685 tokenspackages/gatekeeper-cloudflare/worker-configuration.d.ts:9–15370packages/gatekeeper-confluence/worker-configuration.d.ts:9–15370packages/gatekeeper-email/worker-configuration.d.ts:9–15370packages/gatekeeper-github/worker-configuration.d.ts:9–15370packages/gatekeeper-google/worker-configuration.d.ts:9–15370and 6 more
9 durableNamespaces: "UserAccount" | "CloudflareObservabilityGatekeeper"; 10 } 11 interface Env extends __BaseEnv_Env {} 12} 13interface Env extends __BaseEnv_Env {} 14declare module "*.txt" { 15 const value: string; 16 export default value; 17} 18declare module "*.svg" {First 10 of 15362 lines.
- 15332 lines in 5 placestypescriptgenerated44,642 tokenspackages/gatekeeper-cloudflare/worker-configuration.d.ts:39–15370packages/gatekeeper-context/worker-configuration.d.ts:20–15351packages/gatekeeper-mcp-portal/worker-configuration.d.ts:20–15351packages/gatekeeper-mcp/worker-configuration.d.ts:20–15351packages/mcp-shared/worker-configuration.d.ts:20–15351
39declare var onmessage: never; 40/** 41 * The **`DOMException`** interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a… 42 * 43 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) 44 */ 45declare class DOMException extends Error { 46 constructor(message?: string, name?: string); 47 /** 48 * The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given erro…First 10 of 15332 lines.
- 15353 lines in 2 placestypescriptgenerated44,653 tokenspackages/gatekeeper-cloudflare/worker-configuration.d.ts:18–15370packages/gatekeeper-scheduler/worker-configuration.d.ts:14–15366
18declare module "*.svg" { 19 const value: string; 20 export default value; 21} 22// Begin runtime types 23/*! ***************************************************************************** 24Copyright (c) Cloudflare. All rights reserved. 25Copyright (c) Microsoft Corporation. All rights reserved. 26 27Licensed under the Apache License, Version 2.0 (the "License"); you may not useFirst 10 of 15353 lines.
- 15350 lines in 2 placestypescriptgenerated44,643 tokens
- 14816 lines in 2 placestypescriptgenerated41,703 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 452 | 166,670 | 306 | 3,907 | 2.34% |
| tsx | 185 | 49,232 | 45 | 528 | 1.07% |
| bash | 9 | 644 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 875 | 579,730 | 1,119 | 290,278 | 50.07% |
| tsx | 240 | 66,765 | 196 | 1,934 | 2.9% |
| json | 69 | 3,006 | 39 | 679 | 22.59% |
| css | 8 | 1,908 | 13 | 259 | 13.57% |
| yaml | 14 | 1,643 | 12 | 137 | 8.34% |
| markdown | 60 | 19,958 | 2 | 18 | 0.09% |
| text | 13 | 187 | 1 | 7 | 3.74% |
| bash | 11 | 659 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| markup | 6 | 116 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 6, 2026 | #7 | 11,086 (+101) | 1,301 | 674,278 | 1,382 | 43.5% | 2.05% | E 18.4 | b304e8c |
| Oct 4, 2026 | #4 | 10,651 (+85) | 1,272 | 657,845 | 1,333 | 44.52% | 2.15% | E 17.9 | 5cae880 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.