A tiny, self-hosted notification inbox for developers. Something happened in one of your apps; Boop tells you on your phone.
HTML
Tidy up Readme
Chris Gregori9d706abc56c8
diff --git a/README.md b/README.mdindex 0df1c76..cf5a25a 100644--- a/README.md+++ b/README.md@@ -1,7 +1,20 @@-# Boop+<p align="center">+ <img src="https://github.com/chrisgreg/boop/raw/main/docs/boop.png" width="160" alt="Boop logo" />++ <h1 align="center">Boop</h1>++<p align="center">+ <img src="https://img.shields.io/github/actions/workflow/status/chrisgreg/boop/ci.yml?branch=main" alt="CI" />+ <img src="https://img.shields.io/github/go-mod/go-version/chrisgreg/boop?filename=server%2Fgo.mod" alt="Go version" />+ <img src="https://img.shields.io/github/license/chrisgreg/boop" alt="License" />+</p>A tiny, self-hosted notification inbox for developers. Something happened in one of your apps; Boop tells you on your phone.+One Go binary, one SQLite file, one Docker container. Pushes go straight from your server to Apple's APNs. There is no hosted relay, account system, or telemetry.++</p>+```bashcurl https://boop.example.com/api/v1/events \-H "Authorization: Bearer $BOOP_API_KEY" \@@ -9,8 +22,6 @@ curl https://boop.example.com/api/v1/events \-d '{"title": "Backup complete", "level": "success"}'```-One Go binary, one SQLite file, one Docker container. Pushes go straight from your server to Apple's APNs. There is no hosted relay, account system, or telemetry.-## What is in the box| Part | Status |@@ -23,7 +34,7 @@ One Go binary, one SQLite file, one Docker container. Pushes go straight from yo## Quick start (Docker)```bash-git clone https://github.com/chrisgregori/boop && cd boop+git clone https://github.com/chrisgreg/boop && cd boopcp .env.example .env # optional: BOOP_BASE_URL and APNS_* valuesmkdir -p data && chown 1000:1000 data # Linux hosts only; the container runs as uid 1000docker compose up -d --builddiff --git a/docker-compose.yml b/docker-compose.ymlindex 0f7cf73..4c4b016 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -2,7 +2,7 @@ services:boop:build:context: ./server- image: ghcr.io/chrisgregori/boop:latest+ image: ghcr.io/chrisgreg/boop:latestrestart: unless-stoppedports:- "8080:8080"diff --git a/docs/boop.png b/docs/boop.pngnew file mode 100644index 0000000..4dab76bBinary files /dev/null and b/docs/boop.png differdiff --git a/server/Dockerfile b/server/Dockerfileindex f9960be..a06d5c1 100644--- a/server/Dockerfile+++ b/server/Dockerfile@@ -17,7 +17,7 @@ RUN go mod downloadCOPY . .COPY --from=web /internal/web/dist ./internal/web/distARG VERSION=0.1.0-RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/chrisgregori/boop/server/internal/api.Version=${VERSION}" -o /boop ./cmd/boop+RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/chrisgreg/boop/server/internal/api.Version=${VERSION}" -o /boop ./cmd/boop# ---- runtime: binary + CA certificates only ----FROM alpine:3.21diff --git a/server/cmd/boop/main.go b/server/cmd/boop/main.goindex 595d08f..dd89899 100644--- a/server/cmd/boop/main.go+++ b/server/cmd/boop/main.go@@ -14,18 +14,18 @@ import ("syscall""time"- "github.com/chrisgregori/boop/server/internal/api"- "github.com/chrisgregori/boop/server/internal/apns"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/config"- "github.com/chrisgregori/boop/server/internal/database"- "github.com/chrisgregori/boop/server/internal/delivery"- "github.com/chrisgregori/boop/server/internal/devices"- "github.com/chrisgregori/boop/server/internal/events"- "github.com/chrisgregori/boop/server/internal/pairing"- "github.com/chrisgregori/boop/server/internal/projects"- "github.com/chrisgregori/boop/server/internal/settings"- "github.com/chrisgregori/boop/server/internal/web"+ "github.com/chrisgreg/boop/server/internal/api"+ "github.com/chrisgreg/boop/server/internal/apns"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/config"+ "github.com/chrisgreg/boop/server/internal/database"+ "github.com/chrisgreg/boop/server/internal/delivery"+ "github.com/chrisgreg/boop/server/internal/devices"+ "github.com/chrisgreg/boop/server/internal/events"+ "github.com/chrisgreg/boop/server/internal/pairing"+ "github.com/chrisgreg/boop/server/internal/projects"+ "github.com/chrisgreg/boop/server/internal/settings"+ "github.com/chrisgreg/boop/server/internal/web")func main() {diff --git a/server/go.mod b/server/go.modindex 119a10a..484c0f5 100644--- a/server/go.mod+++ b/server/go.mod@@ -1,4 +1,4 @@-module github.com/chrisgregori/boop/server+module github.com/chrisgreg/boop/servergo 1.27.0diff --git a/server/internal/api/api.go b/server/internal/api/api.goindex db8e0f7..f7efcdb 100644--- a/server/internal/api/api.go+++ b/server/internal/api/api.go@@ -13,17 +13,17 @@ import ("strings""time"- "github.com/chrisgregori/boop/server/internal/apns"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/config"- "github.com/chrisgregori/boop/server/internal/delivery"- "github.com/chrisgregori/boop/server/internal/devices"- "github.com/chrisgregori/boop/server/internal/events"- "github.com/chrisgregori/boop/server/internal/events/levels"- "github.com/chrisgregori/boop/server/internal/events/redact"- "github.com/chrisgregori/boop/server/internal/pairing"- "github.com/chrisgregori/boop/server/internal/projects"- "github.com/chrisgregori/boop/server/internal/settings"+ "github.com/chrisgreg/boop/server/internal/apns"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/config"+ "github.com/chrisgreg/boop/server/internal/delivery"+ "github.com/chrisgreg/boop/server/internal/devices"+ "github.com/chrisgreg/boop/server/internal/events"+ "github.com/chrisgreg/boop/server/internal/events/levels"+ "github.com/chrisgreg/boop/server/internal/events/redact"+ "github.com/chrisgreg/boop/server/internal/pairing"+ "github.com/chrisgreg/boop/server/internal/projects"+ "github.com/chrisgreg/boop/server/internal/settings")// Version is the server version, overridden at build time via -ldflags.diff --git a/server/internal/api/api_test.go b/server/internal/api/api_test.goindex db527a3..120a48e 100644--- a/server/internal/api/api_test.go+++ b/server/internal/api/api_test.go@@ -14,16 +14,16 @@ import ("testing""time"- "github.com/chrisgregori/boop/server/internal/apns"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/config"- "github.com/chrisgregori/boop/server/internal/database"- "github.com/chrisgregori/boop/server/internal/delivery"- "github.com/chrisgregori/boop/server/internal/devices"- "github.com/chrisgregori/boop/server/internal/events"- "github.com/chrisgregori/boop/server/internal/pairing"- "github.com/chrisgregori/boop/server/internal/projects"- "github.com/chrisgregori/boop/server/internal/settings"+ "github.com/chrisgreg/boop/server/internal/apns"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/config"+ "github.com/chrisgreg/boop/server/internal/database"+ "github.com/chrisgreg/boop/server/internal/delivery"+ "github.com/chrisgreg/boop/server/internal/devices"+ "github.com/chrisgreg/boop/server/internal/events"+ "github.com/chrisgreg/boop/server/internal/pairing"+ "github.com/chrisgreg/boop/server/internal/projects"+ "github.com/chrisgreg/boop/server/internal/settings")// fakeSender records notifications instead of talking to APNs.diff --git a/server/internal/apns/apns.go b/server/internal/apns/apns.goindex c8b5e45..0b15482 100644--- a/server/internal/apns/apns.go+++ b/server/internal/apns/apns.go@@ -22,7 +22,7 @@ import ("sync""time"- "github.com/chrisgregori/boop/server/internal/config"+ "github.com/chrisgreg/boop/server/internal/config")// Hosts for the two APNs environments.diff --git a/server/internal/apns/apns_test.go b/server/internal/apns/apns_test.goindex 0163b73..8a3a88a 100644--- a/server/internal/apns/apns_test.go+++ b/server/internal/apns/apns_test.go@@ -17,7 +17,7 @@ import ("sync/atomic""testing"- "github.com/chrisgregori/boop/server/internal/config"+ "github.com/chrisgreg/boop/server/internal/config")func testKey(t *testing.T) (*ecdsa.PrivateKey, []byte) {diff --git a/server/internal/auth/admin.go b/server/internal/auth/admin.goindex 5c358ce..95acfd2 100644--- a/server/internal/auth/admin.go+++ b/server/internal/auth/admin.go@@ -8,7 +8,7 @@ import ("sync""time"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/ids")// SessionCookie is the name of the admin session cookie.diff --git a/server/internal/auth/auth.go b/server/internal/auth/auth.goindex 99758cb..6f090ee 100644--- a/server/internal/auth/auth.go+++ b/server/internal/auth/auth.go@@ -8,7 +8,7 @@ import ("net/http""strings"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/ids")// Secret prefixes.diff --git a/server/internal/database/database.go b/server/internal/database/database.goindex 790c1e3..a6d778c 100644--- a/server/internal/database/database.go+++ b/server/internal/database/database.go@@ -13,7 +13,7 @@ import (_ "modernc.org/sqlite"- "github.com/chrisgregori/boop/server/migrations"+ "github.com/chrisgreg/boop/server/migrations")// Open opens (creating if needed) the SQLite database at path, enables WALdiff --git a/server/internal/delivery/delivery.go b/server/internal/delivery/delivery.goindex b238d8f..68a56d7 100644--- a/server/internal/delivery/delivery.go+++ b/server/internal/delivery/delivery.go@@ -10,12 +10,12 @@ import ("sync""time"- "github.com/chrisgregori/boop/server/internal/apns"- "github.com/chrisgregori/boop/server/internal/devices"- "github.com/chrisgregori/boop/server/internal/events"- "github.com/chrisgregori/boop/server/internal/events/levels"- "github.com/chrisgregori/boop/server/internal/ids"- "github.com/chrisgregori/boop/server/internal/projects"+ "github.com/chrisgreg/boop/server/internal/apns"+ "github.com/chrisgreg/boop/server/internal/devices"+ "github.com/chrisgreg/boop/server/internal/events"+ "github.com/chrisgreg/boop/server/internal/events/levels"+ "github.com/chrisgreg/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/projects")// Sender is the subset of *apns.Client the dispatcher needs.diff --git a/server/internal/devices/devices.go b/server/internal/devices/devices.goindex 081cc1a..3f29341 100644--- a/server/internal/devices/devices.go+++ b/server/internal/devices/devices.go@@ -8,8 +8,8 @@ import ("fmt""strings"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/ids")// ErrNotFound is returned for unknown devices.diff --git a/server/internal/events/events.go b/server/internal/events/events.goindex c047629..c5a0174 100644--- a/server/internal/events/events.go+++ b/server/internal/events/events.go@@ -10,9 +10,9 @@ import ("strings""time"- "github.com/chrisgregori/boop/server/internal/events/levels"- "github.com/chrisgregori/boop/server/internal/events/redact"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/events/levels"+ "github.com/chrisgreg/boop/server/internal/events/redact"+ "github.com/chrisgreg/boop/server/internal/ids")// ErrNotFound is returned for unknown event ids.diff --git a/server/internal/pairing/pairing.go b/server/internal/pairing/pairing.goindex 483c35f..f1347e4 100644--- a/server/internal/pairing/pairing.go+++ b/server/internal/pairing/pairing.go@@ -8,9 +8,9 @@ import ("errors""time"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/devices"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/devices"+ "github.com/chrisgreg/boop/server/internal/ids")// TTL is how long a pairing token stays valid.diff --git a/server/internal/projects/projects.go b/server/internal/projects/projects.goindex 4506fe3..31190de 100644--- a/server/internal/projects/projects.go+++ b/server/internal/projects/projects.go@@ -9,10 +9,10 @@ import ("regexp""strings"- "github.com/chrisgregori/boop/server/internal/auth"- "github.com/chrisgregori/boop/server/internal/database"- "github.com/chrisgregori/boop/server/internal/events/levels"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/auth"+ "github.com/chrisgreg/boop/server/internal/database"+ "github.com/chrisgreg/boop/server/internal/events/levels"+ "github.com/chrisgreg/boop/server/internal/ids")// ErrNotFound is returned when a project does not exist.diff --git a/server/internal/settings/settings.go b/server/internal/settings/settings.goindex d650f68..073038f 100644--- a/server/internal/settings/settings.go+++ b/server/internal/settings/settings.go@@ -8,7 +8,7 @@ import ("strconv""strings"- "github.com/chrisgregori/boop/server/internal/ids"+ "github.com/chrisgreg/boop/server/internal/ids")// Well-known keys.