SilverBullet 3.0: Self-Host a Programmable Markdown Knowledge Base with Docker Compose
SilverBullet 3.0 brings starter kits, a Workbench, page variables and built-in search to the Markdown-and-Lua notes app. We ran 3.0.1 with Docker Compose on a test VM: one container, about 48 MiB of RAM, and a few security details worth knowing.
SilverBullet has always been a note-taking app for people who like to tinker. You write plain Markdown, and if you want more, you can turn pages into live queries, dashboards and small scripts with Lua. The catch was that most of this power was hidden behind a monospace font, a lot of YAML and a fair number of YouTube videos.
Version 3.0, released on 24 November 2026 and followed by a 3.0.1 bugfix release two days later, is the project's attempt to fix that. It brings a new default look with proportional fonts, starter kits for new spaces, a form editor for page metadata, a "Workbench" for configuration and queries, and built-in full-text search. It also made the rounds this week: the release showed up in selfh.st's Self-Host Weekly, and the GitHub repository is sitting at around 6.7k stars.
I set it up with Docker Compose on a fresh Ubuntu 24.04 test VM to see how the server edition behaves. Here is what it does, how to install it, and where you should be careful.

What SilverBullet is
At its core, SilverBullet is a browser-based editor for a folder of Markdown files. Every page is a .md file on disk, so you can back it up, grep it or edit it with another tool. On top of that sits an index of your pages, tasks, tags and links, plus a scripting layer called Space Lua that lets you query that index and render the results inline.
It comes in two editions. The Server is what this article is about: you self-host it and open your notes in a browser, on desktop or mobile, and one server can host several "spaces", each with its own address and access rules. The Desktop app works with local folders and can sync with a server. The code is MIT-licensed. The author also sells a "Desktop Pro" edition and accepts donations to fund development.
What's new in 3.0
A friendlier default look
The old monospace look is gone as the default. SilverBullet now has proper theme support, ships with a light and a dark theme, and uses proportional fonts. The classic look is still available as a theme library if you miss it. Hover over a line and a small handle appears with context-dependent actions, such as turning the line into a task or a heading. Selecting text shows a formatting bubble.
Starter kits
New spaces no longer start from a single welcome page. You pick a starter kit instead: a personal space with a journal, quick notes and tasks, a team space with meeting notes and a decision log, a blank space, or a public Git repository. The kit is copied once when the space is created. After that, the files are yours.

Form-based frontmatter and page variables
Page metadata (the YAML frontmatter at the top of a page) is now shown as a form. You can add attributes and tags without touching YAML, and Alt-click the block when you do want the raw text.
The feature I enjoyed most is page variables. You can assign a value inside an inline expression and reuse it elsewhere on the same page, which turns a note into a tiny spreadsheet:
* Mini PC: ${pc = 289} EUR
* Two 4 TB drives: ${drives = 2 * 94} EUR
* Power, per month: ${power = 4} EUR
Hardware total: **${pc + drives} EUR**
First year including power: **${pc + drives + power * 12} EUR**I dropped exactly this page into the test space, and it rendered the totals (477 and 525) without any extra setup.

The Workbench
The Workbench is described by its author as "DevTools for SilverBullet", and that's a fair summary. It opens as a panel at the bottom of the editor and has tabs for an overview of your space, configuration, data, code, libraries, maintenance and a Lua console. The Data tab is the interesting one if you never wanted to learn the query syntax: you pick a tag, click together filters and grouping, and the Workbench gives you a query you can insert into a page.

