carbonpaper
ai document editor
a document editor with an ai assistant beside it. you write normally, ask for an edit, and every suggestion arrives as a tracked change you can accept or reject.
built with next.js and a custom contenteditable editor, with openai behind a single /api/process route that serves both questions about the document and proposed edits to it.
sections
1 of 4
the editor
a real document surface, not a chat window with text in it.
fonts, sizes, colors, alignment, and lists all work as expected. documents sit in a file explorer with autosave and version history, so a suggestion you regret is recoverable.
the editor is a custom contenteditable implementation rather than a third-party sdk, because tracked changes need precise control over selection ranges and how they map back to the document after an edit.
arrow keys move between sections.
the editor is deployed. open a document, select a passage, and ask for an edit.
running it locally requires an openai api key.