One last look, ship away

Review, understand and verify your agent's work.

Download for Mac
Overview

feat: a page for each post, read from markdown

Each post now has its own page at /blog/<slug>. The page reads the post from a markdown file, turns it into html, and cleans the html before it renders.

Conversation2
1Main change
Read a post from its markdown file
getPost builds the path, refuses one outside the posts folder, and reads the file.
Find a post by its slug
Joins the slug to the posts folder and reads the post, or returns null.
Path checkReturns null when the path does not start with the posts folderReadReads the file as utf8, and returns null when the read failsResultReturns the slug and the html that toHtml makes
TSlib/posts.ts+6 −1More
Clean the html before it is used
toHtml waits for marked, then cleans its output with sanitize.
OrderCleans the html that marked returns, not the markdownResultReturns the cleaned html in place of the raw output
TSlib/markdown.ts+2 −1More
Unchanged callers1
generateStaticParamsapp/blog/[slug]/page.tsxuses getPost
2UI
Render the post page
The page asks getPost for the post and renders its html.
1 to check
Show the 404 page for a missing post
The page reads the post with getPost, and shows the 404 page when there is none.
LookupCalls getPost in place of fetchPostMissing postCalls notFound when getPost returns null
TSX[slug]/page.tsx+2 −1More
Render the post as cleaned html
Renders the post's cleaned html inside an article, in place of the raw content.
MarkupAn article with the prose class replaces the divHtmlSets post.html with dangerouslySetInnerHTML
TSXcomponents/PostBody.tsx+3 −11More

Bring your favourite agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • opencode
  • Claude Desktop
  • Codex
  • herdr
  • Ghostty
  • Superset
  • Cursor

Wherever you work

Your agents share a canvas.review URL when they're done working.

Your fav review bots too

Review bots, teammates and your local or cloud agents, all on one canvas, so you sign off with the full picture.

coderabbitai[bot]2 h agogithub

Read errors other than a missing file become a 404.

Return null only for ENOENT, and rethrow the rest.

Also Greptile, Devin Review, Cursor Bugbot and Copilot.

Understand, challenge, fix, ship.

Review your agent’s output faster.

Download for Mac