Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Add welcome page with shadcn tabs and YouTube component
Sushmithamallesha2e61ceffe8e
diff --git a/fumadocs/app/global.css b/fumadocs/app/global.cssindex e7d2d4cad..ad520d6fb 100644--- a/fumadocs/app/global.css+++ b/fumadocs/app/global.css@@ -1,15 +1,18 @@@import 'tailwindcss';@import 'fumadocs-ui/css/neutral.css';@import 'fumadocs-ui/css/preset.css';+@import "tw-animate-css";++@custom-variant dark (&:is(.dark *));/* ==========================================================================COMPOSIO DOCS-+Palette:- Light: Content #ffffff, Sidebar #fbfaf8- Dark: Content #1a1815, Sidebar #252220- Accent: #ea580c (Tailwind orange-600)-+Typography:- Headings: Flecha (serif)- Body: Inter (sans)@@ -20,6 +23,44 @@--font-sans: var(--font-inter), 'Inter', ui-sans-serif, system-ui, sans-serif;--font-serif: var(--font-flecha), Georgia, serif;--radius: 0.625rem;+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+ --color-chart-5: var(--chart-5);+ --color-chart-4: var(--chart-4);+ --color-chart-3: var(--chart-3);+ --color-chart-2: var(--chart-2);+ --color-chart-1: var(--chart-1);+ --color-ring: var(--ring);+ --color-input: var(--input);+ --color-border: var(--border);+ --color-destructive: var(--destructive);+ --color-accent-foreground: var(--accent-foreground);+ --color-accent: var(--accent);+ --color-muted-foreground: var(--muted-foreground);+ --color-muted: var(--muted);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-secondary: var(--secondary);+ --color-primary-foreground: var(--primary-foreground);+ --color-primary: var(--primary);+ --color-popover-foreground: var(--popover-foreground);+ --color-popover: var(--popover);+ --color-card-foreground: var(--card-foreground);+ --color-card: var(--card);+ --color-foreground: var(--foreground);+ --color-background: var(--background);+ --radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);+ --radius-2xl: calc(var(--radius) + 8px);+ --radius-3xl: calc(var(--radius) + 12px);+ --radius-4xl: calc(var(--radius) + 16px);}/* ==========================================================================@@ -30,7 +71,7 @@/* Brand */--composio-orange: #ea580c;--composio-sidebar: #fbfaf8;-+/* Fumadocs overrides - Light */--color-fd-background: #ffffff;--color-fd-foreground: #171414;@@ -48,11 +89,43 @@--color-fd-accent: #f6f4f2;--color-fd-accent-foreground: #171414;--color-fd-ring: #e5e0df;+ --radius: 0.625rem;+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.646 0.222 41.116);+ --chart-2: oklch(0.6 0.118 184.704);+ --chart-3: oklch(0.398 0.07 227.392);+ --chart-4: oklch(0.828 0.189 84.429);+ --chart-5: oklch(0.769 0.188 70.08);+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);}.dark {--composio-sidebar: #252220;-+/* Fumadocs overrides - Dark */--color-fd-background: #1a1815;--color-fd-foreground: #e8e4e0;@@ -70,6 +143,37 @@--color-fd-accent: #2a2725;--color-fd-accent-foreground: #e8e4e0;--color-fd-ring: #3d3935;+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.488 0.243 264.376);+ --chart-2: oklch(0.696 0.17 162.48);+ --chart-3: oklch(0.769 0.188 70.08);+ --chart-4: oklch(0.627 0.265 303.9);+ --chart-5: oklch(0.645 0.246 16.439);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);}/* ==========================================================================@@ -297,3 +401,12 @@ nav a[href*="app.composio"]:focus-visible {outline: 2px solid var(--composio-orange);outline-offset: 2px;}++@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }+}diff --git a/fumadocs/bun.lock b/fumadocs/bun.lockindex b785bf987..29b22d234 100644--- a/fumadocs/bun.lock+++ b/fumadocs/bun.lock@@ -4,13 +4,17 @@"": {"name": "fumadocs","dependencies": {+ "@radix-ui/react-tabs": "^1.1.13",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1","fumadocs-core": "16.3.2","fumadocs-mdx": "14.2.2","fumadocs-ui": "16.3.2",- "lucide-react": "^0.561.0",+ "lucide-react": "^0.562.0","next": "16.0.10","react": "^19.2.3","react-dom": "^19.2.3",+ "tailwind-merge": "^3.4.0",},"devDependencies": {"@tailwindcss/postcss": "^4.1.18",@@ -22,6 +26,7 @@"eslint-config-next": "16.0.10","postcss": "^8.5.6","tailwindcss": "^4.1.18",+ "tw-animate-css": "^1.4.0","typescript": "^5.9.3",},},@@ -909,7 +914,7 @@"lru-cache": ["[email protected]", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],- "lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Y59gMY38tl4/i0qewcqohPdEbieBy7SovpBL9IFebhc2mDd8x4PZSOsiFRkpPcOq6bj1r/mjH/Rk73gSlIJP2A=="],+ "lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-82hOAu7y0dbVuFfmO4bYF1XEwYk/mEbM5E+b1jgci/udUBEE/R7LF5Ip0CCEmXe8AybRM8L+04eP+LGZeDvkiw=="],"magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],@@ -1259,6 +1264,8 @@"tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+ "tw-animate-css": ["[email protected]", "", {}, "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ=="],+"type-check": ["[email protected]", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="],"typed-array-buffer": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],diff --git a/fumadocs/components.json b/fumadocs/components.jsonnew file mode 100644index 000000000..3a6425553--- /dev/null+++ b/fumadocs/components.json@@ -0,0 +1,22 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "new-york",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "app/global.css",+ "baseColor": "neutral",+ "cssVariables": true,+ "prefix": ""+ },+ "iconLibrary": "lucide",+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "registries": {}+}diff --git a/fumadocs/components/ui/tabs.tsx b/fumadocs/components/ui/tabs.tsxnew file mode 100644index 000000000..497ba5ea3--- /dev/null+++ b/fumadocs/components/ui/tabs.tsx@@ -0,0 +1,66 @@+"use client"++import * as React from "react"+import * as TabsPrimitive from "@radix-ui/react-tabs"++import { cn } from "@/lib/utils"++function Tabs({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ className={cn("flex flex-col gap-2", className)}+ {...props}+ />+ )+}++function TabsList({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.List>) {+ return (+ <TabsPrimitive.List+ data-slot="tabs-list"+ className={cn(+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",+ className+ )}+ {...props}+ />+ )+}++function TabsTrigger({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {+ return (+ <TabsPrimitive.Trigger+ data-slot="tabs-trigger"+ className={cn(+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ />+ )+}++function TabsContent({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Content>) {+ return (+ <TabsPrimitive.Content+ data-slot="tabs-content"+ className={cn("flex-1 outline-none", className)}+ {...props}+ />+ )+}++export { Tabs, TabsList, TabsTrigger, TabsContent }diff --git a/fumadocs/components/youtube.tsx b/fumadocs/components/youtube.tsxnew file mode 100644index 000000000..11bcb85e3--- /dev/null+++ b/fumadocs/components/youtube.tsx@@ -0,0 +1,18 @@+interface YouTubeProps {+ id: string;+ title?: string;+}++export function YouTube({ id, title = 'YouTube video' }: YouTubeProps) {+ return (+ <div className="aspect-video w-full overflow-hidden rounded-lg bg-muted">+ <iframe+ className="h-full w-full border-0"+ src={`https://www.youtube.com/embed/${id}`}+ title={title}+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"+ allowFullScreen+ />+ </div>+ );+}diff --git a/fumadocs/content/docs/index.mdx b/fumadocs/content/docs/index.mdxdeleted file mode 100644index 1eb7bddf4..000000000--- a/fumadocs/content/docs/index.mdx+++ /dev/null@@ -1,31 +0,0 @@-----title: Welcome-description: Welcome to Composio documentation------import { Rocket, Book, Code, MessageCircle } from 'lucide-react';--Welcome to Composio documentation! This is your central hub for learning how to use Composio.--## What You'll Find Here--This documentation covers everything you need to get started and become proficient with Composio.--<Cards>- <Card- icon={<Rocket />}- title="Quickstart"- href="/docs/quickstart"- description="Get up and running in minutes"- />-</Cards>--## Key Features--- **Easy Setup** - Get started quickly with minimal configuration-- **Comprehensive Guides** - Step-by-step tutorials for every feature-- **API Reference** - Complete documentation for all endpoints--## Need Help?--If you have questions or run into issues, check out our resources or reach out to the community.diff --git a/fumadocs/content/docs/quickstart.mdx b/fumadocs/content/docs/quickstart.mdxdeleted file mode 100644index 1727c808f..000000000--- a/fumadocs/content/docs/quickstart.mdx+++ /dev/null@@ -1,47 +0,0 @@-----title: Quickstart-description: Get up and running in minutes------Get started with Composio in just a few simple steps.--## Prerequisites--Before you begin, make sure you have:--- Node.js 18 or higher installed-- A package manager (npm, pnpm, yarn, or bun)--## Installation--Install the package using your preferred package manager:--```bash-npm install composio-```--## Basic Usage--Here's a simple example to get you started:--```javascript-import { Composio } from 'composio';--// Initialize the client-const client = new Composio({- apiKey: 'your-api-key',-});--// Make your first call-const result = await client.getConnectedAccounts();-console.log(result);-```--## Next Steps--Now that you have the basics set up, explore more features:--<Cards>- <Card title="Welcome" href="/docs" description="Learn more about Composio" />-</Cards>-diff --git a/fumadocs/content/docs/welcome.mdx b/fumadocs/content/docs/welcome.mdxnew file mode 100644index 000000000..2eb7e7a57--- /dev/null+++ b/fumadocs/content/docs/welcome.mdx@@ -0,0 +1,84 @@+---+title: Welcome+description: Composio is the simplest way to connect AI agents to external tools and services.+---++import { Key, Wrench, Database, Zap, Rocket, Code } from 'lucide-react';++<Callout title="New: Tool Router" type="info">+Single MCP server and Tool that can search, authenticate, and execute across all Composio tools. [Learn more →](/tool-router/overview)+</Callout>++<Cards>+ <Card+ icon={<Key />}+ title="Managed authentication"+ href="/docs/authenticating-tools"+ description="Handle OAuth, API keys, and custom auth flows automatically"+ />+ <Card+ icon={<Wrench />}+ title="Tool execution"+ href="/docs/executing-tools"+ description="Execute actions across 500+ toolkits with support for most AI frameworks"+ />+ <Card+ icon={<Database />}+ title="MCP server"+ href="/docs/mcp-quickstart"+ description="Hosted MCP servers for all 500+ toolkits"+ />+ <Card+ icon={<Zap />}+ title="Triggers"+ href="/docs/using-triggers"+ description="Subscribe to external events and trigger workflows automatically"+ />+</Cards>++## Get started++<Cards>+ <Card+ icon={<Rocket />}+ title="Quickstart"+ href="/docs/quickstart"+ description="Build your first agent"+ />+ <Card+ icon={<Code />}+ title="Providers"+ href="/docs/providers"+ description="Integrate with OpenAI, Anthropic, Vercel AI SDK, and more"+ />+</Cards>++<Tabs defaultValue="python" className="my-6">+ <TabsList>+ <TabsTrigger value="python">Python</TabsTrigger>+ <TabsTrigger value="typescript">TypeScript</TabsTrigger>+ </TabsList>+ <div className="relative mt-2">+ <TabsContent value="python" forceMount className="data-[state=inactive]:invisible data-[state=inactive]:absolute data-[state=inactive]:inset-0">+ <YouTube id="wkqlR8322F4" title="Composio Python Quickstart" />+ </TabsContent>+ <TabsContent value="typescript" forceMount className="data-[state=inactive]:invisible data-[state=inactive]:absolute data-[state=inactive]:inset-0">+ <YouTube id="ZRGb4xGl-kc" title="Composio TypeScript Quickstart" />+ </TabsContent>+ </div>+</Tabs>++## Why Composio?++Composio is the fastest way to enable your AI agents to take real-world actions—without dealing with individual API integrations, authentication flows, or complex tool formatting.++- **Access 500+ toolkits** out of the box across popular apps like Slack, GitHub, Notion, and more. [Browse toolkits →](/toolkits/introduction)+- **Enforce strict access and data controls** with [fine-grained permissions](/docs/authenticating-tools) for each tool and user.+- **Trigger agents and workflows** using [external events](/docs/using-triggers) (e.g., new message in Slack, new issue in GitHub).+- **Use MCP servers** for all 500+ toolkits, compatible with any [MCP client](/docs/mcp-quickstart).+- **Search, plan and authenticate** across all tools with [Tool Router](/tool-router/overview).+- **Integrate seamlessly** with frameworks like [OpenAI](/providers/openai), [Anthropic](/providers/anthropic), [LangChain](/providers/langchain), [Vercel AI SDK](/providers/vercel), and more.++## Community++Join our [Discord](https://discord.gg/composio) community!diff --git a/fumadocs/lib/utils.ts b/fumadocs/lib/utils.tsnew file mode 100644index 000000000..bd0c391dd--- /dev/null+++ b/fumadocs/lib/utils.ts@@ -0,0 +1,6 @@+import { clsx, type ClassValue } from "clsx"+import { twMerge } from "tailwind-merge"++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs))+}diff --git a/fumadocs/mdx-components.tsx b/fumadocs/mdx-components.tsxindex 20beb4cd7..7bcec01cd 100644--- a/fumadocs/mdx-components.tsx+++ b/fumadocs/mdx-components.tsx@@ -1,9 +1,16 @@import defaultMdxComponents from 'fumadocs-ui/mdx';import type { MDXComponents } from 'mdx/types';+import { YouTube } from '@/components/youtube';+import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';export function getMDXComponents(components?: MDXComponents): MDXComponents {return {...defaultMdxComponents,+ YouTube,+ Tabs,+ TabsList,+ TabsTrigger,+ TabsContent,...components,};}diff --git a/fumadocs/next.config.mjs b/fumadocs/next.config.mjsindex 457dcf29d..a2534b653 100644--- a/fumadocs/next.config.mjs+++ b/fumadocs/next.config.mjs@@ -5,6 +5,20 @@ const withMDX = createMDX();/** @type {import('next').NextConfig} */const config = {reactStrictMode: true,+ async redirects() {+ return [+ {+ source: '/',+ destination: '/docs/welcome',+ permanent: false,+ },+ {+ source: '/docs',+ destination: '/docs/welcome',+ permanent: false,+ },+ ];+ },};export default withMDX(config);diff --git a/fumadocs/package.json b/fumadocs/package.jsonindex 1a408e59a..d565fc723 100644--- a/fumadocs/package.json+++ b/fumadocs/package.json@@ -11,13 +11,17 @@"lint": "eslint"},"dependencies": {+ "@radix-ui/react-tabs": "^1.1.13",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1","fumadocs-core": "16.3.2","fumadocs-mdx": "14.2.2","fumadocs-ui": "16.3.2",- "lucide-react": "^0.561.0",+ "lucide-react": "^0.562.0","next": "16.0.10","react": "^19.2.3",- "react-dom": "^19.2.3"+ "react-dom": "^19.2.3",+ "tailwind-merge": "^3.4.0"},"devDependencies": {"@tailwindcss/postcss": "^4.1.18",@@ -25,10 +29,11 @@"@types/node": "^24.10.2","@types/react": "^19.2.7","@types/react-dom": "^19.2.3",+ "eslint": "^9.39.2",+ "eslint-config-next": "16.0.10","postcss": "^8.5.6","tailwindcss": "^4.1.18",- "typescript": "^5.9.3",- "eslint-config-next": "16.0.10",- "eslint": "^9.39.2"+ "tw-animate-css": "^1.4.0",+ "typescript": "^5.9.3"}}\ No newline at end of file