Repository navigation
Conversation
- Nuxt 5 nightly + Nuxt UI + vite-hub/nuxt replace the Vite + Nitro app; server code ports as-is - Better Auth: GitHub sign-in, admin roles (admin/editor/member), API keys; first user is admin, then invite-only - D1 tables for drops, app files, and comments; uploads need a key or a session and start private - Files move from /i/ to /f/; /i/* answers 301 so old links keep working - Drops, comments, versions, apps, members, and keys APIs; MCP over Streamable HTTP at /mcp
- Dashboard shell: Drops tree (apps are folders), Agents/Members/Docs at the bottom, account menu with theme - Drops list with share switches; viewer with one tabbed side panel (Comments, Source/Files, Details), comments on text and image spots, the Notion-like editor, versions, and share links (view/comment/edit) - Agents (MCP setup, API keys), Members (invite, roles, ban), and Docs pages - Landing: rotating headline, dot grid, live drop feed, logo loop, spotlight cards, and a ViteHub self-host section - HTML drops run scripts in an opaque-origin sandbox; skill, README, and e2e cover keys, /f/, and MCP
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
vitehub-drop | 2d3f6d2 | Oct 07 2026, 11:47 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
vitehub-drop-preview | 2d3f6d2 | Oct 07 2026, 11:47 AM |
ViteHub's Rate Limit integration writes its Nitro plugin under Vite's root (app/ in Nuxt) but registers it under the project root, so Workers Builds couldn't resolve it. A local module links the two paths.
- useApi (createUseFetch) forwards the session cookie on SSR; replaces per-call headers - Layout prefs in cookies (side panel open/tab, panel sizes) so SSR matches the browser; tree state in useState - Nuxt UI: defineShortcuts, useOverlay-backed confirm/prompt dialogs instead of window.confirm/prompt, autoresizing UTextarea in the comment composer - VueUse: useClipboard (copied state), useFileDialog, useEventListener/onKeyStroke, useBase64, refDebounced, useIntervalFn, usePreferredReducedMotion, useResizeObserver, useRafFn, useMounted, breakpoints with ssrWidth - One SSR-stable clock (useRelativeNow) for relative times - Drops in the sidebar sit under a guide line so they read as children of Drops - Point app/.vitehub at .vitehub: ViteHub writes some generated files under Vite's root
- One composable per resource with its actions (useDrops/useDropActions, useDrop, useMembers, useApiKeys), like nuxt-ui-templates/chat and nuxt.com; cache patched after success, optimistic only for toggles - The drop page provides its state (createInjectionState); the viewer splits into useViewerPanel, useDropEditor, useAppFiles, useDropFrame - SSR auth guard via /api/me with a return path; useNotify for consistent toasts - UForm with valibot schemas shared with the server (shared/schemas.ts); server errors land on fields - <NuxtTime> (TimeAgo), typed route params, lazy hydration for below-the-fold landing sections - h3: defineValidatedHandler for every body, getValidatedRouterParams for ids, redirect() for /i/* - Nitro: /api/stats is a defineCachedHandler on the Worker's KV
…validation Tried nuxt-nightly 5.0.0-2610061743 (Nitro 260903, h3 2.0.1, Vapor option): production builds, but local dev breaks. Nitro now runs dev in workerd, where CommonJS deps fail, and on the Node runner ViteHub's generated middleware imports cloudflare:workers. Stay on the pinned nightly (and its cookie workaround) until ViteHub supports the new dev runner.
- Code images: Shiki tokens become a ray.so-style SVG; PNG is one stateless vite-hub/browser screenshot. No Playwright, no @cloudflare/playwright, no scraping ray.so. Old Ray theme names map to Shiki themes. - Image optimizer (Queue + Sandbox + sharp) leaves Drop: no containers, no queue, no Workers Paid needed. - One Markdown renderer: Comark on the server. /api/drops/:id returns its HTML, so the viewer shows exactly what /f/ shows (server-rendered Mermaid SVG). Deletes the hand-rolled client renderer and CDN Mermaid. - One typeset stylesheet (shared/typeset.css via ?raw); callouts styled in both places. - External libraries for small helpers: entities (escaping), mrmime (content types, kinds), pretty-bytes (sizes); drop unused prototype leftovers.
- Comark renders are cached by blob key (blobs are immutable) in the Worker's KV via defineCachedFunction; uploads warm the cache. Drop detail: ~470ms -> ~30ms locally once rendered. - Version history: one query and an in-memory walk instead of up to 40 sequential queries. - identify() resolves once per request; middleware and route share it. - Comment numbers come from max(n) instead of loading every comment. - Agent logos use @iconify-json/simple-icons (already installed) instead of copied SVG strings. - Drop the unused @better-auth/agent-auth dependency.
… evlog wide events - MCP: nitro-mcp-toolkit + h3-mcp (both protocol revisions), one file per tool/prompt in server/mcp/, Drop API keys via auth.validate, new address_feedback prompt; Docs reads the live catalog (/api/mcp) - Skills: one source (skills/) served through the MCP Skills extension (SEP-2640: skills/list, skills/get, skill:// resources, written as an h3-mcp extension plugin), Agent Skills Discovery v0.2.0 at /.well-known/agent-skills/ (digests, tar.gz archive via nanotar), and v0.1.0 at /.well-known/skills/ - Observability: evlog (Nitro v3 module), one wide event per request with user, agent, MCP method/tool, code-image and drop details; errors go through evlog; Workers Logs + invocation logs enabled - pnpm patch: h3-mcp logs the error behind a JSON-RPC Internal error - h3 2.0.1, wrangler 4.148; uploads release an unread body before a 401
…, and sign-in redirect
…quest time, race-free first admin
…d delete, byte limits, comment numbering, blob cleanup retries
…; e2e covers raw HTML sandbox and expired code images
…nd the size limit
vite-hub Bot
pushed a commit
that referenced
this pull request
Nov 18, 2026
…'s thread card, relative times, shared copy buttons, a doc header that copies at once, who dropped it, the folder's drops, and comark's side outline (#228) * chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches. * fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`. * feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative `TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12). The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24. * fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1). * chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81 vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main. * test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser * chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches 5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main. * fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close. * feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too. Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning. * test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is * fix(doc): Dropped by's pictures and the folder button keep the facts' row height * chore(doc): keep the folder row's type private, as knip asks * chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short". * ci: install Playwright's Firefox for the Firefox browser tests * test(doc): wait for the popovers' toggle event before reading aria-expanded and focus * fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes * feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5) * fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change * fix(review): review.js writes thread times with Intl.RelativeTimeFormat * docs(agents): the browser support floor and the native-first rule * chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch * fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written * fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on * fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element * fix: only signed-in readers see whose doc it is; a public link doesn't name the person who shared it * fix: Copy prompt uses Drop's copy button, so its check animates like every other copy
vite-hub Bot
added a commit
that referenced
this pull request
Nov 21, 2026
* chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches. * fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`. * feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative `TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12). The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24. * fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1). * chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81 vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main. * test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser * chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches 5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main. * fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close. * feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too. Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning. * test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is * fix(doc): Dropped by's pictures and the folder button keep the facts' row height * chore(doc): keep the folder row's type private, as knip asks * chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short". * ci: install Playwright's Firefox for the Firefox browser tests * test(doc): wait for the popovers' toggle event before reading aria-expanded and focus * fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes * feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5) * fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change * fix(review): review.js writes thread times with Intl.RelativeTimeFormat * docs(agents): the browser support floor and the native-first rule * chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch * fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written * fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on * fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element * fix: swap the copy icons without @vite-hub/ui/icon-swap.css vite-hub/vitehub#4917 removes icon-swap.css. DropCopyButton keeps vite-hub/ui's CopyButton, which swaps its icon with SwapIcon, and the doc header frame draws its own cross-fade. Pins every @vite-hub package to that branch's preview. * Fix formatting for the copy icon swap * Load the real copy icon stylesheet in viewer tests --------- Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drop becomes a new product: review what your agents plan. Agents drop docs and small apps, people comment on the exact spot and share the ones worth sharing, and the agent reads the feedback and drops the next version. Same name and repository, rebuilt on Nuxt + Nuxt UI over
vite-hub/nuxt.For agents
x-api-key: drop_…orAuthorization: Bearer drop_…), created on/agentsand named after the agent. Without one the API answers 401.POST /api/filesreturns{ id, url, page, visibility, version }, wherepageis the review page.supersedes(as a form field or in the front matter).POST /api/appspublishes a static app, with its files keyed by path./i/<key>to/f/<key>./i/*answers 301, so old links keep working./mcp, on nitro-mcp-toolkit:list_drops,read_drop,list_comments,create_doc,publish_app, plus theaddress_feedbackprompt.initializefrom older clients.skills/and served three ways:skills/list,skills/get,skill://resources;/.well-known/agent-skills/(Discovery v0.2.0: index with digests,.tar.gzarchive);/.well-known/skills/fornpx skills add.POST /api/coderenders with Shiki as SVG, and a single ViteHub Browser screenshot action makes the PNG. Images expire after five minutes. Ray.so, Cloudflare Playwright, and the image optimizer are gone.For people
server/auth.ts.Under the hood
drops,drop_files,comments; migrations inserver/databases/migrations, applied bypnpm run deploy);/f/), KV (Nitro cache for rendered Markdown), Rate Limit, Browser, Schedule (hourly code-image cleanup).defineValidatedHandlerwith Valibot schemas shared between the forms and the server.createUseFetch,useNuxtData,useOverlay,defineShortcuts, and VueUse throughout.pnpm patchthat logs the error behind JSON-RPC "Internal error".Review
Five Codex (gpt-6.1-sol) sessions reviewed security, server, MCP, frontend, and build/docs. Separate Codex sessions fixed the confirmed findings:
/f/(?raw) are served with a CSPsandbox, so they never run on Drop's origin./\hostescapes.0001)?file=is removed./SKILL.mdmatch SEP-2640's own examples.Verified
nuxt typecheckandnuxt buildpass.wrangler dev(the deployed-flow e2e):/i/→/f/301.?raw; raw HTML served with a CSPsandbox.tools/list,create_doc,skills/list,resources/read.Deploy status
Preview (
vitehub-drop-preview) is set up and deploys from this branch:vitehub-drop-previewhas migrations0000and0001applied;Legacy Sandbox Durable Object:
f715e44retires it. On this branch thevitehub-dropcheck fails becausewrangler versions uploadcan't apply Durable Object migrations;wrangler deployonmaincan.Production (
vitehub-drop) has no D1 and no secrets yet. After merging, its deploy stops at "required secrets have not been set", so drop.vitehub.dev keeps the previous version until it gets its one-time setup:wrangler d1 create vitehub-drop, then setCLOUDFLARE_D1_DATABASE_IDas a Workers Builds variable.https://drop.vitehub.dev/api/auth/callback/github.GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET, andBETTER_AUTH_SECRETonvitehub-drop.pnpm db:migrate:remoteonce (pnpm run deploydoes it too).The R2 bucket already exists, and Wrangler creates the KV namespace on the first deploy.
Not in this PR
🤖 Generated with Claude Code