Full-text search, and optional semantic search
Until now, SilverBullet relied on a third-party library for proper search. 3.0 adds a server-side full-text index based on tantivy, a Rust search library. Press Ctrl-Shift-F (Cmd-Shift-F on macOS), and results show up as you type. In my test, the index for the starter pages was built in 0.1 seconds according to the server log, and a search for "restore" immediately found the matching task on one of my demo pages.
Semantic search is a second, optional engine. It runs an embedding model on your server and finds pages by meaning, not just by matching words. It is off by default. An administrator enables it in the Dashboard under Settings, Search, and picks a model. The documentation lists the default model as a 220 MB download needing about 490 MB of memory, and the alternative as a 488 MB download needing about 590 MB. I did not enable it on the small test VM, so I can't tell you how it performs.
Breaking changes
If you already run SilverBullet, read the upgrade notes before you bump the version. The old "single-space" mode is gone, and a wizard guides you through migrating to a multi-space setup on first boot. space-lua and space-style blocks now only run when they live on pages under Library/, and the CONFIG page moves to Library/Config (the server renames it for you). Some CSS rules changed as part of the new theming, which can affect custom styles.
Requirements
SilverBullet is light. On my test VM (2 vCPUs, about 1.8 GB RAM), docker stats showed the container at about 20 MiB of memory right after the first start and about 48 MiB after setup, with a couple of browser sessions and a handful of pages. CPU usage at idle was close to zero.
The image is the bigger number. The default image includes a headless Chromium for the Runtime API (more on that below) and took up about 1.2 GB on disk after pulling. If you don't need the Runtime API, the docs point to the -slim variant of a version tag, for example 3.0.1-slim (I checked that this tag exists in the registry). Images are published for 64-bit Intel, 64-bit ARM and 32-bit ARM (ARMv7), on both GHCR and Docker Hub (zefhemel/silverbullet).
You'll also want HTTPS for anything beyond a quick test. More on that in the security section.
Installing SilverBullet 3.0.1 with Docker Compose
1. Create the project folder
Create the folder as the regular user you want SilverBullet to run as, not as root. This matters more than it looks: the container's entrypoint checks who owns the folder mounted at /data and runs the server with that UID and GID. If you let Docker create ./data for you, it will be owned by root, and SilverBullet will run as root.
mkdir -p ~/silverbullet/data
cd ~/silverbulletIf you can't control the folder owner, you can set the PUID and PGID environment variables instead.
2. Write the compose file
This is the official example from the documentation with two changes: the image is pinned to 3.0.1 instead of latest, and the port is bound to localhost only, because a reverse proxy will handle the outside world.
services:
silverbullet:
image: ghcr.io/silverbulletmd/silverbullet:3.0.1
restart: unless-stopped
volumes:
- ./data:/data
ports:
- "127.0.0.1:3000:3000"Save it as compose.yml. There's no database and no second container. Everything, including accounts, space settings and the search index, lives in ./data.
3. Start it
docker compose up -d
docker compose ps
docker compose logs -fOn the test VM, the log reported the server as running within the same second the container started, and it pointed to the setup wizard under /.setup/. The image has its own health check, so docker compose ps will show the container as healthy once the first check has passed. That took about half a minute in my test, simply because of Docker's default check interval.
4. Run the setup wizard
Since the port only listens on localhost, the easiest way to reach the wizard from your laptop is an SSH tunnel:
ssh -L 3000:127.0.0.1:3000 you@your-serverThen open http://localhost:3000. A nice side effect: browsers treat localhost as a secure context, so everything works even without HTTPS for this first step. The server redirects you to the wizard, which has two steps.
Step 1 creates the first administrator account. The username field is prefilled with admin, and full name and email are optional. According to the form, they're only used to attribute changes in the revision history. Pick a strong password.
Step 2 creates your first space. The "Server address" field is prefilled with the address you opened the wizard with. If you already know the final URL, such as https://notes.example.com, you can enter it here. The server address can also be changed later in the Dashboard settings. Then pick a starter kit, name the space and decide on revisions. The options are Disabled, Managed (SilverBullet commits to a Git repository in the space folder periodically) and Unmanaged (revisions are shown, but nothing is committed automatically). With the defaults, I ended up with a space called "Notes" under the path /notes, with Managed revisions.
After "Finish setup", the wizard sends you to the sign-in page. Two options there are worth knowing: "Shared computer" signs you out when the browser closes, and "Encrypt local data on this device" encrypts what the browser stores locally for offline use.
Two observations from the test. First, files I copied straight into the space folder from the shell showed up in the editor and in queries without a restart, because the server watches the folder for changes. Second, Managed revisions picked them up too: the Git log in the space folder had an "Initial space snapshot" commit followed by one for the new pages.
5. Put it behind HTTPS
Any reverse proxy works. The documentation uses Caddy as its main example, which gets you a Let's Encrypt certificate automatically. A minimal Caddyfile on the same host looks like this:
notes.example.com {
reverse_proxy 127.0.0.1:3000
}Two details from the docs are easy to miss with other proxies. Serve SilverBullet over HTTP/2, because over HTTP/1.1 the sync engine can use up all six connections a browser allows per host and the client then thinks the server is offline. And don't buffer or compress the server-sent events stream at /.events, or live updates fall back to polling. Caddy does both correctly out of the box. For nginx and Nginx Proxy Manager, the TLS page in the docs has the exact settings.
Since the space is bound to /notes, the root URL of the server redirects to the Dashboard at /.dashboard. If you'd rather have your notes directly at the root, that's what the Path field in the space settings is for. If you proxy only a space's path, remember to forward /.dashboard and /.instance as well.
Upgrading
Change the tag in compose.yml, then:
docker compose pull
docker compose stop
docker compose up -dThe docs note that you may have to reload the browser twice after an upgrade before the new client is fully active. Back up the whole data folder before major upgrades. It holds the spaces as well as users.json, spaces.json and server.json.
Tips
- Know the useful environment variables. All documented:
SB_LOCKOUT_LIMITandSB_LOCKOUT_TIMEcontrol login lockout (10 failed attempts, then 60 seconds by default),SB_SESSION_DAYSsets how long an unused session stays signed in (30 days by default),SB_FS_WATCH=pollhelps when the data folder sits on NFS or SMB, andSB_METRICS_PORTexposes Prometheus metrics. - Decide about the update check. The server checks once a day whether a newer release exists or the running version has a known security issue. The request includes the version, OS, architecture and install kind. Set
SB_UPDATE_CHECK=0to turn it off, but then you're responsible for watching the release notes yourself. - Use the Workbench to learn queries. Build a query in the Data tab, then look at the generated code. It's a faster way to learn the query syntax than reading the reference.
- Try the team starter kit even if you're alone. The meeting and decision templates are a good example of how buttons, templates and queries fit together.
Security and limitations
Write access means trust. This is the most important point in the documentation, and it's worth repeating. A space is a scriptable environment. Anyone with write access can add Lua code that runs in the browser of everyone who opens that space, admins included. There's no "can edit, but can't script" role. If you invite people you don't fully trust, give them their own space, ideally on its own subdomain, rather than write access to a shared one.
Some endpoints reach beyond your notes. All of them require write access: a shell endpoint that runs commands on the server (off by default, and it was disabled in the space config of my test as well), an HTTP proxy that fetches external URLs from the server's network, and the Runtime API.
The Runtime API is on by default in the standard image. It's enabled automatically when the server finds Chromium, which the default image includes, and my test server's config had it switched on. It starts a headless Chrome per user and space on the first request, and stops it again after 30 minutes without requests. During my test it was never started, so the container only ran the SilverBullet process itself. Each active runtime costs a whole browser's worth of memory, though. If you don't need it, switch it off in the Dashboard or use the -slim image.
HTTPS is not optional for the full feature set. Over plain HTTP on a LAN address, SilverBullet works online-only: no offline startup, no local data encryption, no single sign-on, and of course nothing on the wire is encrypted. That's a browser restriction, not a SilverBullet one.
New spaces are private by default. The space the wizard created had its anonymous access set to none, so visitors without an account see nothing. If you want to publish notes as a website, there's a separate publish image that serves a folder as a read-only site without accounts, so you don't have to open up your working space.
It's not a classic wiki. SilverBullet shines for one person or a small, trusted group. If you need fine-grained permissions for many editors, a traditional wiki is the better fit.
How it compares
Obsidian is the obvious comparison: also Markdown files, also extensible. But Obsidian is a desktop app and not open source, while SilverBullet runs on your server and works in any browser. If you live in Obsidian's plugin ecosystem, you won't find the same breadth here.
Trilium Notes and SiYuan are more feature-rich out of the box, but keep your notes in their own formats rather than as plain Markdown files. SilverBullet keeps plain Markdown files on disk, which makes it easy to back up, version and leave if you ever want to.
Memos is great for quick, timeline-style notes, but doesn't try to be a knowledge base with queries. AFFiNE aims at Notion and Miro users who want docs and whiteboards, and needs a database and more resources to run.
Where SilverBullet stands out is programmability with a small footprint: one container, a few dozen megabytes of RAM, and the ability to turn notes into live views of your own data.
Conclusion
SilverBullet 3.0 doesn't change what the tool is, but it makes it a lot easier to get into. The setup wizard and starter kits get you to a useful space in a couple of minutes, the Workbench takes the edge off the scripting, and built-in search fills a gap that was there for far too long. On a small homelab box it barely registers in docker stats.
Take the trust model seriously, put it behind HTTPS, and decide whether you need the Chromium-based Runtime API. If you do that, it's one of the most interesting note-taking servers you can run right now.