@devries-cameron20 / composio Mirror · read-only / commits / 230c7932b
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 14:45 UTC

docs: replace hardcoded "1,000+" toolkit counts with the live catalog count (#4247)

## Problem The docs hero, feature cards, site metadata, and `llms.txt` / `llms-full.txt` all hardcoded **"1,000+"** (variously written `1,000+` and `1000+`) apps. The actual published catalog is **1,327 toolkits** — the length of the committed `docs/public/data/toolkits-list.json`, which the `/toolkits` page already renders. The copy was stale and understated. ## Approach Reuse the same `toolkits-list.json` the `/toolkits` page reads. A new server-only helper `docs/lib/toolkit-count.ts` imports it and derives a rounded-down, human-friendly label: ```ts const roundedToolkitCount = Math.floor(toolkitsData.length / 100) * 100; // 1327 -> 1300 export const TOOLKIT_COUNT_LABEL = `${roundedToolkitCount.toLocaleString('en-US')}+`; // "1,300+" ``` The count stays correct as the catalog grows, and the locale is pinned to `en-US` so the grouping separator is always a comma regardless of the build host's locale (never `1.300+` or `1 300+`). ## Files Helper (new): - `docs/lib/toolkit-count.ts` Six consumers, all server-side (none is a `"use client"` module): - `docs/components/docs-hero-v2.tsx` - `docs/components/home-features.tsx` - `docs/components/home-resources.tsx` - `docs/app/layout.tsx` (metadata description, OpenGraph, Twitter, JSON-LD) - `docs/app/llms.txt/route.ts` - `docs/app/llms-full.txt/route.ts` ## No client bundle cost Every importer resolves in a server graph, so the ~1,300-row JSON array is read at build time only and never ships to the browser. ## Scope / deferred follow-up Deliberately narrow: no MDX content and no generator scripts are touched. The remaining ~15 hardcoded literals in MDX frontmatter/prose, and the meta-tools generator's `"500+"`, are a **deferred follow-up** and are **not** in this PR. ## Verification Cross-model (Codex / GPT-5.6) adversarial review: GREEN. Codex ran `bun run types:check` and a production `next build` in the working tree — both pass. Locally I confirmed the count (1327 -> "1,300+"), that no importer is `"use client"`, and that no stray `1000+` / `1,000+` / `500+` remains in the six files. CI should re-verify typecheck/build. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Tri committed Aug 25, 2026 at 20:49 UTC 230c7932bcfeedae3d22a36e7e8f7043940d17df

No changes.