Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
perf: slim down toolkits-list.json by stripping unused fields
Only keep slug, name, logo, category, toolCount, triggerCount in the light JSON file used by the landing page client bundle. Reduces toolkits-list.json from ~814KB to ~103KB. Full toolkits.json for detail pages is unchanged. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 11, 2026 at 21:40 UTC
f2282491f584670c0c5117295bf6ae92410a190c
2 files changed
+7
-5
docs/scripts/generate-toolkits.ts
+3
-1
@@ -296,7 +296,9 @@ async function main() {
296
297
// Write light file (for landing page - imported in client component)
298
// Excludes tools and triggers arrays to keep bundle size small
299
- const toolkitsLight = toolkits.map(({ tools, triggers, ...rest }) => rest);
299
+ const toolkitsLight = toolkits.map(({ slug, name, logo, category, toolCount, triggerCount }) => ({
300
+ slug, name, logo, category, toolCount, triggerCount,
301
+ }));
302
await writeFile(
303
join(OUTPUT_DIR, 'toolkits-list.json'),
304
JSON.stringify(toolkitsLight, null, 2)
docs/types/toolkit.ts
+4
-4
@@ -63,21 +63,21 @@ export interface AuthConfigDetail {
63
};
64
}
65
66
-// Light version for landing page (no tools/triggers arrays)
66
+// Light version for landing page (only fields needed for listing)
67
export interface ToolkitSummary {
68
slug: string;
69
name: string;
70
logo: string | null;
71
- description: string;
71
category: string | null;
73
- authSchemes: string[];
72
toolCount: number;
73
triggerCount: number;
76
- version: string | null;
74
}
75
76
// Full version with tools, triggers, and auth config details
77
export interface Toolkit extends ToolkitSummary {
78
+ description: string;
79
+ authSchemes: string[];
80
+ version: string | null;
81
tools: Tool[];
82
triggers: Trigger[];
83
authConfigDetails?: AuthConfigDetail[];