@devries-cameron20 / composio-1 / commits / 1691bf0bf
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.

layout changes

Sushmithamallesh committed Dec 30, 2025 at 17:16 UTC 1691bf0bf8c3c4f71639c09d2cb323dd82592b91
21 files changed +303 -1
fumadocs/app/(home)/examples/[[...slug]]/page.tsx new
+6
@@ -0,0 +1,6 @@
1 +import { examplesSource } from '@/lib/source';
2 +import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
3 +
4 +export default createDocsPage(examplesSource);
5 +export const generateStaticParams = createGenerateStaticParams(examplesSource);
6 +export const generateMetadata = createGenerateMetadata(examplesSource);
fumadocs/app/(home)/examples/layout.tsx new
+4
@@ -0,0 +1,4 @@
1 +import { examplesSource } from '@/lib/source';
2 +import { createDocsLayout } from '@/lib/create-docs-layout';
3 +
4 +export default createDocsLayout(examplesSource);
fumadocs/app/(home)/reference/[[...slug]]/page.tsx new
+6
@@ -0,0 +1,6 @@
1 +import { referenceSource } from '@/lib/source';
2 +import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
3 +
4 +export default createDocsPage(referenceSource);
5 +export const generateStaticParams = createGenerateStaticParams(referenceSource);
6 +export const generateMetadata = createGenerateMetadata(referenceSource);
fumadocs/app/(home)/reference/layout.tsx new
+4
@@ -0,0 +1,4 @@
1 +import { referenceSource } from '@/lib/source';
2 +import { createDocsLayout } from '@/lib/create-docs-layout';
3 +
4 +export default createDocsLayout(referenceSource);
fumadocs/app/(home)/tool-router/[[...slug]]/page.tsx new
+6
@@ -0,0 +1,6 @@
1 +import { toolRouterSource } from '@/lib/source';
2 +import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
3 +
4 +export default createDocsPage(toolRouterSource);
5 +export const generateStaticParams = createGenerateStaticParams(toolRouterSource);
6 +export const generateMetadata = createGenerateMetadata(toolRouterSource);
fumadocs/app/(home)/tool-router/layout.tsx new
+4
@@ -0,0 +1,4 @@
1 +import { toolRouterSource } from '@/lib/source';
2 +import { createDocsLayout } from '@/lib/create-docs-layout';
3 +
4 +export default createDocsLayout(toolRouterSource);
fumadocs/app/(home)/toolkits/[[...slug]]/page.tsx new
+6
@@ -0,0 +1,6 @@
1 +import { toolkitsSource } from '@/lib/source';
2 +import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
3 +
4 +export default createDocsPage(toolkitsSource);
5 +export const generateStaticParams = createGenerateStaticParams(toolkitsSource);
6 +export const generateMetadata = createGenerateMetadata(toolkitsSource);
fumadocs/app/(home)/toolkits/layout.tsx new
+4
@@ -0,0 +1,4 @@
1 +import { toolkitsSource } from '@/lib/source';
2 +import { createDocsLayout } from '@/lib/create-docs-layout';
3 +
4 +export default createDocsLayout(toolkitsSource);
fumadocs/content/examples/index.mdx new
+21
@@ -0,0 +1,21 @@
1 +---
2 +title: Examples
3 +description: Real-world examples and use cases for Composio
4 +---
5 +
6 +Explore practical examples of building AI agents with Composio.
7 +
8 +## Getting Started
9 +
10 +- [Basic FastAPI Server](/examples/fast-api) - Build a simple API server with Composio
11 +- [Basic Hono Server](/examples/hono) - Build a Hono server with Composio
12 +
13 +## Productivity & Automation
14 +
15 +- [Gmail Labeller](/examples/gmail-labeler) - Automatically label emails
16 +- [Slack Summariser](/examples/slack-summariser) - Summarize Slack conversations
17 +- [Supabase SQL Agent](/examples/supabase-sql-agent) - Query databases with AI
18 +
19 +## Full Stack Applications
20 +
21 +- [Full Stack Chat App](/examples/vercel-chat) - Complete chat application example
fumadocs/content/examples/meta.json new
+7
@@ -0,0 +1,7 @@
1 +{
2 + "title": "Examples",
3 + "pages": [
4 + "---Getting Started---",
5 + "index"
6 + ]
7 +}
fumadocs/content/reference/index.mdx new
+16
@@ -0,0 +1,16 @@
1 +---
2 +title: API Reference
3 +description: Complete API and SDK reference documentation for Composio
4 +---
5 +
6 +Welcome to the Composio API Reference. This section contains detailed documentation for:
7 +
8 +- **REST API** - Complete HTTP API documentation
9 +- **Python SDK** - Python SDK reference
10 +- **TypeScript SDK** - TypeScript SDK reference
11 +
12 +## Quick Links
13 +
14 +- [REST API Documentation](/reference/api)
15 +- [Python SDK Reference](/reference/python)
16 +- [TypeScript SDK Reference](/reference/typescript)
fumadocs/content/reference/meta.json new
+7
@@ -0,0 +1,7 @@
1 +{
2 + "title": "Reference",
3 + "pages": [
4 + "---API Reference---",
5 + "index"
6 + ]
7 +}
fumadocs/content/tool-router/index.mdx new
+22
@@ -0,0 +1,22 @@
1 +---
2 +title: Overview
3 +description: Give your AI agent access to thousands of tools through a unified interface
4 +---
5 +
6 +Tool Router is a unified interface that lets an agent **search**, **plan**, **authenticate**, and **execute** actions across thousands of Composio tools.
7 +
8 +Consider an agent that works across Gmail, Notion, Slack, Google Drive, and hundreds of other apps. The challenges:
9 +
10 +- **Search**: Identifying the right tool for the task
11 +- **Context Management**: Managing context for complex queries with large responses
12 +- **Authentication**: Handling authentication across all of them
13 +
14 +Tool Router exposes a set of meta-tools that handle all this complexity including search to discover the right tools, and a workbench to process results without flooding context.
15 +
16 +This is what powers complex agentic products like [Rube](https://rube.app).
17 +
18 +## Quick links
19 +
20 +- [Quickstart](/tool-router/quickstart): Build your first AI agent with Tool Router.
21 +- [Using with MCP clients](/tool-router/using-with-mcp-clients): Guides on how to use Tool Router MCP with popular MCP clients.
22 +- [Using as a native tool](/tool-router/using-as-a-native-tool): Guide on how to use Tool Router as a native tool with any AI framework.
fumadocs/content/tool-router/meta.json new
+7
@@ -0,0 +1,7 @@
1 +{
2 + "title": "Tool Router",
3 + "pages": [
4 + "---Get Started---",
5 + "index"
6 + ]
7 +}
fumadocs/content/toolkits/index.mdx new
+26
@@ -0,0 +1,26 @@
1 +---
2 +title: Toolkits
3 +description: Browse all available Composio toolkits and integrations
4 +---
5 +
6 +Composio provides 250+ pre-built toolkits for popular services and APIs.
7 +
8 +## Featured Toolkits
9 +
10 +### Important
11 +
12 +- [GitHub](/toolkits/github) - Manage repositories, issues, and pull requests
13 +- [Gmail](/toolkits/gmail) - Send and manage emails
14 +- [Notion](/toolkits/notion) - Create and manage Notion pages
15 +
16 +### Scheduling & Booking
17 +
18 +- [Google Calendar](/toolkits/googlecalendar) - Manage calendar events
19 +
20 +### No Auth Required
21 +
22 +- [Composio](/toolkits/composio) - Core Composio tools
23 +
24 +## Browse All Toolkits
25 +
26 +Visit the [Composio Dashboard](https://app.composio.dev) to explore all available toolkits.
fumadocs/content/toolkits/meta.json new
+7
@@ -0,0 +1,7 @@
1 +{
2 + "title": "Toolkits",
3 + "pages": [
4 + "---Overview---",
5 + "index"
6 + ]
7 +}
fumadocs/lib/create-docs-layout.tsx new
+21
@@ -0,0 +1,21 @@
1 +import { DocsLayout } from 'fumadocs-ui/layouts/docs';
2 +import type { ReactNode } from 'react';
3 +
4 +// eslint-disable-next-line @typescript-eslint/no-explicit-any
5 +type Source = any;
6 +
7 +export function createDocsLayout(source: Source) {
8 + return function Layout({ children }: { children: ReactNode }) {
9 + return (
10 + <DocsLayout
11 + tree={source.pageTree}
12 + nav={{ enabled: false }}
13 + searchToggle={{ enabled: false }}
14 + sidebar={{ collapsible: false, footer: null }}
15 + themeSwitch={{ enabled: false }}
16 + >
17 + {children}
18 + </DocsLayout>
19 + );
20 + };
21 +}
fumadocs/lib/create-docs-page.tsx new
+60
@@ -0,0 +1,60 @@
1 +import {
2 + DocsBody,
3 + DocsDescription,
4 + DocsPage,
5 + DocsTitle,
6 +} from 'fumadocs-ui/layouts/docs/page';
7 +import { notFound } from 'next/navigation';
8 +import { getMDXComponents } from '@/mdx-components';
9 +import type { Metadata } from 'next';
10 +import { createRelativeLink } from 'fumadocs-ui/mdx';
11 +
12 +// eslint-disable-next-line @typescript-eslint/no-explicit-any
13 +type Source = any;
14 +
15 +export function createDocsPage(source: Source) {
16 + return async function Page({ params }: { params: Promise<{ slug?: string[] }> }) {
17 + const { slug } = await params;
18 + const page = source.getPage(slug);
19 + if (!page) notFound();
20 +
21 + const MDX = page.data.body;
22 +
23 + return (
24 + <DocsPage toc={page.data.toc} full={page.data.full} footer={{ enabled: false }}>
25 + <DocsTitle>{page.data.title}</DocsTitle>
26 + <DocsDescription>{page.data.description}</DocsDescription>
27 + <DocsBody>
28 + <MDX
29 + components={getMDXComponents({
30 + a: createRelativeLink(source, page),
31 + })}
32 + />
33 + </DocsBody>
34 + </DocsPage>
35 + );
36 + };
37 +}
38 +
39 +export function createGenerateStaticParams(source: Source) {
40 + return function generateStaticParams() {
41 + return source.generateParams();
42 + };
43 +}
44 +
45 +export function createGenerateMetadata(source: Source) {
46 + return async function generateMetadata({
47 + params,
48 + }: {
49 + params: Promise<{ slug?: string[] }>;
50 + }): Promise<Metadata> {
51 + const { slug } = await params;
52 + const page = source.getPage(slug);
53 + if (!page) notFound();
54 +
55 + return {
56 + title: page.data.title,
57 + description: page.data.description,
58 + };
59 + };
60 +}
fumadocs/lib/layout.shared.tsx
+4
@@ -43,6 +43,10 @@ export function baseOptions(): BaseLayoutProps {
43 text: 'Tool Router',
44 url: '/tool-router',
45 },
46 + {
47 + text: 'Toolkits',
48 + url: '/toolkits',
49 + },
50 {
51 text: 'Reference',
52 url: '/reference',
fumadocs/lib/source.ts
+25 -1
@@ -1,4 +1,4 @@
1 -import { docs, changelog } from 'fumadocs-mdx:collections/server';
1 +import { docs, toolRouter, reference, examples, toolkits, changelog } from 'fumadocs-mdx:collections/server';
2 import { type InferPageType, loader } from 'fumadocs-core/source';
3 import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
4
@@ -9,6 +9,30 @@ export const source = loader({
9 plugins: [lucideIconsPlugin()],
10 });
11
12 +export const toolRouterSource = loader({
13 + baseUrl: '/tool-router',
14 + source: toolRouter.toFumadocsSource(),
15 + plugins: [lucideIconsPlugin()],
16 +});
17 +
18 +export const referenceSource = loader({
19 + baseUrl: '/reference',
20 + source: reference.toFumadocsSource(),
21 + plugins: [lucideIconsPlugin()],
22 +});
23 +
24 +export const examplesSource = loader({
25 + baseUrl: '/examples',
26 + source: examples.toFumadocsSource(),
27 + plugins: [lucideIconsPlugin()],
28 +});
29 +
30 +export const toolkitsSource = loader({
31 + baseUrl: '/toolkits',
32 + source: toolkits.toFumadocsSource(),
33 + plugins: [lucideIconsPlugin()],
34 +});
35 +
36 export const changelogEntries = changelog;
37
38 export function getPageImage(page: InferPageType<typeof source>) {
fumadocs/source.config.ts
+40
@@ -22,6 +22,46 @@ export const docs = defineDocs({
22 },
23 });
24
25 +export const toolRouter = defineDocs({
26 + dir: 'content/tool-router',
27 + docs: {
28 + schema: frontmatterSchema,
29 + },
30 + meta: {
31 + schema: metaSchema,
32 + },
33 +});
34 +
35 +export const reference = defineDocs({
36 + dir: 'content/reference',
37 + docs: {
38 + schema: frontmatterSchema,
39 + },
40 + meta: {
41 + schema: metaSchema,
42 + },
43 +});
44 +
45 +export const examples = defineDocs({
46 + dir: 'content/examples',
47 + docs: {
48 + schema: frontmatterSchema,
49 + },
50 + meta: {
51 + schema: metaSchema,
52 + },
53 +});
54 +
55 +export const toolkits = defineDocs({
56 + dir: 'content/toolkits',
57 + docs: {
58 + schema: frontmatterSchema,
59 + },
60 + meta: {
61 + schema: metaSchema,
62 + },
63 +});
64 +
65 export const changelog = defineCollections({
66 type: 'doc',
67 dir: 'content/changelog',