PageSourceSearch

https://app.forgein.ai/_next/static/chunks/app/docs/page-594de7b14b540ff5.js

js forgein.ai collected 2026-10-02 01:11:21 UTC 11,509 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9040],{5273:(e,r,n)=>{Promise.resolve().then(n.bind(n,4966))},6857:(e,r,n)=>{"use strict";n.d(r,{p:()=>i});var t=n(5711);function i(e){let{size:r=26}=e,n=Math.round(.24*r);return(0,t.jsx)("img",{src:"/icon.png",alt:"","aria-hidden":"true",width:r,height:r,style:{borderRadius:n,flexShrink:0,display:"block"}})}},3786:(e,r,n)=>{"use strict";n.d(r,{A:()=>a});var t=n(5711),i=n(1545),o=n.n(i),s=n(6857);function a(){return(0,t.jsxs)("footer",{className:"lp-footer",children:[(0,t.jsxs)(o(),{href:"/",className:"lp-logo",style:{marginBottom:0},children:[(0,t.jsx)(s.p,{size:24})," forgein"]}),(0,t.jsxs)("div",{className:"lp-footer-links",children:[(0,t.jsx)(o(),{href:"/for/claude-code",children:"For Claude Code"}),(0,t.jsx)(o(),{href:"/for/chatgpt",children:"For ChatGPT"}),(0,t.jsx)(o(),{href:"/for/copilot",children:"For Copilot"}),(0,t.jsx)(o(),{href:"/for/gemini",children:"For Gemini"}),(0,t.jsx)(o(),{href:"/for/cursor",children:"For Cursor"}),(0,t.jsx)(o(),{href:"/for/windsurf",children:"For Windsurf"}),(0,t.jsx)(o(),{href:"/for/mcp",children:"MCP Server"}),(0,t.jsx)(o(),{href:"/templates",children:"Templates"}),(0,t.jsx)(o(),{href:"/open",children:"Open protocols"}),(0,t.jsx)(o(),{href:"/cli",children:"CLI"}),(0,t.jsx)(o(),{href:"/docs",children:"Docs"}),(0,t.jsx)(o(),{href:"/docs/api",children:"API reference"}),(0,t.jsx)(o(),{href:"/changelog",children:"Changelog"}),(0,t.jsx)("a",{href:"https://github.com/forgeinai/forgein",target:"_blank",rel:"noopener",children:"GitHub"}),(0,t.jsx)(o(),{href:"/pricing",children:"Pricing"}),(0,t.jsx)(o(),{href:"/login",children:"Sign in"}),(0,t.jsx)(o(),{href:"/signup",children:"Get started"})]}),(0,t.jsx)("span",{className:"lp-footer-copy",children:"\xa9 2026 Forgein"})]})}},4377:(e,r,n)=>{"use strict";n.d(r,{default:()=>a});var t=n(5711),i=n(1545),o=n.n(i),s=n(6857);function a(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"lp-nav-accent","aria-hidden":"true"}),(0,t.jsx)("nav",{className:"lp-nav",style:{padding:"14px 0"},children:(0,t.jsxs)("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,t.jsxs)(o(),{href:"/",className:"lp-logo",children:[(0,t.jsx)(s.p,{size:28}),"forgein"]}),(0,t.jsxs)("div",{className:"lp-nav-links",children:[(0,t.jsx)("a",{href:"/#cold-start",className:"lp-nav-link",children:"Why"}),(0,t.jsx)("a",{href:"/#ctx",className:"lp-nav-link",children:"Contexts"}),(0,t.jsx)("a",{href:"/#team",className:"lp-nav-link",children:"Teams"}),(0,t.jsxs)("div",{className:"lp-nav-dropdown",children:[(0,t.jsx)("span",{className:"lp-nav-link lp-nav-dropdown-trigger",children:"Integrations ▾"}),(0,t.jsxs)("div",{className:"lp-nav-dropdown-menu",children:[(0,t.jsx)(o(),{href:"/for/claude-code",className:"lp-nav-dropdown-item",children:"Claude Code"}),(0,t.jsx)(o(),{href:"/for/chatgpt",className:"lp-nav-dropdown-item",children:"ChatGPT"}),(0,t.jsx)(o(),{href:"/for/copilot",className:"lp-nav-dropdown-item",children:"Copilot"}),(0,t.jsx)(o(),{href:"/for/gemini",className:"lp-nav-dropdown-item",children:"Gemini"}),(0,t.jsx)(o(),{href:"/for/cursor",className:"lp-nav-dropdown-item",children:"Cursor"}),(0,t.jsx)(o(),{href:"/for/windsurf",className:"lp-nav-dropdown-item",children:"Windsurf"}),(0,t.jsx)(o(),{href:"/for/mcp",className:"lp-nav-dropdown-item",children:"MCP Server"})]})]}),(0,t.jsxs)("div",{className:"lp-nav-dropdown",children:[(0,t.jsx)("span",{className:"lp-nav-link lp-nav-dropdown-trigger",children:"Developers ▾"}),(0,t.jsxs)("div",{className:"lp-nav-dropdown-menu",children:[(0,t.jsx)(o(),{href:"/install",className:"lp-nav-dropdown-item",children:"Install"}),(0,t.jsx)(o(),{href:"/cli",className:"lp-nav-dropdown-item",children:"CLI reference"}),(0,t.jsx)(o(),{href:"/docs",className:"lp-nav-dropdown-item",children:"Docs"}),(0,t.jsx)(o(),{href:"/open",className:"lp-nav-dropdown-item",children:"Open source"}),(0,t.jsx)(o(),{href:"/changelog",className:"lp-nav-dropdown-item",children:"Changelog"})]})]}),(0,t.jsx)("a",{href:"https://github.com/forgeinai/forgein",target:"_blank",rel:"noopener",className:"lp-nav-link",children:"GitHub"}),(0,t.jsx)(o(),{href:"/login",className:"lp-nav-link",children:"Sign in"}),(0,t.jsx)(o(),{href:"/signup",className:"lp-cta-sm",children:"Get started free ›"}),(0,t.jsx)("button",{className:"lp-nav-theme","aria-label":"Toggle theme",onClick:()=>{let e=document.documentElement,r="light"===e.getAttribute("data-theme")?"dark":"light";e.setAttribute("data-theme",r)},children:(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,t.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),(0,t.jsx)("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),(0,t.jsx)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),(0,t.jsx)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),(0,t.jsx)("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),(0,t.jsx)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),(0,t.jsx)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]})})]})}},4966:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>d});var t=n(5711),i=n(1545),o=n.n(i),s=n(4377),a=n(3786);let l="#F59E0B",c=[{title:"Getting started",items:[{href:"/docs/quickstart",icon:"⚡",title:"Quickstart",desc:"Create an account, install the CLI, sync your first memory files, and connect to Claude Code in under 10 minutes.",tag:"Start here",tagColor:l},{href:"/tokens",icon:"⌘",title:"API tokens",desc:"Create a Bearer token (fg_…) to authenticate the CLI or your own scripts against the forgein API."}]},{title:"Adapter setup",items:[{href:"/for/claude-code",icon:"⬛",title:"Claude Code",desc:"Full memory sync via /forgein mem sync, all /forgein CLI commands, and skills integration for Claude Code."},{href:"/for/chatgpt",icon:"\uD83D\uDCAC",title:"ChatGPT",desc:"Generate two-field Custom Instructions from your context, or connect forgein as a Custom GPT action."},{href:"/for/copilot",icon:"⌥",title:"GitHub Copilot",desc:"Write .github/copilot-instructions.md from your memory context — paste or auto-push via API."},{href:"/for/cursor",icon:"⊗",title:"Cursor",desc:"Generate .cursorrules for every repo, or connect live context via the forgein MCP server."},{href:"/for/windsurf",icon:"⊞",title:"Windsurf",desc:"Generate .windsurfrules for Cascade, or connect live context via the forgein MCP server."},{href:"/for/gemini",icon:"◆",title:"Gemini",desc:"Generate a system prompt for your Gem — paste into the Gem configuration panel."},{href:"/for/mcp",icon:"⬡",title:"MCP Server",desc:"JSON-RPC 2.0 server compatible with any MCP client. Auto-discovery at /.well-known/mcp."}]},{title:"API reference",items:[{href:"/docs/api",icon:"{ }",title:"Full API reference",desc:"All endpoints with curl examples: adapters, memory CRUD, webhooks, tokens, MCP, and auto-discovery.",tag:"Reference",tagColor:"#7C3AED"},{href:"/docs/api#webhooks",icon:"⌁",title:"Webhooks",desc:"Receive a signed memory.updated event at your endpoint whenever a memory file changes."},{href:"/for/mcp#discovery",icon:"⬡",title:"Custom GPT action schema",desc:"OpenAPI 3.1 schema at /api/adapter
1s/chatgpt/action-schema — import into any Custom GPT to read and write forgein memory mid-conversation."}]},{title:"SDK & CLI",items:[{href:"/docs/python",icon:"\uD83D\uDC0D",title:"Python SDK",desc:"ForgeinClient + AsyncForgeinClient. Adapters, memory CRUD, Anthropic / OpenAI / LangChain integrations, typed CLI. pip install forgein.",tag:"New",tagColor:"#10B981"},{href:"/cli",icon:"⬛",title:"CLI install & commands",desc:"One-command install drops the /forgein skill into Claude Code. auth, mem sync, optimize, sec — all subcommands included. macOS and Linux."},{href:"https://www.npmjs.com/package/@forgein/adapter-sdk",icon:"◈",title:"@forgein/adapter-sdk",desc:"TypeScript SDK: ForgeinClient, callMcp<T>, listProjects, getFile, putFile, search. Works in Node.js and edge runtimes.",external:!0}]}];function d(){return(0,t.jsxs)("div",{style:{background:"var(--bg)",color:"var(--text)",minHeight:"100vh",fontFamily:"var(--sans)"},children:[(0,t.jsx)(s.default,{}),(0,t.jsxs)("div",{style:{maxWidth:1080,margin:"0 auto",padding:"56px 28px 80px"},children:[(0,t.jsxs)("div",{style:{marginBottom:52},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--mono)",fontSize:".65rem",letterSpacing:".12em",textTransform:"uppercase",color:l,marginBottom:12},children:"Documentation"}),(0,t.jsx)("h1",{style:{fontFamily:"var(--mono)",fontSize:"clamp(1.8rem,4vw,2.5rem)",fontWeight:700,letterSpacing:"-.02em",lineHeight:1.1,marginBottom:12},children:"forgein docs"}),(0,t.jsx)("p",{style:{fontSize:".95rem",color:"var(--muted2)",maxWidth:520,lineHeight:1.7},children:"Everything you need to get your AI tools running with live context from forgein."})]}),(0,t.jsxs)(o(),{href:"/docs/quickstart",style:{display:"flex",alignItems:"center",gap:20,border:"1px solid ".concat(l,"30"),borderLeft:"3px solid ".concat(l),borderRadius:8,padding:"18px 24px",background:"".concat(l,"06"),textDecoration:"none",marginBottom:52},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--mono)",fontSize:"1.4rem",color:l},children:"⚡"}),(0,t.jsxs)("div",{style:{flex:1},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--mono)",fontSize:".82rem",fontWeight:700,color:"var(--text)",marginBottom:4},children:"New here? Start with the Quickstart →"}),(0,t.jsx)("div",{style:{fontSize:".82rem",color:"var(--muted2)",lineHeight:1.55},children:"Install the CLI, sync your first memory files, and see your context in Claude Code — in under 10 minutes."})]})]}),c.map(e=>(0,t.jsxs)("div",{style:{marginBottom:48},children:[(0,t.jsx)("div",{style:{fontFamily:"var(--mono)",fontSize:".65rem",letterSpacing:".1em",textTransform:"uppercase",color:"var(--muted)",marginBottom:16,paddingBottom:10,borderBottom:"1px solid var(--border)"},children:e.title}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill,minmax(280px,1fr))",gap:1,background:"var(--border)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden"},children:e.items.map(e=>{let r=e.external?"a":o(),n=e.external?{target:"_blank",rel:"noopener"}:{};return(0,t.jsxs)(r,{href:e.href,...n,style:{background:"var(--surface)",padding:"20px 22px",textDecoration:"none",display:"block"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[(0,t.jsx)("span",{style:{fontFamily:"var(--mono)",fontSize:".88rem",color:"var(--muted2)",width:22,textAlign:"center",flexShrink:0},children:e.icon}),(0,t.jsx)("span",{style:{fontFamily:"var(--mono)",fontSize:".82rem",fontWeight:700,color:"var(--text)"},children:e.title}),e.tag&&(0,t.jsx)("span",{style:{fontFamily:"var(--mono)",fontSize:".6rem",fontWeight:700,letterSpacing:".06em",background:e.tagColor,color:"#000",padding:"2px 7px",borderRadius:3,marginLeft:"auto",whiteSpace:"nowrap"},children:e.tag}),e.external&&(0,t.jsx)("span",{style:{fontSize:".72rem",color:"var(--muted)",marginLeft:"auto"},children:"↗"})]}),(0,t.jsx)("p",{style:{fontSize:".8rem",color:"var(--muted2)",lineHeight:1.6,margin:0},children:e.desc})]},e.href)})})]},e.title))]}),(0,t.jsx)(a.A,{})]})}}},e=>{var r=r=>e(e.s=r);e.O(0,[1545,3054,7839,7358],()=>r(5273)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.