whatisgithub

What is stet?

filu123/stet — explained in plain English

Analysis updated 2026-07-25

4TypeScriptAudience · writerComplexity · 3/5LicenseSetup · moderate

In one sentence

A document editor where AI marks up your text with highlights and margin notes instead of rewriting it. Your files stay local, and you paste your own AI API key.

Mindmap

mindmap
  root((repo))
    What it does
      AI markup editor
      Accept or reject marks
      Margin notes and highlights
    Document features
      Rich text and lists
      Paginated A4 or Letter
      Export Markdown Word PDF
    Data and privacy
      Files on local disk
      No account or server
      BYO AI API key
    Tech stack
      TypeScript
      Next.js
    License
      GNU AGPL 3.0
      Share modified services

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Edit and review long-form writing with AI-assisted margin notes instead of auto-rewrites.

USE CASE 2

Export documents to Markdown, Word, PDF, or HTML from a local-first editor.

USE CASE 3

Self-host a private document editor with no telemetry or accounts.

What is it built with?

TypeScriptNext.js

How does it compare?

filu123/stet0labs-in/vision-linkadarsh-me/image-sdk
Stars444
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencewriterdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Runs as a local web app built with Next.js and requires your own API key from a provider like Anthropic or OpenAI to enable AI review features.

You can use, modify, and self-host freely, but if you offer a modified version as a network service you must share your source code under the same license.

So what is it?

Stet is an open source document editor that treats AI the way a human copy editor treats a manuscript. Instead of silently rewriting your prose in a chat window, the AI places visible marks on your text: highlights, circles, wavy underlines, and margin notes. You see each suggestion and decide whether to accept it, so the document only changes when you agree. The project is built with TypeScript and Next.js and runs as a local web app on your machine. The editor itself supports the kinds of elements you would expect from a rich text tool: headings, lists, quotes, code blocks, links, images, and page breaks. You also get human markup tools for highlighting, colored underlines, and circling passages, plus a notes panel for comments anchored to specific text. Documents can be viewed in continuous or paginated layouts (A4 or Letter), and there are several themes including light, dark, midnight, reading, and forest. Export options cover Markdown, Word, HTML, plain text, and PDF, and you can import from Markdown, text, HTML, and Word files. A central design choice is that your documents are plain files stored on your disk, in a folder called Stet inside your home directory by default. Each document is saved as a JSON file alongside a readable Markdown sibling, and folders become real subdirectories. There is no account, no server holding your data, and no telemetry. The app itself acts as the local server that reads and writes that folder, and if you deploy it to a host with no persistent disk, it falls back to storing documents in the browser instead. To use the AI review features, you paste your own API key from a provider such as Anthropic, OpenAI, or Gemini. The key is stored only in your browser's local storage and is sent directly to the provider you chose when you run a review. It never goes to a Stet server, because there is no Stet server. The only text that leaves your machine is what you send to your AI provider, under that provider's own privacy policy. The project is licensed under the GNU AGPL 3.0, which means anyone can use, study, self host, and modify it. If you run a modified version as a network service, you must share the source under the same terms. The maintainer reviews every change and asks that contributors open an issue to discuss ideas before sending a pull request.

Copy-paste prompts

Prompt 1
I want a document editor where the AI acts like a copy editor and leaves marks I can accept or reject. How do I set up Stet locally and connect my OpenAI or Anthropic API key?
Prompt 2
Help me configure Stet to run on a cloud host without a persistent disk. How do I enable browser-only storage fallback for my documents?
Prompt 3
I want to contribute to the Stet editor. What issues are open and what is the maintainer's process for reviewing pull requests before I submit code?
Prompt 4
Show me how to import my existing Word or Markdown documents into Stet and switch between paginated A4 and continuous layouts.

Frequently asked questions

What is stet?

A document editor where AI marks up your text with highlights and margin notes instead of rewriting it. Your files stay local, and you paste your own AI API key.

What language is stet written in?

Mainly TypeScript. The stack also includes TypeScript, Next.js.

What license does stet use?

You can use, modify, and self-host freely, but if you offer a modified version as a network service you must share your source code under the same license.

How hard is stet to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is stet for?

Mainly writer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.