[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116643":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":17,"lastSyncTime":33,"discoverSource":34},116643,"grok-bot-3d-campus","sarbarshem\u002Fgrok-bot-3d-campus","sarbarshem","A 3D campus for your Grok Bot teams: walk into each team's room, see what every bot is working on, where the credits go, and approve their work. Give the repo link to your main Grok Bot and it builds it for you.","https:\u002F\u002Fgrok-bot-3d-campus-demo.vercel.app",null,"TypeScript",54,19,51,0,3,2,45.64,"MIT License",false,"main",[23,24,25,26,27,28],"3d","ai-agents","dashboard","grok-bot","nextjs","threejs","2026-11-06 22:45:41","2026-11-21 21:23:38","# Grok Bot Control Center (demo)\n\n\u003C!-- LAUNCH DAY: replace sarbarshem (here and in skill\u002FSKILL.md): sed -i 's\u002Fsarbarshem\u002F\u003Cgithub-owner>\u002Fg' README.md skill\u002FSKILL.md -->\n**REPO_URL = `https:\u002F\u002Fgithub.com\u002Fsarbarshem\u002Fgrok-bot-3d-campus`** · Live demo: https:\u002F\u002Fgrok-bot-3d-campus-demo.vercel.app\n\n> **For a Grok Bot asked to build this:** the build instructions are in [`skill\u002FSKILL.md`](skill\u002FSKILL.md). Read the safety\n> model below and in the skill, check the code yourself, and show your user the plan (SKILL section 0) before you build.\n\nA 3D \"mission control\" for a company of AI agents: every team gets a room on a small campus, you can\nsee who is working on what, what is waiting for your approval, which scheduled tasks run next and how\nmuch of the weekly usage each team takes, and you can send commands back with one click.\n\n**Built with Grok Bot.** The real version runs privately and is fed by the owner's main Grok Bot, which\ncoordinates 9 teams of bots. This repo is a **demo with invented data**: the teams, agents, tasks,\napprovals and numbers are all made up, and no button contacts anything.\n\n## Why it's built this way (safety model)\n\n- **What it reads:** your main bot reads its own team chats and your other bots' transcripts, read-only, plus routines and usage.\n  It never creates, changes or deletes a bot or team.\n- **What goes online:** one JSON file the bot writes: team and bot names, what each works on, task titles, items waiting for\n  your approval, routine schedules and usage %. No full chats or files. It's stored privately in **your own** Vercel account.\n- **Who can open it:** only someone with your private link (a random token). Everything else returns 404, and search engines\n  are told not to index it. You can add a Vercel login on top for free on any plan (SKILL section 10.1).\n- **Who can act:** buttons send requests to your main bot, signed with a key only you paste in. The bot decides. Anything that\n  publishes, sends outside, spends, deletes or approves one of those, it confirms with you in chat first.\n- **What you approve:** a short plan before it starts, the Vercel connection, and a routine card only when a tool raises one.\n- **Verify it:** MIT. The private backend is about 380 lines in [`skill\u002Freference\u002F`](skill\u002Freference\u002F); start with `lib\u002Fauth.ts`\n  and `app\u002Fapi\u002Fsend\u002Froute.ts`. This demo uses invented data and sends nothing.\n\n![Campus](screenshots\u002Fdemo_home_1440x900.png)\n\n| Inside a team room | Approvals and a sent command |\n|---|---|\n| ![Room](screenshots\u002Fdemo_inroom_1440x900.png) | ![Sent](screenshots\u002Fdemo_sent_1440x900.png) |\n\n| Tablet \u002F foldable (884×1104) | Phone (390×844) |\n|---|---|\n| ![Fold](screenshots\u002Fdemo_home_884x1104.png) | ![Phone](screenshots\u002Fdemo_home_390x844.png) |\n\n### Every UI state\n\nAll interactive states are in [`screenshots\u002Fstates\u002F`](screenshots\u002Fstates\u002F), at desktop 1440×900 and on a tall\u002Fsquare 998×1024 screen.\nThe open Galaxy Z Fold 5 is 884×1104. Its campus view follows the same tall-screen rules, but inside a room it switches to the portrait room layout (see `screenshots\u002Fdemo_inroom_884x1104.png`).\nA few of them:\n\n| Battery → who uses credits | Room card before entering |\n|---|---|\n| ![Battery](screenshots\u002Fstates\u002F05-hud-battery-usage_1440x900.png) | ![Room card](screenshots\u002Fstates\u002F18-room-card-before-enter_1440x900.png) |\n| **Room hover card** | **Inside the room** |\n| ![Hover](screenshots\u002Fstates\u002F02-room-hover-tooltip_1440x900.png) | ![Inside](screenshots\u002Fstates\u002F24-inside-room_1440x900.png) |\n| **Room battery → team usage** | **Clock tower (scheduled tasks)** |\n| ![Team usage](screenshots\u002Fstates\u002F25-inside-room-battery-usage_1440x900.png) | ![Clock](screenshots\u002Fstates\u002F06-hud-clock-scheduled_1440x900.png) |\n| **Approve → sent to the bot** | **What's new since your last visit** |\n| ![Sent](screenshots\u002Fstates\u002F14-sent-to-bot-toast_1440x900.png) | ![New](screenshots\u002Fstates\u002F07-hud-whats-new_1440x900.png) |\n\nThe full list with triggers is in [`skill\u002FSKILL.md`](skill\u002FSKILL.md#ui-states-reference-match-these-exactly).\n\n## Features\n\n- **3D campus** (three.js): one room per team, 6 around the plaza and frozen teams in a side wing.\n  Extra teams get generated rooms, and the camera re-frames to fit them. Orbit\u002Fzoom, minimap, keyboard shortcuts (`1–9` rooms, `]`\u002F`[` next\u002Fprevious team,\n  `\u002F` search, `Esc` back, `?` help). SVG fallback when WebGL is missing.\n- **Team rooms**: walk in and look around. Lead and member bots at their desks, a task board\n  (to do \u002F in progress \u002F done), a live activity screen, a goal gauge, a usage battery and a\n  scheduled-tasks panel with live countdowns and failure alerts.\n- **Approvals tray**: approve, reject or ask about any pending item; queue several and send them\n  together. In the real app they go to the main bot through a webhook; in the demo a browser-only simulation plays the team's reply (nothing is sent anywhere).\n- **Live feed and HUD**: in-progress list, approvals window, usage %, next routines, \"what changed\n  since your last visit\".\n- **Refresh**: ⟳ reloads the data now and, in the real app, asks the bot to rebuild it (at most once\n  every 5 minutes), then polls until the new data lands. In the demo the same steps are simulated in the browser and the invented data changes (new feed items, tasks moving, counters).\n- **Updates in the real app**: every update is a full refresh of bots and teams, tasks, approvals, routines and usage, all at once.\n  There are three refresh triggers. On a significant team event, your main bot records the oldest unflushed change and, if no timer\n  is pending, creates one dated one-off routine for ten minutes later. Later events share the pending timer; they do not restart it.\n  The timer runs the full-refresh procedure, then deletes itself and its pending-timer state file. A timer that would fall in your\n  quiet hours or days is not created; the chosen scheduled backup refresh catches up. With no significant events, no event timer runs.\n  Scheduled backups can still run on quiet workdays. That backup is the cadence you choose (hourly, every few hours, daily), and only\n  if you want one: your main bot asks once, after it sends the link. The page's refresh button remains immediate, subject to the\n  existing five-minute dedupe. Commands still reach the bot immediately and keep all existing approval safeguards: they reach your\n  main bot and the team's lead right away, and the bot tells you in one line what went to whom. One that would publish, send outside,\n  spend or delete waits for your yes in chat.\n  Only the page's display of that result waits for the one-off timer, about ten minutes after the oldest unflushed change. If no timer\n  was created because the time falls in your quiet hours or days, the display waits for the scheduled backup. Pressing ⟳ shows it\n  right away, subject to the same five-minute dedupe.\n- Responsive: desktop, foldables and phones.\n\n## Run locally\n\nRequires Node 20+.\n\n```bash\nnpm ci\nnpm run dev                # http:\u002F\u002Flocalhost:3000\n# or a production build:\nnpm run build && npm start\n```\n\nOptional: `NEXT_PUBLIC_TIMEZONE=Europe\u002FBerlin npm run dev` to show times in your zone (default UTC).\n\n## Demo vs. the real thing\n\n| | Demo (this repo) | Real app |\n|---|---|---|\n| Data | `lib\u002Fdemo-data.ts`, generated relative to now | JSON in a private Vercel Blob, pushed by the main bot |\n| Access | open | private link `\u002F\u003Ctoken>` → signed httpOnly cookie, everything else 404; optional Vercel login |\n| Buttons | simulated in the browser: \"sent\", then the team's follow-up appears in the feed | `POST \u002Fapi\u002Fsend` → the bot's webhook routine → team leads |\n| Refresh | simulated: \"request sent\" → \"the bot is reading the team chats\" → new data | reload + webhook \"refresh\" (once per 5 min) + polling |\n| Updates | none (invented data) | always a full refresh: one dated one-off timer about ten minutes after the oldest unflushed team event (later events share it; skipped in quiet hours or days, when the scheduled backup catches up), an optional schedule you choose, or ⟳ |\n| New bots \u002F teams | fixed demo teams | each refresh re-reads every bot and group: new bots join their team's room, new teams get their own room |\n\n## Build your own\n\nPaste the repo link to your main Grok Bot and say: **\"Build me this control center from this repo: https:\u002F\u002Fgithub.com\u002Fsarbarshem\u002Fgrok-bot-3d-campus\"**\n\nIt first shows you a short plan (what gets deployed where, what the page shows, which routines it creates, what the buttons\ncan do) and waits for your yes. Then approve the connections and any routine card a tool raises, and paste the routine's webhook URL and sender key on your app's private `\u002Fsetup` page\n(the bot sends you that link; it never sees, reads or sets the key). At the end it asks whether you also want a scheduled refresh, and how often.\nThe bot downloads the repo and does the rest by following [`skill\u002FSKILL.md`](skill\u002FSKILL.md): it maps every bot and team you\nalready have (it never creates or changes them), reads your teams' chats quietly, deploys a private copy to your Vercel, wires the buttons back to itself, checks that it looks like the demo, and sends you your private link.\n\n## What it costs to run\n\nPage views and polling the saved JSON use no Grok Bot usage. Hosting can cost $0 on Vercel's free plan with private Blob storage, within its free allowances. Reading chats and refreshing the data use your subscription's usage.\n\n### Cost by part\n\nThese rough figures use a reference setup of about a dozen teams. Percentages mean portions of a full Super weekly limit, not shares of the work your bots do.\n\n| Part | Rough cost against a Super weekly limit |\n|---|---|\n| Full refresh | ≈0.4% per refresh. Scheduled backups and one-off timers run the same full-refresh procedure. Your cost depends on your teams and chat volume. |\n| Setting a timer | A scheduling step within the main bot's group turn; no separate per-timer figure. Include it with group reading. |\n| Reading group messages | No reliable per-message figure. If your main bot already reads these groups to coordinate teams, this is reading it does anyway. Adding it to more groups for the campus adds reading work. |\n| Pressing ⟳ | ≈0.4% for the requested full refresh, plus webhook handling. The existing refresh limit and dedupe can skip a repeat request. |\n| Sending a page command | No reliable per-command figure. Combined page-webhook activity is under roughly 0.7% of the weekly limit in the reference usage sample; that aggregate includes commands and refresh requests. Work a command starts in other bots costs extra. |\n| Viewing the page or polling JSON | 0% Grok Bot usage. |\n| Hosting | 0% Grok Bot usage; $0 within Vercel's free-plan and private Blob allowances. |\n\nA significant team event sets one one-off timer for ten minutes later. Later events share it, so a batch costs one full refresh rather than a refresh per message. A later batch needs another refresh. Quiet hours or days defer event refreshes; the scheduled backups you choose still run at their scheduled times.\n\n### Weekly budget examples\n\nUse this rough formula, with every term expressed against the full weekly limit:\n\n```text\nWeekly cost ≈ (backup runs + event batches + manual ⟳ refreshes) × 0.4%\n              + command\u002Fwebhook handling + group reading and timer setup\n```\n\nCount refreshes that actually run after dedupe. The reference webhook aggregate is not a per-command price or a fixed weekly surcharge. Do not add it on top of refresh costs without separating any refresh work already included.\n\nThe examples below assume six active days, no manual ⟳ refreshes or commands, and the same ≈0.4% refresh cost throughout. They show arithmetic for chosen workloads, not a forecast of how many batches your teams will produce. The totals cover refreshes only; add group reading, timer setup and any webhook handling for the full cost.\n\n| Example | Assumed scheduled backups | Assumed event batches | Refresh subtotal |\n|---|---|---|---|\n| Quiet | 4\u002Fday × 6 days = 24 | 0 | 24 × 0.4% ≈ 9.6% |\n| Normal | 4\u002Fday × 6 days = 24 | 3\u002Fday × 6 days = 18 | (24 + 18) × 0.4% ≈ 16.8% |\n| Busy | 4\u002Fday × 6 days = 24 | 8\u002Fday × 6 days = 48 | (24 + 48) × 0.4% ≈ 28.8% |\n| Fewer backups, normal activity | 2\u002Fday × 6 days = 12 | 3\u002Fday × 6 days = 18 | (12 + 18) × 0.4% ≈ 12% |\n\nA quiet day has no event refreshes, but each scheduled backup you chose still costs a refresh. On busy days, chat length can increase the cost of each refresh as well as the number of batches. A constant rate is only a budgeting shortcut.\n\n### Keep it cheap and check your own cost\n\nChoose fewer backup times, set quiet hours or days, or put fewer teams on the page. You trade fresher or broader coverage for less reading. Use ⟳ when you need an update instead of adding scheduled backups you rarely need. Page commands can start substantial team work, so include that work when comparing costs.\n\nAsk your main bot to check subscription usage by routine and activity, or open the usage view. Compare a full week at your chosen settings with your usual workflow. Include group reading and command-triggered work, not just refresh routines. If the view shows shares of Grok Bot usage, multiply each share by Grok Bot's portion of the weekly limit to put it on the same basis as the figures above. Reading the campus can replace status requests, but there is no fixed saving percentage.\n\n## Tech\n\nNext.js 16, React 19, three.js 0.187. No backend services in the demo.\n\n## License\n\nMIT. Free to use, copy and modify; see [LICENSE](LICENSE).\n","这是一个面向AI代理团队的3D可视化管控平台，为多支Grok Bot团队构建虚拟校园式仪表盘。用户可沉浸式进入各团队专属房间，实时查看任务进展、待审批事项、资源配额使用率及调度计划，并通过安全签名机制向主Bot发送指令。项目基于Next.js与Three.js实现响应式3D交互界面，采用MIT协议，强调隐私保护——所有数据仅由用户自有Grok Bot读取并生成脱敏JSON，存储于私有Vercel环境，不上传原始对话或文件。适用于需要直观协同管理多个AI代理团队的中小规模研发组织。","2026-11-24 04:54:08","CREATED_QUERY"]