Release notes
This page lists each version of Datanotes, newest first. Datanotes follows semantic versioning: a major version can break what you rely on, and its notes list those changes first. The package is on npm, and each version has a GitHub release.
3.10.0
Section titled “3.10.0”Datanotes 3.10.0 adds row_history, the version history of one row. No operation, argument or setting goes away.
See who changed a row
Section titled “See who changed a row”See who changed a row shows it at work.
- Who and when:
createdandlast_modifiedgive the time, the operation and the agent (actor: session, harness, model, tool and credential). - Every version: each one lists the columns it changed, from what to what, and the lines of the body it removed and added.
- Hand edits: a change made outside the engine, in an editor, through git or a sync, has
source: externaland no agent. - Renames and moves: the engine follows the row by its id, so a rename gives
old_pathand amove_rowsgivesfrom_table. - Deleted rows: the history stays, found by any path the row had or by its id.
- Nothing new in the note: the engine reads it from the table’s transaction log, so it needs history on.
- Paging:
limit,sinceandbefore, withnext_beforefor the next page.
Limits
Section titled “Limits”- Vacuumed logs: a row whose oldest versions were vacuumed has
created: null, andhistory_start.truncatedsays where its history starts. - Rows without an id: the engine follows them by path, so a rename starts a new history.
Datanotes 3.9.0 lets a column’s aliases stand for the column in reads and writes. No operation, argument or setting goes away.
Aliases stand for their column
Section titled “Aliases stand for their column”Use a column’s aliases in reads and writes shows them at work.
- Reads:
select_rowstakes an alias incolumns,expand,where,order_by,group_by,aggregatesandjoin. Views and time travel resolve it too. - Writes:
insert_row,update_row,update_rows,delete_rows,merge_rows,move_rows,adopt_rowsandbatchtake an alias wherever they take a column name. - Answers keep the real name:
columns: ["name"]on a task whosetitledeclares the aliasnamereturnstitle. - Real names win: an alias equal to a column, a field or a file column never redirects.
- Ambiguous aliases: an alias that two columns declare maps to neither. Naming it is refused, with both columns in the message.
- One column, one key: a write that names a column twice, as itself and by an alias, is refused.
- Better hints: an unknown column suggests first the column whose alias or label matches, then a near spelling.
Before you update
Section titled “Before you update”- Programs: a read or a write that named an alias and got “unknown column” now succeeds. Nothing else changes.
- CHECKs and
ref_where: they still name real columns only, so a rename or a drop still finds every rule that reads a column.
Datanotes 3.8.0 keeps a named token’s grants on a table when you rename or move it, removes a schema left empty and lets set_table_bases take over a table’s own ref: self column. No operation, argument or setting goes away.
Tokens follow a renamed table
Section titled “Tokens follow a renamed table”A renamed table keeps its grants explains the rules.
- Exact names follow:
alter_tablerenames a table or moves it to another schema or catalog. Each exact name in a token’sreadorwritebecomes the new name. - Patterns stay:
catalog.schema.*,catalog.*and*still match by name. - Undo follows back:
undo_migrationof the rename puts the tokens’ lists back exactly as they were. - A restart catches up: a stop between a rename and the save of
tokens.jsonloses nothing. The next start follows the journaled renames. tokens_followed: a new answer field of the writes, in the owner’s answer. It lists the tokens that followed a rename or its undo.
Schemas and bases
Section titled “Schemas and bases”- Empty schemas go: a schema left with no tables, no views and no description is removed from
metastore.yamlby the write that empties it (dropping or moving its last table or view, or removing its description withcomment_on); undo brings it back. ref: selfmeets a base:set_table_basesaccepts a base column that a table already has asref: self. The table’s ownparentgives way to the base’s, its rows untouched.
Before you update
Section titled “Before you update”- Programs:
describe_databaseno longer lists a schema left with no tables, no views and no description, andcomment_onon such a schema answers that the schema is unknown. Create a table in it first, or give it a description before you empty it. - Tokens of tables renamed before: they keep the old name. Update them with
tokens/update/. - Renames by hand: a hand edit of
metastore.yamlor agit pullstill changes no token. - Going back to 3.7: after you update again, the tokens follow at start the renames made under 3.7 too. A grant can move away from a new table that took the old name. Check them with
tokens/permissions/.
Datanotes 3.7.0 brings a database browser, served by the engine at /datanotes/ui/. It only adds to 3.6: no operation, argument or setting goes away.
The database browser
Section titled “The database browser”Browse and administer the database explains it.
- The browser: sign in with a token, then browse and edit rows, change the structure and manage tokens. Read the history and undo, administer the engine, and change its settings.
- Inside the engine: it ships in the package and needs nothing else. Every call it makes needs a token.
New routes and arguments
Section titled “New routes and arguments”tokens/permissions/: what each named token may read and write in every table and view, as the engine applies it. Owner only.sessions/: the agent sessions of each credential, with their harness, model, tool calls and row changes. Owner only.settings/andsettings/update/: read and change the engine’s settings while it runs. Owner only; Change the settings over HTTP explains them.restart/: restart the engine in its own process, after it checks that it will start again. Owner only; Restart the engine explains it.list_changes: new argumentsauthandsession, to keep one credential’s or one session’s changes.list_migrations: a new answer fieldactorand argumentsauthandbefore. Entries ofset_engine_settingsalso havesettings, the values before and after.update_row: a new argumentexpect_body, which refuses the write when the body changed since you read it.X-Datanotes-View-As: a header that lets the owner read as a named token, without its secret.set_engine_settings: a new journal operation that records each change of the engine’s settings. Undo refuses it.
Webhooks with a user and password
Section titled “Webhooks with a user and password”- They deliver:
create_webhookkeeps taking an address such ashttps://user:password@host/hook. The engine now sends the user and password as HTTP Basic authentication, to the address without them. Before, every delivery of such a webhook failed. - They stay hidden: answers,
datanotes status, logs, traces and the change feed’s tool calls show the address without them. The store’swebhooks.jsonkeeps them, next to the webhook’s secret.
Before you update
Section titled “Before you update”- Programs: nothing changes for them.
- An engine other machines reach: it now also serves the browser’s page. The page holds no data, and every call needs a token.
- The owner token: it can now change the engine’s settings and restart the engine over HTTP. Keep it for administration.
- Webhooks whose address holds a user and password: they failed every delivery until now. After the update they deliver from their cursor, so the receiver gets the changes it missed. Delete the ones you no longer want before you update.
- Going back to 3.6 on the same store: don’t undo a
set_engine_settingsentry there. 3.6 answersok: true, but the setting keeps its new value.
Datanotes 3.6.0 warns about a table layout that makes a git repository of the vault grow fast. It only adds to 3.5: no operation, argument or setting goes away, and nothing is refused that 3.5 accepted.
Packs of rows
Section titled “Packs of rows”warnings: a new field of the answers ofcreate_table,alter_tableandcheck_table. It lists what is unwise in a table’s layout, though allowed, each with ahintand adocslink.pack_partition: the first warning. A table whose partition is wider than the periods of its packs, such as a year folder with packs per month, gets it. The folder of the open rows grows all period, andpack_rowsempties it, so git stores a new version of that folder at every commit. In a simulation of one commit per row, a year of 10 rows a day took 21 MB of git history, against 1.8 MB with a folder per month. Choose the partition with git in mind explains it.
Before you update
Section titled “Before you update”- Check your packed tables:
check_tablelists the tables with a wide partition. To change it, rununpack_rows, thenalter_tablewith apartitionas fine as the pack, thenpack_rows.
Datanotes 3.5.0 brings packs of rows: one note holds the rows of a closed period, such as a month, one ## section per row. A table with thousands of small rows a year keeps a few files instead of thousands. The engine still sees one row at a time. It only adds to 3.4: no operation, argument or setting goes away, and a table without the new option works as before.
Packs of rows
Section titled “Packs of rows”Packs of rows explains the format, the rules and who reads the files.
packandpack_after_days: two new options ofcreate_tableandalter_table.packis a template of a date or date-time column, such as"{started_at:YYYY-MM}".pack_after_dayssets how many days after the end of a period its rows wait, 7 by default.describe_tableshows both inoptions.pack_rows: a new operation. It puts the rows of every closed period into their pack. A dry run lists the packs and the rows that stay notes of their own, with the reason.unpack_rows: a new operation. It takes rows out again, as notes of their own, byte for byte, with their modification time.- Silent for the rows: each row keeps its id, path, values, text and
file_modified. The change feed, the webhooks and the table’s history see no change. - Writes: a write to a packed row changes its section. A row whose new values move it to another period comes out as a note of its own.
- Hand edits: the engine compares a pack changed by hand with what it had, by
id. Only the rows that changed get an event. - Links: a link to a packed row is
[[pack#row]], which Obsidian follows too.pack_rowsandunpack_rowsrewrite the links of other notes, and a link column takes the new form. - Journaled:
undo_migrationtakes a pack apart, or packs the rows again. autoPack: a new setting, on by default. Once a day, after 10 minutes without writes, the engine runspack_rowson every table with apackoption.- Engine service only: Obsidian’s plugin refuses the
packoption.
datanotes pack-merge: a new command, a git merge driver. It merges a pack changed on two devices row by row, byid, so a conflict stays in the one row changed on both sides.- Git sync registers it:
--git-syncsetsmerge.datanotes-pack.driverin the repository and adds*.md merge=datanotes-packto the vault’s.gitattributes. Merge packs row by row explains it.
Before you set pack on a table
Section titled “Before you set pack on a table”- Check who reads its files: Obsidian, scripts that count or open the table’s files, and agents with a shell see the packs, not one file per row. Programs that go through the engine see no difference.
- Change the layout first: while rows are in packs,
alter_tablerefuses to rename or move the table and to change itspartition,filenameorpack. Rununpack_rowsfirst.
Datanotes 3.4.2 fixes the install of an extension on columns you mapped. It only adds to 3.4: no operation, argument or setting goes away.
- Mapped columns of a dependency:
--map person.name=full_namebinds a column of a table the extension depends on. The installer now rewrites that column wherever the extension names it: in view queries, CHECKs,ref_whereandref_by, through links too, such asauthor.name. Before, those kept the manifest’s name and read a column the table doesn’t have. Choose the tables an extension uses explains mapping. - No guess where it can’t rewrite: the installer refuses a mapped column in the outer clauses of a
unionview withcolumn_map_unsupported. It refuses a migration step that names one withmigration_conflict. Each problem has a hint and a docs link.
After you update
Section titled “After you update”- Repair a mapped install: an extension installed with a mapped column keeps its old views and CHECKs. Run
datanotes extension installwith the same source again. The repair replaces each view and CHECK that names the mapped column.
Datanotes 3.4.1 closes three gaps in token permissions. It only adds to 3.4: no operation, argument or setting goes away. One fix can refuse a write that 3.4.0 allowed, so check your tokens before you update.
- Writes into other tables need
write: a row write can change rows of tables it doesn’t name, throughon_referenced: "set_null", inverse links oralign_relations. A named token now needswriteon those tables too. Otherwise the engine refuses the whole write with 403, and nothing is written. The refusal names the table, unless the token may not read it. A write into another table needs write too explains it. - A session belongs to one token: the first token that sends a session id to
sessions/identify/ortool-calls/record/owns it. Another named token gets 403 for that session, and nothing is stored. The owner may use any session. A session belongs to one token explains it. - Counts follow
read: for a token with limitedread,file_backlink_countcounts only links from notes it may read.describe_semantic_indexcounts only those notes infiles,passagesandpending.
Before you update
Section titled “Before you update”- Token
write: an integration that relies on those side effects gets 403 after the update. Add the other table to the token’swrite, and to itsreadwhenreadis limited. - Session ids: give each token its own session ids.
datanotes mcpalready does: it makes a random id for each session.
Datanotes 3.4.0 brings three additions:
- search the notes by words and meaning in one call
- limit what a named token reads
- count and total the items of a
jsonlist
It only adds to 3.3: no operation, argument or setting goes away, and a token without read reads every table as before.
Search by words and meaning
Section titled “Search by words and meaning”Search notes by words and meaning explains how it ranks.
search: a new operation. It ranks the notes by their words, with BM25. With semantic search on, it fuses that ranking with the meaning, with Reciprocal Rank Fusion.- Always on: with semantic search off, or when the embedding provider fails, it ranks by words alone.
meaningsays which. matched_by: each hit says whether its words, its meaning or both found it.- Query syntax:
"a phrase",+wordand-word, as insearch_docs. Filters:tables,folderandmin_score. - Any language: case and accents are ignored, and words aren’t stemmed.
- Read permissions: a token searches only the notes it may read.
Named tokens: read patterns
Section titled “Named tokens: read patterns”Limit what a token can read explains the rules.
read: a new field oftokens/create/andtokens/update/. It takes table patterns, likewrite:catalog.schema.table,catalog.schema.*,catalog.*or*.tokens/update/takesnullto read every table again.- Refused reads: a query, a view or a note that names a table outside
readanswers 403. The message names the table, with a hint and a docs link. - Filtered sets: listings, bases, search, the graph, history and the change feed leave out the tables the token may not read.
- Free notes: a token with a limited
readnever reads the notes outside tables. - Write implies read: every
writepattern must fall insideread. A token withddlormaintainkeeps reading every table. - Answers of writes: a write still checks every table. Its answer leaves out the rows the token may not read.
- Where it shows:
tokens/,tokens/me/anddatanotes statuslistread. A token without it lists["*"].
Count and total the items of a json list
Section titled “Count and total the items of a json list”A generated column can now aggregate a json column that holds a list of objects. For example, a day keeps its feedings in feeds. The engine then keeps feeds_count and left_min up to date. Count and total the items of a json list shows it.
- Five functions:
count(feeds),count(feeds.min)for the items with a value,sum(feeds.min),avg(…),min(…)andmax(…). - A filter:
count(feeds, side = "left")keeps the items whose field matches. It compares one field with text, a number,trueorfalse, using=,!=,<,<=,>or>=. - On every write: the engine recomputes the value when it writes the row. After a hand edit,
check_tablereports the stale value andrecompute_columnsfixes it. - Checked when you define it: the engine refuses an aggregate of a column that isn’t
json, or a column type that doesn’t fit the result. Each refusal has its own hint and docs. - No wrong numbers: with no items,
countandsumare 0, andavg,minandmaxare empty. A field that isn’t a number leaves the value empty.
Datanotes 3.3.1 fixes alter_table when it renames or moves a table. It only adds to 3.3: no operation, argument or setting goes away.
- References follow a moved table:
alter_tablewithname,catalogorschemarewrites every name of the table in the other definitions. Before, the links of other tables kept the old name, andcheck_tablethen reported arefviolation on every row. The engine now rewrites:- the
refof link columns and lists of links, in tables and in bases - the
vocabularyof string columns - the tables a view reads, in
table,unionandjoin
- the
schema_references: a new field of the answer lists each name rewritten, also on a dry run.undo_migrationputs the old names back. Rename or move a table shows it.- CHECKs and link filters: a CHECK that follows links, or a
ref_where/ref_by, that reads the table through a link no longer refuses the move. These rules name columns, not tables, so they follow the rewrittenref.drop_tablestill refuses while they read the table.
Datanotes 3.3.0 installs extensions: tables, views, bases and MCP tools from a git repository, pinned to a version. It only adds to 3.2: no operation, argument or setting goes away.
Extensions
Section titled “Extensions”An extension is one git repository with a manifest, datanotes-extension.json. The manifest declares tables, CHECKs with hints, table instructions, views, bases, tools and the permissions the tools need. Install extensions and Write an extension cover both sides.
datanotes extension install: fetches a version tag or a commit, prints a plan and asks you to confirm. Branches are refused. A plan lists the tables it creates, adopts or matches, the tools and the token.--map,--create,--add,--catalogand--schemacarry your choices.--dry-runwrites nothing.- One batch: the installer writes everything in one batch, so one
undo_migrationundoes it. - Five more commands:
updatemoves an extension to a newer version.rollbackundoes the last install or update.removeremoves an extension and keeps its tables.listshows what is installed.checkchecks an extension’s repository, for its authors.
- A token for each extension:
ext-<name>writes only the extension’s tables and never changes the schema. The journal records it asauth. - The registry: the engine keeps the installation records in its store. Three routes serve them:
POST /datanotes/extensions/,/datanotes/extensions/record/and/datanotes/extensions/delete/. The last two are for the owner. - Exit codes: 0 done, 1 error, 2 the plan has problems, 3 confirmation needed.
For MCP servers
Section titled “For MCP servers”datanotes mcploads extensions: stdio and HTTP add the tools of every installed extension after the engine’s tools. A tool that writes is refused to a client token that may not write its tables. A restart loads a new install.--no-extensions: leaves the extensions out.DATANOTES_MCP_EXTENSIONS=0does the same.--profile readkeeps only their read-only tools.- Docs:
list_docs,read_docsandsearch_docsserve each extension’s docs underextensions/<name>/. datanotes/extensions: a new package subpath. It exports the manifest and module types,defineExtension,ExtensionToolErrorand the loader for MCP hosts. Write an extension shows it.
Datanotes 3.2.0 keeps the links between rows of one table free of cycles. It also lets a table tell agents how to fill its rows. It only adds to 3.1: no operation, argument or setting goes away.
Links without cycles
Section titled “Links without cycles”A link column, or a list of links, to its own table takes acyclic: true. The engine then refuses a write that makes a row depend on itself through that column. An example is a task blocked by a task it blocks. Keep dependencies free of cycles with acyclic shows it.
- Both sides: with
inverse, a write to either column is checked. The links the engine adds on the other side count too. - Existing rows:
add_columnandalter_columnrefuseacyclic: truewhile rows already form a cycle, and list them. - Hand edits:
check_tableand the change feed report a cycle made outside the engine. - The refusal: it shows the cycle, such as
would close a cycle in "blocked_by" (A → B → A). It has its own hint and docs. system.information_schema.columns: a new column,is_acyclic.
Tell agents how to fill a table
Section titled “Tell agents how to fill a table”instructions:create_tableandalter_tabletake Markdown text that says how to fill a row. It can list which columns come first and what to ask the user.describe_tablereturns it, andinstructions: ""removes it. Tell agents how to fill a row withinstructionsshows it.- A hint for each CHECK:
add_constrainttakeshint, what to do when a row breaks the rule. A refused write puts it first in itshint, and each violation of that CHECK carries it ashint.describe_tablelists the hints inconstraint_hints, next toconstraints. system.information_schema:tableshas a new column,instructions, andcheck_constraintsa new column,hint.
alter_columnwithref: "self"no longer refuses the links a column already holds.
Datanotes 3.1.0 makes the engine fast at scale and adds OpenTelemetry traces. It only adds to 3.0: no operation, argument or setting goes away. One default changes: the transaction log now writes segments. Read Before you downgrade to 3.0 if you may go back.
Measured with bench/scale/ on a synthetic 50,000-note vault on Windows, median times. “Before” is the engine at the start of this work, with the same benchmark:
| Operation | Before | 3.1.0 |
|---|---|---|
insert_row |
662 ms | 37 ms |
update_row |
124 ms | 47 ms |
select_rows on a small table |
23 ms | 2.8 ms |
describe_database |
1,019 ms | 24 ms |
graph_neighbors right after a write |
1,472 ms | 2.5 ms |
| Archive 100 rows | 71.6 s | 1.3 s |
move_rows, 20 rows |
13.9 s | 0.5 s |
select_rows by 5 paths |
36.5 ms | 0.3 ms |
The gains come from these changes:
- An index of the vault in memory: the engine keeps each table’s rows, unique values, links and backlinks up to date as notes change. A read no longer walks every note of the vault.
- Links resolved one note at a time: creating, deleting or renaming a note no longer resolves every link of the vault again.
- Each note parsed once per version: the engine keeps the parse until the file changes.
- Faster queries:
wherefilters are compiled once;- sorts read each key once;
- pages keep only the rows they need;
- time-zone formatting is cached, so sorting 10,000 rows by
file_modifiedtakes about 50 ms, not 4 s.
- Writes before reads: a write waits for no new read. A write under four concurrent readers takes about 35 ms, not 147 ms. Settings
writePriorityandwritePriorityMaxWaitMstune it. - Search through the index on disk:
search_noteslooks the words up in the index on disk, then reads only the notes that can match. On 50,000 notes, two words found in 1,213 notes take about 14 ms, not 70 to 83 ms. A name takes 7 ms, not 100 ms. A word found in 15,905 notes still takes about 140 ms. A query of one- or two-letter words reads every note. After a start, the engine reads the search’s row ids in the background. The first search no longer waits for them. - Repeated reads from memory: a read the engine answered before, on data that has not changed since, comes from a cache. Setting
readCacheMaxBytessizes it, and0turns it off. - Faster undo:
undo_migrationtakes tens of milliseconds, not seconds. - Faster history:
table_changesreplays each version once;describe_historyreads only commit headers;- repeated time-travel reads come from memory.
- Less memory:
- note texts stay within a budget;
- repeated values, names and paths are kept once;
- row bodies are read only when asked for;
- the transaction log keeps hashes, not texts.
- A faster start:
- the engine walks the vault once, without blocking;
- it reads many notes at a time;
- the change feed starts after the server listens.
- An index on disk: the engine keeps
<store>/index/vault.sqlitethrough Node.js’s built-in SQLite. A start then reads only the notes that changed since the last stop: at 50,000 notes a restart takes about 2 s, not 40 s. The index is a cache: the notes stay the source of truth, and the engine rebuilds the index when it is missing or damaged. It holds each note’s text, compressed, and takes about twice the vault’s size on disk. SettingvaultIndexEnabledturns it off. Withoutnode:sqlite, the engine reads every note as before. - More reads at once: the
datanotescommand gives Node.js 16 threads for file reads, unlessUV_THREADPOOL_SIZEsets another number.
The whole graph in one call
Section titled “The whole graph in one call”graph_neighbors, graph_traverse and graph_path take from_nodes.tables: table names or patterns, with "*" for every table. One call returns the graph of the whole vault.
Traces
Section titled “Traces”The engine and datanotes mcp send OpenTelemetry traces next to the logs, to any OTLP backend:
- one span per request, continuing an incoming
traceparent; - one span per operation, with the database span attributes;
- spans for the phases: lock wait and hold, query plan and scan, validation, journal and transaction log;
- one trace per agent call, across the MCP server and the engine.
Log records carry their trace and span ids. New settings: telemetryTraces, telemetryTraceSampleRatio, telemetryMaxSpansPerTrace, telemetrySlowSpanMs and telemetryEnvironment. The OTEL_* variables work as well. datanotes/client takes trace and tracer to continue a trace into the engine. See Send logs to your observability backend.
The store
Section titled “The store”- The transaction log in segments, by default: a table’s versions go to append-only segment files instead of one file per version. The store keeps far fewer files, which matters to antivirus scans and to the store backup. Setting
transactionLogFormatchoosessegmentsorfiles. A 3.0 store needs no conversion: new versions go to segments next to the old files. - Smaller checkpoints: a checkpoint is a manifest and compressed parts, written after the write that made it due.
- Durable store writes: the files an operation wrote are synced at its end. Setting
storeSyncsets the policy. A version cut short by a crash no longer makes a table’s history unreadable.vacuum_tableanddatanotes store convert-logsync the files they write before they delete the old ones. - A lighter backup: a backup tick with no change runs no git command.
- The store left out of indexing: on Windows the engine marks the store folder as not content indexed, and on macOS it adds a Spotlight marker.
- The vault index out of Time Machine: on macOS the engine excludes
<store>/index/from Time Machine. The engine rebuilds the index when it is missing, so a restore loses nothing. Time Machine still backs up the journal and the history. - The vault index checked: after each start, the engine checks the index file in the background, one table at a time. The engine turns a damaged index off for the run and rebuilds it at the next start.
Before you downgrade to 3.0
Section titled “Before you downgrade to 3.0”Datanotes 3.0 reads only one file per version. Before you go back to 3.0, convert the logs:
-
Stop the engine. The conversion runs only while no engine serves the database.
-
Convert the logs of the database:
Terminal window datanotes store convert-log --to files --database <folder> -
Start Datanotes 3.0.
A table vacuumed with more than 32 MB of text keeps a checkpoint 3.0 cannot read, so 3.0 starts its history again from empty. To keep one file per version from the start, set transactionLogFormat to files.
Other changes
Section titled “Other changes”dnotes: the package also installs the command under a short name.dnotes statusis the same asdatanotes status, anddatanotesstays.search_notes: match contexts now fall on the right text in notes with decomposed accents, Hangul or emoji.- Compressed answers: setting
httpCompressionsends gzip to remote clients. It is on by default, and clients on the same machine get plain answers. - Semantic search: vectors take a quarter of the memory, and a repeated query skips the embedding service.
select_rowsby path: a filter onpathreads only the notes it names. A row elsewhere in the table that can’t be read no longer fails it.- Index checks:
DATANOTES_INDEX_CHECK=1compares the engine’s indexes with a full read after every operation. /tool-calls/record/: takes an optionalsummary, sodatanotes mcpno longer sends whole tool results back to the engine.- Benchmarks:
bench/http-latency.mjsandbench/scale/measure any vault. datanotes store path --json: the answer addsdatabase_path, the database folder on disk.datanotes store new-id,backupandrestore: each holds the store while it runs, asconvert-logdoes. An engine you start meanwhile refuses to start. A live engine whose heartbeat stopped now makes them refuse too.restoreleaves the store in place untouched until the clone is checked. When the clone cannot take its place,restoreremoves the clone. It puts the old store back, or names the folder the old store is in.- Traces of background work:
job auto_recomputerecomputes columns after a hand edit, andjob inverse_linksmirrors inverse links. Both are traces of their own, never part of the request that saw the edit. - Writes: a write runs again only when another write overtook it. Before, a write whose values held the text of that conflict ran up to five times.
Datanotes 3.0.0 is the first stable release. Versions 1.x and 2.x, published on 7 and 8 October 2026, were previews. Datanotes runs a folder of Markdown notes as typed database tables. You reach it through an HTTP API, a command line and an MCP server for agents.
Tables and the metastore
Section titled “Tables and the metastore”- One metastore per vault:
metastore.yamldefines the tables, views and bases. Only operations change it, and each change is validated and journaled. The engine refuses a vault with more than onemetastore.yaml. - The database folder: a new database goes to
datanotes/. The engine finds the folder by itsmetastore.yaml, whatever its name. See Move the vault or the database folder. - Descriptions:
create_table,add_column,clone_tableanddefine_baserequire a description for each table, base and column. A refusal lists every missing one. See Describe every table and column. - CHECK constraints that follow links: a CHECK such as
{"parent.kind": "project"}tests the linked row. - Filtered link targets:
ref_whereandref_bylimit what a link may point to, andlist_link_targetslists those rows. - Hand edits are checked: the engine checks notes edited outside it against the tables’ rules. The change feed, the transaction log and the log report what they break.
- Schema operations for hand-written metastores: table
tags,alter_tablewitharchiveandfields, andcomment_onfor catalogs and schemas. select_rowswiththis_note: fills a view’s{this.*}tokens from a note, so one view serves every daily note.
The store and its backup
Section titled “The store and its backup”- The store is outside the vault: settings, tokens, journal, transaction logs, change feed, semantic index, logs and lock live in
<data home>/<database id>/. See Where the engine keeps its store. - A database id: the engine writes an
idline at the top ofmetastore.yamland finds the store by it. datanotes store:datanotes store pathshows where a vault’s store is.datanotes store new-idgives a copied database its own id and store.- Store backup: the engine keeps its store in a git repository of its own and pushes it to a private remote. Each commit is a consistent snapshot, and the secrets stay out.
datanotes store restorebrings the store back on a new machine. See Back up the history. --storeandDATANOTES_DATA_HOME: place the store and move the data home. The Docker image keeps the store in/data.
History and undo
Section titled “History and undo”- The journal: every write is journaled, and
undo_migrationreverts it. An undo of an undo is a redo, and abatchis one entry. - History on in a new database: a database the engine creates gets
history: truein itsmetastore.yaml, so every table keeps its versions. A database without the setting keeps history off. See The transaction log keeps every version. - History for the whole database:
restore_databasebrings every table back to a time, or to the moment before an operation. - Time travel:
describe_historywithouttablelists the commits of every table.select_rowswithtimestampreads views, joins and bases as they were. - Moves of the database folder: a move by hand or with
configure_databaseis one operation. Undo and time travel read what came before it with the new paths.
Notes and links
Section titled “Notes and links”- Automatic links: a write links the notes its text mentions by name, at their first mention.
links_addedlists them, andambiguous_mentionsreturns the doubtful ones for the agent to decide. See Automatic links. - Safe on a large vault: a one-word name links only when capitalized and not at the start of a sentence. Names inside paths, domains and snake_case words stay as they are.
autolink_target: a table option that says whether automatic links may point to its rows. See Choose the tables a link may point to.- Links follow a note renamed by hand: the engine rewrites every link to its old path, in one
repair_linksoperation that undo takes back. See The engine repairs links after a hand move. - A note moved by hand is a rename: a note gone and a new one with its text, seen at once, are one rename.
Agents
Section titled “Agents”datanotes mcp: the MCP server ships in thedatanotespackage. Connect your agents shows how to configure it.datanotes/mcp: the engine’s operations as MCP tool definitions for an MCP server of your own. See Build on Datanotes.- Docs offline: the package ships these docs as Markdown. Agents read them with
list_docs,read_docsandsearch_docs. TheDocs:line of an error names theread_docscall, so the agent reads the section without internet access. Your own MCP server does the same withofflineDocs. See Read the docs offline. - Hybrid search of the docs:
search_docsmerges a ranking by words with one by meaning. See Search by words and by meaning. - Errors that teach: every error says what is wrong, how to fix it in
hint, and where to read more indocs. See Errors.
Security
Section titled “Security”- Named tokens: each program gets a token of its own, with the tables it may read and write. A token’s
autolinksets the default of its writes. See Turn automatic links off for a sync program. - The actor: every write records who made it, with
authset toowneror the token’s name. - No secret in the change feed: a recorded tool call loses webhook secrets and values under keys such as
tokenorpassword.
Running the engine
Section titled “Running the engine”- Node.js 22 or newer: the engine and the command line need Node.js 22 or later.
datanotes serve --port: the port for one run, also asDATANOTES_PORT. With--port 0, the system picks a free port. See Choose the port.datanotes status: the engine’s health at a glance. See Check the engine’s status.datanotes stop: a graceful stop. The engine finishes its requests, makes its last git sync and backup push, and releases its lock. See Stop the engine.- One engine per database: the engine holds a lock in its store and checks the lock’s process on the same machine.
- Git never waits for a person: git sync and the store backup run git without prompts, and with time limits. See Git never waits for a person.