AashishRichhariya/openleaf
Acerca de
A free, minimalist online notepad and rich text editor. No signup: open any URL and write.
Herramientas de desarrolloCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -1
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalopenleaf
A minimalist online editor
openleaf is a free, minimalist online notepad and rich text editor. Open any URL and start writing: no account, download or setup.
Try it out: openleaf.xyz
How It Works
- Open any address, such as
openleaf.xyz/anything-you-want. - Start typing. Your writing saves automatically.
- Share the URL, or come back to it later.
Features
Markdown shortcuts
Type a shortcut, then press space:
| Shortcut | Result |
|---|---|
#, ##, ### |
Large, medium and small headings |
- |
Bulleted list |
1. |
Numbered list |
[] or [x] |
Checklist item |
> |
Quote |
--- |
Divider |
[text](url) |
Link |
`code` |
Inline code |
``` |
Code block (on the third backtick) |
$x$ |
Inline equation |
$$x$$ |
Block equation |
Command Menu
Press / to access the command menu with all available formatting options:
- Headings (3 levels)
- Lists (numbered, bulleted, checklist)
- Tables
- Quotes
- Text alignment
- Code blocks
- Mathematical expressions
- And more
Tables
Create tables easily by either:
- Type
/tableand select from the menu - Or type
/NxM(like/3x4,/2x6,/100x3, etc.) to instantly create a table with N rows and M columns. Either number can go up to 99, or up to 500 as long as the table has at most 1000 cells
Links
Create links easily in multiple ways:
- Type
[text](url)using markdown syntax - Type any URL, such as
https://openleaf.xyzorwww.openleaf.xyz, to have it automatically detected as a link - Select text and paste a URL (Cmd+V or Ctrl+V) to turn the selected text into a link
Code blocks with syntax highlighting
Format code with syntax highlighting:
- Type
```to create a code block. It appears on the third backtick - Access code blocks via the command menu
- View line numbers for easier reference
LaTeX equations
Create mathematical expressions using LaTeX syntax:
- Click or press Enter to select an equation
- Double click or press Enter while in select mode to edit an equation
- Press Enter or click outside to save the changes
- Supports both inline and block equations
Checklists
Keep track of tasks with checkable lists:
- Open a URL
- Write
- Share the link
Philosophy
openleaf is designed with simplicity in mind:
The best tool is the one that gets out of your way.
The goal is to provide a writing space that's instantly available when needed, without barriers or complexity. Sometimes all you need is a quick place to jot down thoughts or draft something up.
Privacy & Security
By design, openleaf is open and accessible. This means:
- Anyone with the URL can view and edit your content
- Nothing is private by default
- Choose obscure URLs for reduced discoverability
- Don't store sensitive information
- For extra security, clear the editor content after you're done if you don't want others to access it later
Use Cases
Good for:
- Quick notes while browsing
- Drafting emails or messages
- Temporary information sharing
- Collaborative brainstorming
- Instant document creation
Not suited to:
- Private/confidential information
- Long-term document storage
The project
openleaf is in beta and released regularly; each release is listed on GitHub Releases. To report a bug or request a feature, open a GitHub issue.
openleaf is open source under the GNU AGPL v3. Bug reports and ideas are welcome; code from others isn't accepted for now (see CONTRIBUTING.md).
Technical Details
openleaf is built with Lexical (editor framework), Next.js and React, KaTeX (equations), Tailwind CSS and DynamoDB (storage).
Installation
# Clone the repository
git clone https://github.com/AashishRichhariya/openleaf.git
# Navigate to the project directory
cd openleaf
# Install dependencies
pnpm install
# Run the development server, against a local database (needs Docker)
pnpm dev:local
pnpm dev:local starts DynamoDB Local in Docker if it isn't running, and runs the development server against it,
whatever .env.local holds.
Logging
openleaf logs errors, warnings and information from the server and the browser, as structured events. Each event
is one JSON line on the server's console (Vercel's runtime logs, pnpm dev), and, when an OpenTelemetry endpoint is
set, a log record sent there over OTLP/HTTP JSON, after the response has gone: no response waits for it. There is no OpenTelemetry SDK: the
encoder is server/log.ts, and any OTLP backend works.
Never logged: document content, IP addresses and tab ids. Slugs are logged, as documents are public.
| Variable | What it does |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT |
Where records go (<value>/v1/logs). Unset, as in pnpm dev: only the console |
OTEL_EXPORTER_OTLP_HEADERS |
Its headers: comma-separated key=value pairs, values URL-encoded, such as Authorization=Basic%20<base64 of user:token> |
VERCEL_ENV, VERCEL_GIT_COMMIT_SHA, VERCEL_REGION |
Set by Vercel. They become the labels deployment.environment.name (local without it), vcs.ref.head.revision and cloud.region |
Every record also carries service.name=openleaf and service.version. Everything else is an attribute of the record.
Server events:
| Event | Level | When | Fields |
|---|---|---|---|
document.save |
info; warn if refused or over 1 s | every save request | slug, status, kind, bytes_in, bytes_stored, attempts, rcu, wcu, duration_ms, cold_start |
document.load |
info; warn if over 1 s | every document page that renders | slug, found, read_only, bytes_stored, rcu, duration_ms, cold_start |
slug.create |
info; warn if no free slug was found | the home page picking a new slug | slug, attempts, fallback, rcu |
legacy-save |
warn | every save from a tab opened on 0.3.0 | slug, result |
dynamo.error |
error | any DynamoDB error but a failed condition, or content too large to store (a too-large save) |
op, name, message, slug |
save.unreadable |
error | stored content that can't be read | slug |
save.stale-loop |
error | a document that kept changing while it was saved | slug, attempts |
request.error |
error | any error the server doesn't handle | path, method, route_type, name, message, stack, digest |
A save's status is saved, conflict or resend (info), or invalid, too-large, read-only, forbidden,
unsupported or error (warn). rcu and wcu are the units DynamoDB reports for the request, summed over its
calls; a write refused by its condition costs units too, but DynamoDB doesn't report them, so they are not counted.
bytes_stored is the compressed content's size, 0 for an empty document or one still stored as 0.4.1 stored it.
Browser events, sent to /api/log and logged with the page's path, the browser's family and major version
(ua) and its country:
| Event | Level | When | Fields |
|---|---|---|---|
client.error |
error | an uncaught error | message, stack, source, line, col, slug |
client.rejection |
error | an unhandled promise rejection | message, stack, slug |
editor.error |
error | an error inside the editor | message, stack, slug |
save.failed |
warn | each failed save | slug, reason (network, http-<status>, invalid, too-large, unhandled), attempt, online |
save.stuck |
error | saves failing for over 2 minutes, once until they recover | slug, since_ms, attempts |
save.recovered |
info | the first save that lands after failures | slug, outage_ms, attempts |
A tiny inline script in the page keeps errors from the first byte. The code that sends them loads after the page, like the analytics, so the first load is unchanged. A tab sends at most 20 events, 10 of any one kind, each error once, with strings cut to 1 KB.
License
Copyright (C) 2025-2026 Aashish Richhariya
openleaf is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 only.
openleaf is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with openleaf, in LICENSE. If not, see https://www.gnu.org/licenses/.
Code adapted from Lexical and Tailwind CSS keeps its own license: see THIRD_PARTY_NOTICES.md.
Trademarks
"openleaf" and the openleaf logo are trademarks of Aashish Richhariya. They are not licensed under the AGPL: see TRADEMARKS.md. Forks must use another name and logo.
Explorar proyectos relacionados
Cargando…