A Paper Typesetting Editor
⚠️ Under Construction
For the old version, please check out the repo: Eorg.
For
v1of SoftMaple, please check out themainbranch.

Softmaple is a collaborative $\LaTeX$-flavoured document editor. Each layer below is its own workspace package — here is the path a keystroke takes from the browser to durable storage:
Browser
apps/web · apps/playground
│
┌─────────────────────────┼──────────────────────────────┐
│ │ │
@softmaple/editor @softmaple/binding-lexical @softmaple/awareness
Lexical UI shell Lexical ↔ block model ephemeral presence
│ │
@softmaple/block-model │
blocks · marks · event batches │
│ │
@softmaple/eg-walker │
event graph · CRDT convergence │
│ │
RichTextEventBatch on the wire │
│ │
@softmaple/collab-protocol │
versioned wire messages │
│ │
@softmaple/collab-runtime ──PresenceCodec──┘
DocumentRoom / PresenceRoom semantics
┌────────────┴────────────┐
│ │
Node/Nitro Cloudflare
apps/collab-nitro apps/collab-cloudflare
│ │
Redis Durable Object
pub/sub · leases hibernatable room
│ │
└────────────┬────────────┘
│
Supabase/Postgres
durable event log
The diagram is ordered by data flow, not by import direction — a package drawn
lower is not necessarily the one being imported. The actual import graph is
enforced by shared ESLint rules
(packages/eslint-config/collaboration-layers.js):
@softmaple/block-model imports @softmaple/eg-walker, and
@softmaple/collab-protocol imports @softmaple/block-model — never
@softmaple/eg-walker directly — so the protocol validates the batches it
carries without depending on the sequence CRDT.
Awareness stays independent of every convergent document model and meets the
bindings only inside an app. @softmaple/collab-runtime hosts PresenceRoom
but never imports @softmaple/awareness — the labelled edge above is the
payload-opaque PresenceCodec seam, and a host app is what binds the two.
Both collaboration runtimes host the same @softmaple/collab-runtime
semantics and write the same Postgres event log, so a document can move between
them without a history migration.
Design source of truth:
docs/design/collaboration-layers.md ·
collaboration-consistency.md ·
collaboration-runtime.md ·
collaboration-operations.md.
apps
app folderpackages
[P3] eg-walker: range delete targets, numeric YATA tie-breaks, and local structural-op counters
https://github.com/softmaple/softmaple/issues/1015
Labels: 없음
[P3] eg-walker: prototype struct-of-arrays replay records without stored content
https://github.com/softmaple/softmaple/issues/1014
Labels: 없음
[P2] eg-walker: report exact operations from batch, partial and full replay
https://github.com/softmaple/softmaple/issues/1013
Labels: 없음
[P2] eg-walker: end typed runs at GraphRuns boundaries so retreat/advance stop splitting records
https://github.com/softmaple/softmaple/issues/1012
Labels: 없음
[P2] eg-walker: locate an insert once with an IndexedSequence cursor instead of repeated root-down lookups
https://github.com/softmaple/softmaple/issues/1011
Labels: 없음
eg-walker structural performance experiments (tracking)
https://github.com/softmaple/softmaple/issues/1010
Labels: 없음
Upgrade to TypeScript v7
https://github.com/softmaple/softmaple/issues/825
Labels: 없음
authorization /app/action
https://github.com/softmaple/softmaple/issues/248
Labels: 없음
First off, thanks for taking the time to contribute!
The following is a set of guidelines for contributing to SoftMaple and its repos, which are hosted in the SoftMaple Organization on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
This project and everyone participating in it is governed by the SoftMaple Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to zhyd007@gmail.com.
Fill the required template.
Fill the required template.
Please follow these steps to have your contribution considered by the maintainers:
next using git rebase (not git merge).When the next branch has new commits, update your feature branch using rebase:
# Fetch latest changes from remote
git fetch origin
# Rebase your branch onto the latest next
git rebase origin/next
# If there are conflicts, resolve them and continue
git rebase --continue
# Force push to update your branch (if already pushed)
git push --force-with-lease
Why rebase instead of merge?
Follow these types: https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type
and then append your commit message details, for example:
docs: added community standards.
JavaScript and TypeScript code is formatted with Biome and linted with ESLint.
There are 2 ways to submit a PR, the normal is Fork the repo and another is to be the collaborator.
If you forked the repo and submit a PR, there is no branch name limitation, otherwise, please use this convention:
<username>-<app>-issue-<issue-number>
for example, yadong-editor-issue-60.
Whatever you contributed, if the PR is merged, I will invite you as the repo collaborator.