Databases

Driftleaf databases can be created directly or imported from CSV and JSON. Databases appear in the branch’s folder in the sidebar and can be explored as table, board, calendar, gallery, or list views. Rows, properties, and view definitions are stored encrypted in the branch; they are not converted into Markdown notes.

Create a database

Choose + Database beside + Note in the sidebar. The new database is created in the currently selected folder with a Title property, and its name can be entered when prompted. Add rows and properties in the table view.

Import a database

Choose Import and select a .csv, .json, or .zip file. CSV and JSON files can be selected directly or included in a ZIP archive. Import places each database in the currently selected branch folder. ZIP paths are preserved as branch folders. Markdown files in the same import can be imported alongside databases.

  • CSV: the header row becomes the property names. Driftleaf infers common number, checkbox, date, and URL fields, and recognizes common header names such as tags, status, email, and phone. A Name or Title column is used as the title property when present; otherwise, the first column becomes the title. Other cells retain their imported values.
  • JSON: accepts an array of row objects, or an object containing a data, results, or records array. Common Notion-style property values and type hints are normalized where supported.
  • ZIP: imports .md, .csv, and .json entries and retains their archive-relative folder paths. Other entry types are ignored. To limit resource use, each imported CSV or JSON file may be up to 20 MiB, and a ZIP archive may contain up to 20,000 entries.

If an item cannot be imported, Driftleaf reports it as skipped while continuing with other selected files or archive entries.

Properties

Choose + Add property below the current view to add any number of columns. Select a name and type; define select, status, and multi-select choices in the editor by separating options with commas or new lines. Use Manage properties below the current view to delete properties from any view. Formula is a calculated property type rather than an editable cell: select Formula (calculated), give it a name, and enter its expression in the formula editor before adding it. A preview is shown when rows exist. Formula cells are read-only; edit the expression from its column header.

Every column header offers Rename and Delete actions. Renaming updates formula references that use prop("Property name"). The title property cannot be deleted. Deleting a property also removes its row values, saved filters, and sort/group/date selections. Properties referenced by formulas or rollups must first be removed from those dependent calculations.

Edit a table

  • Use + Row to add a row. Edit the cells directly in the table; changes are saved to the encrypted database.
  • Use the view tabs to switch between named views. Use Add view to add a Table, Board, Calendar, Gallery, List, or Timeline view. View settings are encrypted with the database.
  • Sort rows by a property and choose a direction. Search across row values, or add property-specific contains filters. Table and Board views can group by a select, status, or checkbox property. Calendar views use a date property and can be displayed by week or month; navigation follows the selected mode. Use Today to return to the current week/month, edit event details in place, and add a row directly on a day. Timeline views use a required start-date property and can optionally use an end-date property; navigate month by month to inspect dates.
  • Board and calendar cards show the title and a few other properties; edit supported cells in place or switch to Table for the full row.
  • Use + Add property to add another property at any time. Supported property types include text, title, number, checkbox, date, select, multi-select, URL, email, phone, people, files, formula, relation, and rollup.
  • Use Delete on a row to remove it. References to that row in relation properties are cleared.
  • Use Delete database to remove the database. Driftleaf prevents deletion while another database has a relation to it.

Formulas

Formula properties calculate a read-only value for each row using that row’s other properties. See Database Formulas for a short introduction and examples.

Relations and rollups

Create a relation property and choose another Driftleaf database. Select one or more rows in the relation cell. A rollup property can use an existing relation and a property from its linked database, with show_original, count, sum, average, min, or max calculation.

Notion CSV exports do not include formula definitions. JSON exports may contain formula results, but those results do not restore the original formula definition. Separately imported Notion databases are not connected automatically: recreate their relation properties in Driftleaf. Relations are not required for importing and browsing the source CSV or JSON data.

Export

Use Export CSV for a spreadsheet-friendly snapshot of current cell values. Formula columns export their calculated results, not the formula definitions; relations, multi-selects, people, and files are flattened to comma-separated text in CSV. CSV cannot preserve Driftleaf property types or saved views.

Use Export JSON for a lossless Driftleaf database backup. It includes property definitions, formula expressions, row values, and saved views. Import that JSON file into Driftleaf to restore those structures as a new database. Both formats are written as plaintext files outside the encrypted branch, so Driftleaf asks you to confirm before exporting.

Privacy and backups

The manifest stores database titles, IDs, folder paths, and timestamps encrypted in manifest.enc. Property definitions, saved views, formulas, and row values are encrypted together in .driftleaf/<database-id>.db.enc with the branch key. Create backups from Settings → Diagnostics & Branch Health → Create backup; this includes the hidden .driftleaf/ directory. Health checks and backup verification also validate encrypted database files.

The database index metadata is stored encrypted in manifest.enc. Unlike Markdown notes, database files cannot currently be re-indexed automatically if that manifest is lost. Restore manifest.enc or the .driftleaf/ directory from a backup; see Branch Recovery.

Version: 0.8.2Last updated: 2026-11-24AetherAssembly/Driftleaf →License: AGPL-3.0-or-later