1
0
Fork 0
mirror of https://github.com/silverbulletmd/silverbullet.git synced 2026-02-04 02:53:55 +00:00
No description
Find a file
2026-02-03 16:06:57 +01:00
.githooks Added git hook that does some sanity checking 2025-03-18 18:29:46 +01:00
.github Make docker build manually triggerable 2026-02-03 16:06:57 +01:00
.helix Add config for Helix editor (#1200) 2025-01-04 06:59:12 +01:00
.vscode Ripped out use of Deno KV and other unstable features 2025-03-24 20:21:17 +01:00
.zed Sync engine rearchitecture (#1516) 2025-09-12 14:43:57 +02:00
bench Add Space Lua benchmarks based on Deno.bench aligned to Deno.test (#1649) 2025-11-05 15:06:33 +01:00
bin Code restructuring: eliminated the top-level lib/ directory 2025-09-23 17:00:34 +02:00
client make fmt 2026-02-03 15:59:54 +01:00
client_bundle Move built client files to client_bundle folder to make embedding them into the server binary cleaner. 2025-09-25 09:51:05 +02:00
libraries Add validation and error handling for object indexing 2026-02-03 15:59:04 +01:00
plug-api Add validation and error handling for object indexing 2026-02-03 15:59:04 +01:00
plugs Add validation and error handling for object indexing 2026-02-03 15:59:04 +01:00
scripts Reorganized keyboard shortcuts a little bit and documented them. 2026-01-21 11:01:11 +01:00
server Some authentication fixes (#1804) 2026-01-31 17:07:35 +01:00
website CHANGELOG fix 2026-02-03 16:02:14 +01:00
.air.toml Let air also rebuild on .yaml files 2026-01-21 09:22:13 +01:00
.gitignore Let air also rebuild on .yaml files 2026-01-21 09:22:13 +01:00
build_client.ts Include sourcemaps in production builds (#1717) 2025-12-10 09:30:32 +01:00
build_plug_compile.ts Go backend (#1555) 2025-09-19 13:23:20 +02:00
build_plugs_libraries.ts Loading of plugs is no longer restricted to _plug 2025-11-07 10:43:25 +01:00
CHANGELOG.md Work on #10 theming 2022-08-02 14:40:04 +02:00
CONTRIBUTING.md v1 code contribution guidelines 2026-01-14 09:29:39 +01:00
deno.json Dependency bumps 2026-01-20 10:10:02 +01:00
deno.lock Dependency bumps 2026-01-20 10:10:02 +01:00
docker-entrypoint.sh Fixes #1568 2025-09-28 17:24:25 +02:00
Dockerfile fix: undefined SB_PORT in healthcheck (#1812) 2026-02-02 21:50:56 +01:00
Dockerfile.website Switch silversearch to edge build 2025-12-10 10:11:26 +01:00
go.mod Prometheus metrics support 2025-10-27 17:21:50 +01:00
go.sum Prometheus metrics support 2025-10-27 17:21:50 +01:00
LICENSE.md Refactor of asset bundles 2022-10-12 11:47:13 +02:00
Makefile Build the silverbullet binary when running make website. 2025-11-07 16:00:11 +01:00
README.md Adding LLM use link to README 2026-01-16 08:12:04 +01:00
silverbullet.go Move built client files to client_bundle folder to make embedding them into the server binary cleaner. 2025-09-25 09:51:05 +02:00
version.ts 2.4.1 2026-01-16 13:07:53 +01:00

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

SilverBullet

SilverBullet is a Programmable, Private, Browser-based, Open Source, Self Hosted, Personal Knowledge Management Platform.

Yowza! That surely is a lot of adjectives to describe a browser-based Markdown editor programmable with Lua.

Lets get more specific.

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.

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.

Much more detail can be found on silverbullet.md

Installing SilverBullet

Check out the instructions.

Developing SilverBullet

SilverBullet's frontend is written in TypeScript and built on top of the excellent CodeMirror 6 editor component. Additional UI is built using Preact. ESBuild) running through Deno is used to build both the front-end.

The server backend is written in Go.

If you're considering contributing changes, be aware of the LLM use policy.

Code structure

  • client/: The SilverBullet client, implemented with TypeScript
  • server/: The SilverBullet server, written in Go
  • plugs: Set of built-in plugs that are distributed with SilverBullet
  • libraries: A set of libraries (space scripts, page templates, slash templates) distributed with SilverBullet
  • plug-api/: Useful APIs for use in plugs
    • lib/: Useful libraries to be used in plugs
    • syscalls/: TypeScript wrappers around syscalls
    • types/: Various (client) types that can be references from plugs
  • bin
    • plug_compile.ts the plug compiler
  • scripts/: Useful scripts
  • website/: silverbullet.md website content

Requirements

  • Deno: Used to build the frontend and plugs
  • Go: Used to build the backend

It's convenient to also install air for development, this will automatically rebuild both the frontend and backend when changes are made:

go install github.com/air-verse/air@latest

Make sure your $GOPATH/bin is in your $PATH.

To build everything and run the server:

air <PATH-TO-YOUR-SPACE>

Alternatively, to build:

make

To run the resulting server:

./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

Build a docker container

Note, you do not need Deno 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