An open source personal productivity platform built on Markdown, turbo charged with the scripting power of Lua https://silverbullet.md
  • TypeScript 63.6%
  • Rust 30.2%
  • Lua 3.7%
  • SCSS 2.2%
  • HTML 0.1%
  • Other 0.1%
Find a file
2026-09-13 14:02:29 +02:00
.cargo Fix: FreeBSD build (hopefully) 2026-06-16 09:25:02 +02:00
.github e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
.vscode More Deno cleanup 2026-02-27 16:25:34 +01:00
bench docs: trim redundant code comments 2026-09-09 09:14:15 +02:00
bin setup: restore flexible setup bindings 2026-09-12 11:29:50 +02:00
browser-tests e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
build feat(spaces): add SSO setup and synchronized logout flows 2026-09-09 14:32:28 +02:00
client setup: restore flexible setup bindings 2026-09-12 11:29:50 +02:00
docs setup: restore flexible setup bindings 2026-09-12 11:29:50 +02:00
e2e test: fix cross-browser e2e setup and verify offline reload 2026-09-12 14:08:10 +02:00
libraries Fix typo in Diagrams description (#2114) 2026-09-13 14:02:29 +02:00
plug-api Major visual refresh 2026-09-10 10:51:13 +02:00
plugs Default to @self for mentions in single-user environments 2026-09-11 16:18:01 +02:00
scripts Update reference from website/ to docs/ everywhere 2026-06-23 09:15:34 +02:00
server e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
server-common docs: trim redundant code comments 2026-09-09 09:14:15 +02:00
server-merge server-merge: three-way merge implementation (for collaboration use) 2026-08-20 15:19:59 +02:00
server-runtime-chrome Major visual refresh 2026-09-10 10:51:13 +02:00
.dockerignore Rust backend/CLI replacement (previously Go) (#2010) 2026-06-16 08:40:41 +02:00
.editorconfig Enable biome based formatter and reformat 2026-03-10 09:38:59 +01:00
.gitignore Remove dev auth keys 2026-07-15 12:51:28 +02:00
.node-version Fix node.js version to 24.13 2026-02-14 22:17:37 +01:00
.nvmrc Fix node.js version to 24.13 2026-02-14 22:17:37 +01:00
biome.json lint fixes 2026-07-28 14:30:10 +02:00
Cargo.lock cli: remove REPL 2026-09-10 21:37:14 +02:00
Cargo.toml cli: remove REPL 2026-09-10 21:37:14 +02:00
CHANGELOG.md Repo refactor: rename "website" to "docs" 2026-06-23 09:12:24 +02:00
CONTRIBUTING.md Removing reference to LLM use, moving back to "merit based" judgment 2026-05-14 08:37:26 +02:00
docker-entrypoint.sh Fixing #1935 (#1944) 2026-04-22 20:58:14 +02:00
Dockerfile docker: images now include chromium (enabling the runtime API) by default, new -slim images remove it 2026-09-10 13:05:16 +02:00
Dockerfile.runtime-api docker: images now include chromium (enabling the runtime API) by default, new -slim images remove it 2026-09-10 13:05:16 +02:00
Dockerfile.website docker: images now include chromium (enabling the runtime API) by default, new -slim images remove it 2026-09-10 13:05:16 +02:00
LICENSE.md Refactor of asset bundles 2022-10-12 11:47:13 +02:00
Makefile e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
package-lock.json 2.10.0 2026-07-28 14:38:32 +02:00
package.json e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
playwright.browser.config.ts e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
playwright.config.ts test: fix cross-browser e2e setup and verify offline reload 2026-09-12 14:08:10 +02:00
playwright.oidc.config.ts e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
README.md Update reference from website/ to docs/ everywhere 2026-06-23 09:15:34 +02:00
rust-toolchain.toml Rust backend/CLI replacement (previously Go) (#2010) 2026-06-16 08:40:41 +02:00
rustfmt.toml Rust backend/CLI replacement (previously Go) (#2010) 2026-06-16 08:40:41 +02:00
STYLE.md Code style updates 2026-08-03 16:02:57 +02:00
tsconfig.e2e.json e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
tsconfig.json Update reference from website/ to docs/ everywhere 2026-06-23 09:15:34 +02:00
version.ts 2.10.0 2026-07-28 14:38:32 +02:00
vitest.config.ts e2e: refactor, restructure 2026-09-12 13:24:07 +02:00

GitHub Repo stars Docker Pulls GitHub Downloads (all assets, all releases) GitHub contributors Ask DeepWiki

SilverBullet

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.

Lets 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, youll 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 were really talking. You will love dynamically generating content with Space Lua (SilverBullets Lua dialect), or to use it to create custom Commands, Page Templates or Widgets.

You were told theres no such thing as a silver bullet. You were told wrong.

Much more detail can be found on silverbullet.md

Installing SilverBullet

Check out the instructions.

Developing SilverBullet

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.

Code structure

  • bin/silverbullet/: The standalone silverbullet server binary (Rust) (this is the one you generally run)
  • bin/sb/: The sb CLI client (Rust)
  • bin/plug-compile.ts: the plug compiler
  • client/: The SilverBullet client (browser, TypeScript)
  • server/: The SilverBullet server library (Rust): HTTP router, handlers, auth, runtime seam
  • server-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 SilverBullet
  • libraries: 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 NPM
    • lib/: Useful libraries to be used in plugs
    • syscalls/: TypeScript wrappers around syscalls
    • types/: Various (client) types that can be references from plugs
  • scripts/: Useful scripts
  • docs/: documentation (also serves a silverbullet.md website content)

Requirements

  • 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 nvm

First, install dependencies:

make setup

To create a (release) build:

make

This will produce silverbullet and cli binaries in ./target/release/, run ./target/release/silverbullet to run the server.

Development workflow

SilverBullet has two halves you rebuild independently:

  • The client (TypeScript: client/) is built by ESBuild into client_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 build

To build a self-contained release binary (with the client bundle embedded), and run it:

make
./target/release/silverbullet <PATH-TO-YOUR-SPACE>

Useful development tasks

# 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 bench

Build a docker container

Note, 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