[{"data":1,"prerenderedAt":278},["ShallowReactive",2],{"selaras-docs-navigation":3,"selaras-docs:\u002Fguide\u002Fgetting-started":82},[4,26,43,65],{"title":5,"order":6,"icon":7,"collapse":8,"navBadges":7,"path":9,"stem":10,"children":11,"page":8},"Guide",1,null,false,"\u002Fguide","guide",[12,16,21],{"title":13,"path":14,"stem":15,"order":6,"icon":7,"collapse":8,"navBadges":7},"Getting started","\u002Fguide\u002Fgetting-started","guide\u002Fgetting-started",{"title":17,"path":18,"stem":19,"order":20,"icon":7,"collapse":8,"navBadges":7},"Connect an agent","\u002Fguide\u002Fconnect-an-agent","guide\u002Fconnect-an-agent",2,{"title":22,"path":23,"stem":24,"order":25,"icon":7,"collapse":8,"navBadges":7},"Organize and share","\u002Fguide\u002Fworkspace","guide\u002Fworkspace",3,{"title":27,"order":20,"icon":7,"collapse":8,"navBadges":7,"path":28,"stem":29,"children":30,"page":8},"Authoring","\u002Fauthoring","authoring",[31,35,39],{"title":32,"path":33,"stem":34,"order":6,"icon":7,"collapse":8,"navBadges":7},"Overview","\u002Fauthoring\u002Foverview","authoring\u002Foverview",{"title":36,"path":37,"stem":38,"order":20,"icon":7,"collapse":8,"navBadges":7},"Markdown","\u002Fauthoring\u002Fmarkdown","authoring\u002Fmarkdown",{"title":40,"path":41,"stem":42,"order":25,"icon":7,"collapse":8,"navBadges":7},"HTML and bundles","\u002Fauthoring\u002Fhtml","authoring\u002Fhtml",{"title":44,"order":25,"icon":7,"collapse":8,"navBadges":7,"path":45,"stem":46,"children":47,"page":8},"Deploy","\u002Fdeploy","deploy",[48,52,56,60],{"title":49,"path":50,"stem":51,"order":6,"icon":7,"collapse":8,"navBadges":7},"Docker","\u002Fdeploy\u002Fdocker","deploy\u002Fdocker",{"title":53,"path":54,"stem":55,"order":20,"icon":7,"collapse":8,"navBadges":7},"Cloudflare Workers","\u002Fdeploy\u002Fcloudflare","deploy\u002Fcloudflare",{"title":57,"path":58,"stem":59,"order":25,"icon":7,"collapse":8,"navBadges":7},"Turso and Vercel","\u002Fdeploy\u002Fturso","deploy\u002Fturso",{"title":61,"path":62,"stem":63,"order":64,"icon":7,"collapse":8,"navBadges":7},"Backup and restore","\u002Fdeploy\u002Fbackup","deploy\u002Fbackup",4,{"title":66,"order":64,"icon":7,"collapse":8,"navBadges":7,"path":67,"stem":68,"children":69,"page":8},"Reference","\u002Freference","reference",[70,74,78],{"title":71,"path":72,"stem":73,"order":6,"icon":7,"collapse":8,"navBadges":7},"MCP","\u002Freference\u002Fmcp","reference\u002Fmcp",{"title":75,"path":76,"stem":77,"order":20,"icon":7,"collapse":8,"navBadges":7},"REST API","\u002Freference\u002Frest-api","reference\u002Frest-api",{"title":79,"path":80,"stem":81,"order":25,"icon":7,"collapse":8,"navBadges":7},"Configuration","\u002Freference\u002Fconfiguration","reference\u002Fconfiguration",{"id":83,"title":13,"aside":84,"body":85,"collapse":8,"description":273,"editLink":84,"extension":274,"icon":7,"issueLink":84,"meta":275,"navBadges":7,"navigation":7,"order":6,"path":14,"prevNext":84,"seo":276,"stem":15,"toc":84,"__hash__":277},"docs\u002Fguide\u002Fgetting-started.md",true,{"type":86,"value":87,"toc":268},"minimark",[88,92,96,104,128,133,140,189,196,202,206,209,235,242,246,264],[89,90,13],"h1",{"id":91},"getting-started",[93,94,95],"p",{},"Serangkai is a self-hosted workspace where you and your AI agents publish\ninteractive work: reports, dashboards, small HTML apps, diagrams, and charts.\nAgents write over MCP and REST with scoped, revocable permissions. You browse,\norganize, edit, and share the results from a web UI on your own server.",[93,97,98,99,103],{},"Each piece of work is a ",[100,101,102],"strong",{},"rangka",". The word is the same in the singular and\nthe plural. A rangka has its own page, folder, version history, and optional\nshare link, and it is private until you share it.",[105,106,109],"s-callout",{"title":107,"type":108},"Try it first","tip",[93,110,111,112,119,120,124,125,127],{},"The ",[113,114,118],"a",{"href":115,"rel":116},"https:\u002F\u002Fserangkai.onrender.com",[117],"nofollow","live demo"," signs in with username\n",[121,122,123],"code",{},"serangkai"," and password ",[121,126,123],{},". It is a shared sandbox that anyone can\nuse, so don't store anything sensitive there.",[129,130,132],"h2",{"id":131},"run-it-with-docker","Run it with Docker",[93,134,135,136,139],{},"One container is all you need. SQLite and uploaded files live under ",[121,137,138],{},"\u002Fdata",",\nso a volume mounted there is the only persistence to manage.",[141,142,147],"pre",{"className":143,"code":144,"language":145,"meta":146,"style":146},"language-sh shiki shiki-themes github-light github-dark","docker run -d -p 3000:3000 \\\n  -v serangkai-data:\u002Fdata \\\n  -e ADMIN_USERNAME=admin \\\n  -e ADMIN_PASSWORD='choose-a-strong-password' \\\n  -e JWT_SECRET=$(openssl rand -base64 32) \\\n  -e SHARE_SECRET=$(openssl rand -base64 32) \\\n  ghcr.io\u002Fsewadahapp\u002Fserangkai:latest\n","sh","",[121,148,149,156,161,166,171,177,183],{"__ignoreMap":146},[150,151,153],"span",{"class":152,"line":6},"line",[150,154,155],{},"docker run -d -p 3000:3000 \\\n",[150,157,158],{"class":152,"line":20},[150,159,160],{},"  -v serangkai-data:\u002Fdata \\\n",[150,162,163],{"class":152,"line":25},[150,164,165],{},"  -e ADMIN_USERNAME=admin \\\n",[150,167,168],{"class":152,"line":64},[150,169,170],{},"  -e ADMIN_PASSWORD='choose-a-strong-password' \\\n",[150,172,174],{"class":152,"line":173},5,[150,175,176],{},"  -e JWT_SECRET=$(openssl rand -base64 32) \\\n",[150,178,180],{"class":152,"line":179},6,[150,181,182],{},"  -e SHARE_SECRET=$(openssl rand -base64 32) \\\n",[150,184,186],{"class":152,"line":185},7,[150,187,188],{},"  ghcr.io\u002Fsewadahapp\u002Fserangkai:latest\n",[93,190,191,192,195],{},"Open ",[121,193,194],{},"http:\u002F\u002Flocalhost:3000"," and sign in with the username and password you\nset. There is no sign-up page: a Serangkai instance has a single owner account\nthat comes from the environment.",[93,197,198,199,201],{},"Keep the four values stable across redeployments. See\n",[113,200,79],{"href":80}," for what each one does and for the\noptional settings.",[129,203,205],{"id":204},"publish-your-first-rangka","Publish your first rangka",[93,207,208],{},"You can create a rangka from the web UI, but the usual author is an agent:",[210,211,212,218,221,232],"ol",{},[213,214,215,217],"li",{},[113,216,17],{"href":18}," over MCP. Browser OAuth is the\nquickest path for interactive clients.",[213,219,220],{},"Ask it for something concrete, such as \"write a short report on this week's\ndeploys as a rangka in Serangkai\".",[213,222,223,224,227,228,231],{},"The agent calls ",[121,225,226],{},"get_rangka_capabilities",", reads the authoring guides, and\ncreates the rangka with ",[121,229,230],{},"create_rangka",".",[213,233,234],{},"Open the workspace. The rangka is there, private, with version 1 in its\nhistory.",[93,236,237,238,231],{},"From there you can move it into a folder, edit it, ask the agent to revise it,\nor ",[113,239,241],{"href":240},"\u002Fguide\u002Fworkspace#sharing","share it",[129,243,245],{"id":244},"next-steps","Next steps",[247,248,249,254,259],"ul",{},[213,250,251,253],{},[113,252,17],{"href":18}," over OAuth, device codes, or a token.",[213,255,256,231],{},[113,257,258],{"href":33},"Learn what a rangka can contain",[213,260,261,231],{},[113,262,263],{"href":54},"Deploy somewhere other than Docker",[265,266,267],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":146,"searchDepth":25,"depth":25,"links":269},[270,271,272],{"id":131,"depth":20,"text":132},{"id":204,"depth":20,"text":205},{"id":244,"depth":20,"text":245},"Run Serangkai with Docker, sign in, and publish your first rangka.","md",{},{"title":13,"description":273},"pMWK9rrs8Y4QmZoPxcnZ6Z6PhGlEP4rLTF5qbuG6BTg",1795580564113]