Aa 0.14.1

Overview

Aa is a text editor for apps. People write formatted text; the app stores Markdown. Nothing is converted on the way and nothing is lost, so what is written in Aa reads the same anywhere Markdown is read.

A note, written in Aa

Write in it: select words for the toolbar, type / for the kinds of block, and watch the Markdown beside it.

What it stores

  • The document is Markdown. The editor’s value is a Markdown text, and every change is reported as one. A heading, a bold word or a ticked box is written into the text as Markdown writes it.
  • No syntax is shown. A heading is its size, never its #. Typed shortcuts such as ## or ** turn into formatting, and the toolbar and the keys format without writing syntax at all.
  • One editable block at a time. Each paragraph, heading or bullet is its own editable element, as in Notion. The browser types, spells and composes; Aa decides what Enter, Backspace, paste and undo do.
  • Drawn as Design system 1’s prose. A line a square, a square between blocks, two before a heading: writing in Aa and reading it on a page look the same. See Design system 1.
  • A library, not a service. Uploads, people, permissions and AI calls stay with your app. Aa asks for them through its options.
GroupPages
WritingFormatting, Links, Headings and paragraphs, Lists and boxes, Quotes and code, Callouts and toggles, Tables, Columns, Tabs, Equations, Pictures and media
EditingToolbar, Slash and block menus, Selecting and moving, Undo, Find and replace, Keyboard, On a phone
AIAsking AI, Correction while writing
TogetherComments, Shared editing
DiagramsDiagrams, Drawing on the board, The language
BuildingOptions, Methods and events, Atoms, Commands, Decorations, Styling, Plain text

The front page is the editor itself: a note, then a page as Notion’s are, with pictures, a table, columns and a diagram to carry about.

The core imports neither React nor Yjs. Each optional part is its own entry, loaded only by the apps that use it.

EntryWhat it holds
@0001-labs/aaThe editor, <aa-editor>, the Markdown model and comments
@0001-labs/aa/aa.cssThe editor’s stylesheet, which the editor already brings; import it only to have the rules before any script runs, or under a strict Content Security Policy
@0001-labs/aa/reactAaEditor, for React
@0001-labs/aa/collaborationconnectCollaboration, shared editing on Yjs
@0001-labs/aa/convex and /convex.configA Convex transport and component for shared editing
@0001-labs/aa/diagramDiagrams drawn in the editor, and <aa-diagram>
@0001-labs/aa/diagram-languageThe diagram language alone, for a page or a server that only reads diagrams
@0001-labs/aa/markerCharts in diagrams, loaded only when a diagram has one