'use client'; import { useState } from 'react'; import Link from 'next/link'; const API_BASE = process.env.NEXT_PUBLIC_API_BASE ?? 'https://cypher.arcrun.dev'; const CODE_DEMOS = { python: `pip install arcrun from arcrun import Arcrun client = Arcrun() # reads ARCRUN_API_KEY from env # One-time setup: upload credential client.auth.setup("notion", token="secret_xxx") # Every time after: just bind and use notion = client.auth.bind("notion") pages = notion.get("/pages").json() # Works with any of 20+ services drive = client.auth.bind("google_drive_sa") files = drive.get("/files").json()`, javascript: `npm install arcrun import { Arcrun } from 'arcrun' const client = new Arcrun() // reads ARCRUN_API_KEY from env // One-time setup: upload credential await client.auth.setup('notion', { token: 'secret_xxx' }) // Every time after: just bind and use const notion = await client.auth.bind('notion') const pages = await (await notion.get('/pages')).json() // Run a deployed workflow const result = await client.workflows.run('my-flow', { email: 'user@example.com' })`, http: `# Works with any HTTP tool — curl, n8n, Make, Postman POST ${API_BASE}/webhooks/named/my-workflow/trigger X-Arcrun-API-Key: YOUR_API_KEY Content-Type: application/json { "email": "user@example.com" } # n8n: HTTP Request 節點,貼上即用,不需要安裝任何東西`, }; export default function HomePage() { const [activeTab, setActiveTab] = useState<'python' | 'javascript' | 'http'>('python'); return (
One API key. Every service. Works anywhere.
arcrun handles Google, Notion, GitHub, Slack authentication so your Python / JS code doesn't have to.
{`from arcrun import auth
drive = auth.bind(
"google_drive"
)
# done.`}
{CODE_DEMOS[activeTab]}
n8n 用戶:用 HTTP Request 節點,不需要安裝任何東西
)}{f.desc}
免費取得 API Key,不需要信用卡。
免費取得 API Key