An open source personal productivity platform built on Markdown, turbo charged with the scripting power of Lua https://silverbullet.md
  • TypeScript 58.4%
  • Rust 37.4%
  • Lua 2%
  • SCSS 1.9%
Find a file
2026-11-10 09:54:07 +01:00
.cargo fix(build): pin x86_64 C code to baseline ISA (no AVX) 2026-11-04 15:59:39 +01:00
.github ci: disable the extended browser workflow 2026-11-09 13:05:49 +01: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 test(runtime): remove flaky plain-JSON runtime e2e test 2026-11-09 18:27:37 +01:00
browser-tests fix test 2026-11-08 16:32:46 +01:00
build feat(libraries): install under Library/ and move repositories to Library/Repository 2026-11-09 12:56:54 +01:00
client feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
dev-docs docs: refactor for future silverbullet.md website 2026-09-29 11:24:26 +02:00
docs docs: ADR editing 2026-11-09 16:53:31 +01:00
e2e fix: tests 2026-11-09 17:19:26 +01:00
libraries/Library fix: remove Library/Config link 2026-11-10 09:54:07 +01:00
plug-api feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
plugs feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
scripts feat(workbench): Data and Code tabs 2026-11-05 15:36:16 +01:00
server feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
server-common fix(server): test config migration logging without a scoped subscriber 2026-11-09 18:27:37 +01:00
server-mcp fix: tests 2026-11-09 17:19:26 +01:00
server-merge feat(mcp): MCP server ported/repurposed from Desktop app 2026-11-04 13:17:53 +01:00
server-runtime-chrome fix: runtime API memory reporting 2026-11-06 09:48:57 +01:00
server-search feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
server-space-tools feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01:00
testdata/tooling feat/breaking change: move configuration to Library/Config 2026-11-09 16:53:15 +01: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 chore: introduce biome rule to use type over interface, and replace any cases where that wasn't happening 2026-10-05 16:19:36 +02:00
Cargo.lock fix(server): test config migration logging without a scoped subscriber 2026-11-09 18:27:37 +01:00
Cargo.toml build(deps): trim unused jsonwebtoken and zip features 2026-11-05 15:19:44 +01:00
CHANGELOG.md Repo refactor: rename "website" to "docs" 2026-06-23 09:12:24 +02:00
CONTRIBUTING.md test(runtime): require an explicit chrome-headless-shell and fail on leaked browsers 2026-10-07 15:02:42 +02:00
docker-entrypoint.sh docker: change /space mount to /data 2026-09-16 13:16:50 +02:00
Dockerfile feat: replace rg with embedded, proper tantify-based indexer and search (mvp) 2026-10-13 19:11:18 +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 feat: search infrastructure (eventually mutli-backend in this commit just ripgrep) 2026-10-13 14:21:42 +02:00
LICENSE.md Refactor of asset bundles 2022-10-12 11:47:13 +02:00
Makefile feat(workbench): Configuration tab replaces the configuration-manager plug 2026-10-30 12:23:45 +01:00
package-lock.json docs: code-based docs edits 2026-11-03 14:36:30 +01:00
package.json feat(tool-pages): classify tool pages (new name of meta pages) by location (Library/*) instead of tags 2026-11-09 12:19:50 +01:00
playwright.browser.config.ts e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
playwright.config.ts chore: introduce biome rule to use type over interface, and replace any cases where that wasn't happening 2026-10-05 16:19:36 +02:00
playwright.oidc.config.ts e2e: refactor, restructure 2026-09-12 13:24:07 +02:00
README.md docs: refactor for future silverbullet.md website 2026-09-29 11:24:26 +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 backport some changes from 2.12.1 2026-10-12 08:40:55 +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.

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

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 (published as docs.silverbullet.md and bundled as Desktop's Help)

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-DATA-FOLDER>

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-DATA-FOLDER>

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 Rust locally installed for this to work:

docker build -t silverbullet .

To run:

docker run -p 3000:3000 -v <PATH-TO-YOUR-DATA-FOLDER>:/data silverbullet