BuilderIO/agent-native
A framework for building agentic apps
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
- templates/design/app/components/design/bridge/editor-chrome.bridge.ts6846 cx
- templates/content/app/components/editor/database/DatabaseView.tsx3778 cx
- packages/desktop-app/src/main/index.ts3190 cx
- templates/design/app/components/design/MultiScreenCanvas.tsx2877 cx
- templates/design/shared/code-layer.ts2459 cx
- packages/core/src/agent/production-agent.ts2300 cx
- templates/slides/app/components/editor/SlideEditor.tsx2243 cx
- templates/plan/app/pages/PlansPage.tsx1960 cx
- packages/core/src/client/AssistantChat.tsx1755 cx
- templates/clips/desktop/src/app.tsx1658 cx
Dead code 12.88% unused · 3459 findings
- templates/design/app/components/design/bridge/editor-chrome.bridge.tsunused-file
- templates/design/app/components/design/MultiScreenCanvas.tsxunused-file
- packages/core/src/client/AssistantChat.tsx:AssistantChatInnerunused-symbol
- packages/core/src/client/settings/SettingsPanel.tsxunused-file
- packages/core/src/client/org/TeamPage.tsxunused-file
- packages/creative-context/src/client/CreativeContextPanel.tsxunused-file
- packages/desktop-app/src/renderer/components/CodeAgentsHub.tsxunused-file
- templates/clips/chrome-extension/src/background.tsunused-file
- templates/content/app/components/editor/database/settings.tsxunused-file
- packages/core/src/client/auth/AuthPage.tsxunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 23 generated files: packages/core/src/assets/branding/favicon-base64.ts, packages/core/src/client/blocks/index.ts, packages/core/src/client/blocks/types.ts, packages/core/src/docs-false-claims.guard.spec.ts, packages/core/src/server/og-background-data.ts, packages/core/src/server/og-fonts-data.ts, packages/dispatch/src/server/plugins/core-routes.ts, packages/mobile-app/uniwind-types.d.ts, templates/design/.generated/bridge/editor-chrome.generated.ts, templates/design/.generated/bridge/embedded-wheel.generated.ts, templates/design/.generated/bridge/group-runtime.generated.ts, templates/design/.generated/bridge/hit-test.generated.ts, templates/design/.generated/bridge/motion-preview.generated.ts, templates/design/.generated/bridge/nav.generated.ts, templates/design/.generated/bridge/sample.generated.ts, templates/design/.generated/bridge/shader-fill-preview.generated.ts, templates/design/.generated/bridge/shader-runtime.generated.ts, templates/design/.generated/bridge/source-location.generated.ts, templates/design/.generated/bridge/tweak.generated.ts, templates/design/.generated/bridge/zoom.generated.ts and 3 more.
Largest clones in the code
- 542 lines in 9 placestsx2,877 tokenscommunity-templates/account-expert/app/components/layout/Sidebar.tsx:1–542community-templates/account-tiering/app/components/layout/Sidebar.tsx:1–542community-templates/call-follow-up-drafter/app/components/layout/Sidebar.tsx:1–542community-templates/churn-early-warning/app/components/layout/Sidebar.tsx:1–542community-templates/demo-clip-library/app/components/layout/Sidebar.tsx:1–542and 4 more
1import { AgentNativeIcon } from "@agent-native/core/client/agent-native-icon"; 2import { 3 navigateWithAgentChatViewTransition, 4 useAgentChatRunningThreads, 5 useChatThreads, 6 type ChatThreadSummary, 7} from "@agent-native/core/client/agentkit-chat/rail"; 8import { useT } from "@agent-native/core/client/i18n"; 9import { openCommandMenu } from "@agent-native/core/client/navigation"; 10import { OrgSwitcher } from "@agent-native/core/client/org";First 10 of 542 lines.
- 556 lines in 11 placestypescript2,054 tokenscommunity-templates/account-expert/app/i18n-data.ts:1–556community-templates/account-tiering/app/i18n-data.ts:1–556community-templates/call-follow-up-drafter/app/i18n-data.ts:1–556community-templates/churn-early-warning/app/i18n-data.ts:1–556community-templates/demo-clip-library/app/i18n-data.ts:1–556and 6 more
1import { type LocaleCode } from "@agent-native/core/client/i18n"; 2 3import zhTW from "./i18n/zh-TW"; 4 5const enUS = { 6 root: { 7 commandActions: "Actions", 8 commandSearch: "Search", 9 commandAppearance: "Appearance", 10 toggleTheme: "Toggle theme",First 10 of 556 lines.
- 433 lines in 10 placestsx2,126 tokenscommunity-templates/account-expert/app/components/chat/ChatRouteContent.tsx:1–433community-templates/account-tiering/app/components/chat/ChatRouteContent.tsx:1–433community-templates/call-follow-up-drafter/app/components/chat/ChatRouteContent.tsx:1–433community-templates/churn-early-warning/app/components/chat/ChatRouteContent.tsx:1–433community-templates/demo-clip-library/app/components/chat/ChatRouteContent.tsx:1–433and 5 more
1import type { 2 AgentConnectionRequest, 3 AgentMessage, 4} from "@agent-native/agentkit"; 5import { 6 AgentConnectionRequestCard, 7 AgentKitChat, 8} from "@agent-native/agentkit/react/components"; 9import { 10 useAgentKit,First 10 of 433 lines.
7 more
- 222 lines in 9 placestsx1,298 tokenscommunity-templates/account-expert/app/components/workflow-home.tsx:1–222community-templates/account-tiering/app/components/workflow-home.tsx:1–222community-templates/call-follow-up-drafter/app/components/workflow-home.tsx:1–222community-templates/churn-early-warning/app/components/workflow-home.tsx:1–222community-templates/demo-clip-library/app/components/workflow-home.tsx:1–222and 4 more
- 190 lines in 10 placestsx908 tokenscommunity-templates/account-expert/app/components/layout/Layout.tsx:1–190community-templates/account-tiering/app/components/layout/Layout.tsx:1–190community-templates/call-follow-up-drafter/app/components/layout/Layout.tsx:1–190community-templates/churn-early-warning/app/components/layout/Layout.tsx:1–190community-templates/demo-clip-library/app/components/layout/Layout.tsx:1–190and 5 more
- 156 lines in 9 placestsx857 tokens
- 100 lines in 9 placestypescript535 tokenscommunity-templates/account-expert/app/hooks/use-navigation-state.ts:1–100community-templates/account-tiering/app/hooks/use-navigation-state.ts:1–100community-templates/call-follow-up-drafter/app/hooks/use-navigation-state.ts:1–100community-templates/churn-early-warning/app/hooks/use-navigation-state.ts:1–100community-templates/demo-clip-library/app/hooks/use-navigation-state.ts:1–100and 4 more
- 840 lines in 2 placestypescript4,135 tokens
- 86 lines in 10 placestypescript374 tokenscommunity-templates/account-expert/app/lib/chat-home-thread.ts:1–86community-templates/account-tiering/app/lib/chat-home-thread.ts:1–86community-templates/call-follow-up-drafter/app/lib/chat-home-thread.ts:1–86community-templates/churn-early-warning/app/lib/chat-home-thread.ts:1–86community-templates/demo-clip-library/app/lib/chat-home-thread.ts:1–86and 5 more
- 72 lines in 9 placestypescript403 tokenscommunity-templates/account-expert/actions/get-workflow.ts:1–72community-templates/account-tiering/actions/get-workflow.ts:1–72community-templates/call-follow-up-drafter/actions/get-workflow.ts:1–72community-templates/churn-early-warning/actions/get-workflow.ts:1–72community-templates/demo-clip-library/actions/get-workflow.ts:1–72and 4 more
Largest clones over all files, tests and data included
- 533 lines in 28 placesmarkdowndocs and examples5,696 tokens.agents/skills/external-agents/SKILL.md:16–548community-templates/account-expert/.agents/skills/external-agents/SKILL.md:16–548community-templates/account-tiering/.agents/skills/external-agents/SKILL.md:16–548community-templates/call-follow-up-drafter/.agents/skills/external-agents/SKILL.md:16–548community-templates/churn-early-warning/.agents/skills/external-agents/SKILL.md:16–548and 23 more
16# External Agents (MCP bridge + deep links) 17 18## Rule 19 20- **The connected model is the author.** Write content yourself with create/update tools; never delegate via `ask_app` or wait on an unreachable in-app form — … 21- **Result shape and key tools are in `actions`** (Return Values, Key Actions). 22- **Artifacts fit in one call.** Up to 500,000 characters; return a `storing-data` handle. 23- **One tab, one id.** WebMCP sends `X-Agent-Native-Browser-Tab`; state resolves to the driving tab (`context-awareness`). 24 25An agent-native app is reachable by any MCP-compatible host. KeepFirst 10 of 533 lines.
- 423 lines in 29 placesmarkdowndocs and examples3,728 tokens.agents/skills/secrets/SKILL.md:13–435community-templates/account-expert/.agents/skills/secrets/SKILL.md:13–435community-templates/account-tiering/.agents/skills/secrets/SKILL.md:13–435community-templates/call-follow-up-drafter/.agents/skills/secrets/SKILL.md:13–435community-templates/churn-early-warning/.agents/skills/secrets/SKILL.md:13–435and 24 more
13# Secrets Registry 14 15## Non-negotiable rule 16 17Never hardcode credential values. Source, docs, tests, fixtures, prompts, seed 18data, and generated extension/app content may mention credential **names** such 19as `OPENAI_API_KEY`, but must not contain real API keys, tokens, webhook URLs, 20signing secrets, OAuth refresh tokens, or private Builder/customer data. 21 22Never write real secrets to non-gitignored files. Put temporary secret materialFirst 10 of 423 lines.
- 342 lines in 29 placesmarkdowndocs and examples3,683 tokens.agents/skills/security/SKILL.md:12–353community-templates/account-expert/.agents/skills/security/SKILL.md:12–353community-templates/account-tiering/.agents/skills/security/SKILL.md:12–353community-templates/call-follow-up-drafter/.agents/skills/security/SKILL.md:12–353community-templates/churn-early-warning/.agents/skills/security/SKILL.md:12–353and 24 more
12# Security 13 14## Rule 15 16Use the framework's security primitives everywhere. Never bypass them. 17 18## Absolute Secrets Rule 19 20Never hardcode secret values or real private data. This applies to source code, 21docs, tests, fixtures, generated prompts, screenshots, seed data, and extensionFirst 10 of 342 lines.
- 210 lines in 27 placesmarkdowndocs and examples3,479 tokens.agents/skills/adding-a-feature/SKILL.md:11–220community-templates/account-expert/.agents/skills/adding-a-feature/SKILL.md:11–220community-templates/account-tiering/.agents/skills/adding-a-feature/SKILL.md:11–220community-templates/call-follow-up-drafter/.agents/skills/adding-a-feature/SKILL.md:11–220community-templates/churn-early-warning/.agents/skills/adding-a-feature/SKILL.md:11–220and 22 more
- 469 lines in 20 placesmarkdowndocs and examples4,508 tokens.agents/plugins/agent-native-turn-into-app/skills/turn-into-app/SKILL.md:14–482packages/core/src/templates/default/.agents/skills/turn-into-app/SKILL.md:14–482packages/core/src/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md:14–482skills/turn-into-app/SKILL.md:14–482templates/analytics/.agents/skills/turn-into-app/SKILL.md:14–482and 15 more
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 5,562 | 1,591,046 | 4,685 | 80,249 | 5.04% |
| tsx | 1,753 | 722,605 | 2,052 | 53,399 | 7.39% |
| rust | 43 | 48,516 | 130 | 1,384 | 2.85% |
| javascript | 67 | 18,070 | 70 | 1,129 | 6.25% |
| sql | 9 | 1,410 | 5 | 83 | 5.89% |
| swift | 8 | 2,078 | 1 | 12 | 0.58% |
| wgsl | 11 | 482 | 1 | 7 | 1.45% |
| bash | 10 | 666 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| objectivec | 1 | 29 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 10,403 | 3,073,367 | 16,969 | 265,394 | 8.64% |
| tsx | 2,549 | 916,240 | 4,614 | 89,876 | 9.81% |
| markdown | 1,542 | 305,433 | 1,391 | 176,746 | 57.87% |
| yaml | 877 | 28,377 | 691 | 8,276 | 29.16% |
| css | 53 | 42,530 | 292 | 6,476 | 15.23% |
| json | 253 | 23,086 | 220 | 5,681 | 24.61% |
| bash | 208 | 2,782 | 146 | 1,413 | 50.79% |
| rust | 43 | 48,516 | 130 | 1,384 | 2.85% |
| markup | 169 | 7,072 | 117 | 1,938 | 27.4% |
| javascript | 78 | 18,727 | 79 | 1,323 | 7.06% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 24, 2026 | #3 | 6,630 (+87) | 16,379 | 4,477,904 | 24,749 | 12.52% | 5.71% | E 39.6 | b883e02 |
| Sep 22, 2026 | #1 | 6,061 (+607) | 16,217 | 4,413,555 | 24,233 | 12.49% | 5.66% | D 40.4 | 6661c59 |
| Sep 21, 2026 | #1 | 5,376 (+98) | 16,130 | 4,406,952 | 24,113 | 12.48% | 5.64% | E 38.7 | 9ce4999 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.