1
0
Fork 0
mirror of https://github.com/silverbulletmd/silverbullet.git synced 2025-12-16 10:54:06 +00:00
No description
Find a file
Justyn Shull b9bbb32051
Fix missing x-proxy-headers- from non-lua fetch calls (#1721)
* Fix missing x-proxy-header- on proxied fetch calls

* Don't use https for host.docker.internal proxied urls
2025-12-11 12:06:31 +01:00
.githooks Added git hook that does some sanity checking 2025-03-18 18:29:46 +01:00
.github Add Patreon funding option 2025-12-01 19:01:13 +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 Fix missing x-proxy-headers- from non-lua fetch calls (#1721) 2025-12-11 12:06:31 +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 feat: Improve Lua go-to-definition with Ctrl-click support and user feedback (#1713) 2025-12-01 14:13:11 +01:00
plug-api Implements #1707 2025-12-10 09:48:09 +01:00
plugs Implements #1707 2025-12-10 09:48:09 +01:00
scripts Go backend (#1555) 2025-09-19 13:23:20 +02:00
server Fix missing x-proxy-headers- from non-lua fetch calls (#1721) 2025-12-11 12:06:31 +01:00
website Clarify authentication proxies 2025-12-10 17:08:30 +01:00
.air.toml Fixes #1512 2025-09-26 15:34:54 +02:00
.gitignore Move excalidraw plug out of repo and add it on the fly during website build 2025-09-26 08:33:29 +02: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
deno.json Remove full-text search from SB core 2025-11-24 16:33:17 +01:00
deno.lock Remove full-text search from SB core 2025-11-24 16:33:17 +01:00
docker-entrypoint.sh Fixes #1568 2025-09-28 17:24:25 +02:00
Dockerfile Deno -> 2.5.6 2025-11-09 12:16:34 +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 Add link to SilverBullet website in README 2025-11-24 13:23:55 +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.3.0 2025-11-24 10:48:00 +01:00

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 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) is used to build both the front-end.

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

  • 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