I've been working on a new plugin in the Silverware collection, and it's ready for people to try. It's heavily inspired by Notion's databases, and I'm not going to pretend otherwise. The difference is that nothing here lives in a hidden store. Every item is a normal SilverBullet page, and its properties are that page's frontmatter.
How it works
A database is a folder of pages next to the page you created it on:
Projects.md the page that shows the database
Projects/db-tasks.md the database itself: its name and properties
Projects/db-tasks/Fix login.md an item: properties in frontmatter, notes in the body
Because items are just pages, everything you already do keeps working. You can link to them, write notes and tasks in them, and query them:
query[[from index.tag "db" where status == "Doing"]]
To show a database somewhere, type /database and pick one, or pick New database… at the top of the list. That inserts a small block:
```silverware-database
id: tasks
```
You can put the same database on as many pages as you like. Each block remembers its own view, filter, sort and grouping.
Views
There are five built-in views: Table, List, Board, Calendar and Timeline. Every view can be filtered, sorted, grouped by any property and colored by a select. You edit values in place. Cards, rows and timeline bars can be dragged around, and dragging changes the underlying value. Drop a card in another column and its status changes. Move a bar on the timeline and its dates change.
Click an item's name and it opens in a side panel (the "peek"). From there you can edit its properties, read and write its notes, give it an icon or a color, or open the full page.
Properties
The property types are text, number, select, multi-select, checkbox, date, time, date & time, URL and reference (links to other pages). There are also a few system properties the database fills in for you: created, modified, order, page, tags, and a task progress bar based on the - [ ] tasks inside the item's page.
Anything that touches a lot of pages shows you what it will change before it does it. That covers renaming an option, changing a property's type, removing a property and deleting a database. Every change can be undone.
When a page changes under you
Your database is just pages, so they can change while you're looking at them: on another device, in another tab, or when you edit the frontmatter by hand. When you edit a value that changed after the view drew it, Silverware Database doesn't silently overwrite it. It leaves that value as it is and shows a notification that stays until you close it.
Click Show conflict to see the page's markdown as it is now and as your change would make it. Then pick Keep theirs or Write mine. Write mine can be undone like any other change. If the page changed yet again in the meantime, you get the new conflict instead of a blind overwrite.
It only kicks in when the exact thing you're changing has changed. If someone edited a different field of the same item, your change just goes through and theirs stays.
On a phone
I use SilverBullet on my phone, so this was a requirement from the beginning. The peek takes the whole screen, cards and bars can be dragged with a finger, and the calendar switches to a compact layout with the selected day's items listed underneath.
Your own views and types
If the built-in ones don't fit, you can define your own views and property types in JavaScript and register them from Space Lua (silverware.database.defineViews, defineTypes). The library page has the details and a working example.
Install
Add the repository with Library: Add Repository:
https://github.com/damesene/silverware-libraries/blob/main/REPO.md
Then run Library: Install and pick Silverware Database.
It's new. I've tested it a lot, but you'll probably find rough edges. Please report them.
What's next
I'm far from done with this plugin. There's a lot more I want to build, and some of it I'm really looking forward to. If you're missing something, let me know.












