SilverBullet is a Programmable, Private, Browser-based, Open Source, Self Hosted, Personal Knowledge Database — a fancy term for a "notes app on steroids".
Yowza! That surely is a lot of adjectives to describe a browser-based Markdown editor programmable with Lua.
Let’s get more specific.
SilverBullet combines a clean live-preview editor with wiki-style linking, a built-in database and query language, and a fully integrated Space Lua scripting environment, turning your notes into a programmable system that grows with you.
In SilverBullet you keep your content as a collection of Markdown Pages (called a Space). You navigate your space using the Page Picker like a traditional notes app, or through Links like a wiki (except they are bi-directional).
If you are the writer type, you’ll appreciate SilverBullet as a clean Markdown editor with Live Preview. If you have more of an outliner personality, SilverBullet has Outlining tools for you. Productivity freak? Have a look at Tasks. More of a database person? You will appreciate Objects and Queries (SLIQ).
And if you are comfortable programming a little bit — now we’re really talking. You will love dynamically generating content with Space Lua (SilverBullet’s Lua dialect), or to use it to create custom Commands, Page Templates or Widgets.
You were told there’s no such thing as a silver bullet. You were told wrong.
Much more detail can be found on silverbullet.md
Check out the instructions.
SilverBullet's frontend ("client") is written in TypeScript and built on top of the excellent CodeMirror 6 editor component. Additional UI is built using Preact. ESBuild is used to build the frontend.
The server backend is written in Rust (a Cargo workspace). It serves the pre-built client bundle, the file/space HTTP API, authentication, and a headless-Chrome runtime for server-side Lua.
bin/silverbullet/: The standalonesilverbulletserver binary (Rust) (this is the one you generally run)bin/sb/: ThesbCLI client (Rust)bin/plug-compile.ts: the plug compilerclient/: The SilverBullet client (browser, TypeScript)server/: The SilverBullet server library (Rust): HTTP router, handlers, auth, runtime seamserver-common/: Shared Rust crate (space primitives, shared types)server-runtime-chrome/: Headless-Chrome runtime backend (Rust)plugs: Set of built-in plugs (TypeScript) that are distributed with SilverBulletlibraries: A set of libraries (space scripts, page templates, slash templates) distributed with SilverBullet (Space Lua)plug-api/: Useful APIs for use in plugs and published to NPMlib/: Useful libraries to be used in plugssyscalls/: TypeScript wrappers around syscallstypes/: Various (client) types that can be references from plugs
scripts/: Useful scriptswebsite/: silverbullet.md website content
- Node.js 24+ and npm 10+: Used to build the frontend (client) and plugs
- Rust (stable, via
rustup): Used to build the server
The project includes .nvmrc and .node-version files. If you use nvm or another Node version manager, it will automatically use the correct Node.js version:
nvm use # If using nvmFirst, install dependencies:
make setupTo create a (release) build:
makeThis will produce silverbullet and cli binaries in ./target/release/, run ./target/release/silverbullet to run the server.
SilverBullet has two halves you rebuild independently:
- The client (TypeScript:
client/) is built by ESBuild intoclient_bundle/, which the server then serves. - The server (Rust:
server/,server-common/,server-runtime-chrome/,bin/silverbullet/) is a compiled binary.
Run the server in development with cargo run. A debug build serves the client bundle live from client_bundle/ on disk (a release build embeds it instead):
npm run build
cargo run <PATH-TO-YOUR-SPACE>When you change only the client (TypeScript in client/): you do not need to restart the server. Rebuild just the client bundle and reload the page in your browser — the debug server serves the freshly-built bundle straight from disk:
npm run buildTo build a self-contained release binary (with the client bundle embedded), and run it:
make
./target/release/silverbullet <PATH-TO-YOUR-SPACE># Clean all generated files
make clean
# Typecheck and lint all code
make check
# Format all code
make fmt
# Run all tests
make test
# Run benchmarks
make benchNote, you do not need Node.js nor Go locally installed for this to work:
docker build -t silverbullet .To run:
docker run -p 3000:3000 -v <PATH-TO-YOUR-SPACE>:/space silverbullet