1
0
Fork 0
mirror of https://github.com/silverbulletmd/silverbullet.git synced 2026-06-14 09:14:21 +00:00
No description
Find a file
2026-06-11 22:49:53 +02:00
.github Attempt to fix CI tests running 2026-05-25 07:58:19 +02:00
.vscode More Deno cleanup 2026-02-27 16:25:34 +01:00
.zed Enable biome based formatter and reformat 2026-03-10 09:38:59 +01:00
bench Performance: performance tuned LuaTable 2026-03-26 17:22:40 +01:00
bin CLI work 2026-03-29 16:48:39 +02:00
build Beginnings of a design system for UI components 2026-06-01 13:16:57 +02:00
cli Attempt to fix CI tests running 2026-05-25 07:58:19 +02:00
client Fix: indexing wouldn't always kick off, or get deadlocked with multiple tabs open 2026-06-11 08:35:45 +02:00
client_bundle Remove unused client_bundle/client_bundle symlink (#1976) 2026-05-10 20:22:23 +02:00
cmd/cli cli: add sb get for kubectl-style indexed-object access 2026-05-14 17:01:37 +02:00
e2e refactor (simplification): eliminate (CM-based)MiniEditor replaced with standard browser input 2026-06-02 09:00:43 +02:00
libraries Remove object graph from repo 2026-06-10 09:04:38 +02:00
plug-api refactor (simplification): eliminate (CM-based)MiniEditor replaced with standard browser input 2026-06-02 09:00:43 +02:00
plugs Fix: lintObjects throws when pageMeta is undefined (#2021) 2026-06-11 22:49:53 +02:00
scripts 2.6.1 2026-04-11 14:33:26 +02:00
server flip refreshLogic check (#2009) 2026-05-31 21:48:51 +02:00
website CHANGELOG update for 2.9 release 2026-06-11 09:08:02 +02:00
.air.toml Plug compiler: add "build" steps (esbuild/sass/copy) 2026-04-21 10:04:34 +02:00
.editorconfig Enable biome based formatter and reformat 2026-03-10 09:38:59 +01:00
.gitignore .gitignore 2026-05-14 17:05:11 +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 .gitignore 2026-05-14 17:05:11 +02:00
CHANGELOG.md Work on #10 theming 2022-08-02 14:40:04 +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 Remove VOLUME from dockerfile 2026-04-12 10:52:43 +02:00
Dockerfile.ci Remove VOLUME from dockerfile 2026-04-12 10:52:43 +02:00
Dockerfile.ci.runtime-api First pass at "Remote API" (see docs) 2026-03-17 09:57:08 +01:00
Dockerfile.website Expanded plug dev guide 2026-04-21 10:11:24 +02:00
go.mod cli: generalize output formatter with table/jsonl/yaml 2026-05-14 17:00:58 +02:00
go.sum 'sb' auth encryption changed to no longer depend on hostname (which can 2026-05-11 16:55:33 +02:00
LICENSE.md Refactor of asset bundles 2022-10-12 11:47:13 +02:00
Makefile new plug: graph view (imported from separate repo) 2026-06-09 17:10:16 +02:00
package-lock.json 2.9.0 2026-06-11 09:03:16 +02:00
package.json 2.9.0 2026-06-11 09:03:16 +02:00
playwright.config.ts Run e2e tests on Firefox as well 2026-04-08 20:04:00 +02:00
README.md Website content tweaks 2026-06-02 10:13:31 +02:00
RELEASE_ANNOUNCEMENT.md e2e test fix for x-ray 2026-05-09 12:39:00 +02:00
silverbullet.go Attempting to determine the build time in a more reliable way 2026-03-05 16:03:25 +01:00
STYLE.md Introduce new noFloatingPromises lint rule and fix violiations 2026-03-08 15:49:45 +01:00
tsconfig.json Cleaned up imports/exports 2026-03-06 14:36:23 +01:00
version.ts 2.9.0 2026-06-11 09:03:16 +02:00
vitest.config.ts Beginnings of a design system for UI components 2026-06-01 13:16:57 +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 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 Go.

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

  • Node.js 24+ and npm 10+: Used to build the frontend and plugs
  • Go: Used to build the backend

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

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.

First, install dependencies:

make setup

To build everything and run the server (which automatically restarts upon file changing):

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