Skip to content
Boond-DevPublic

About

Self-hostable, clean-room Raindrop.io-compatible bookmark management server in Go

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Boond

New here? Start with START_HERE.md. Security controls are documented in docs/auth-security.md.

Boond

Proof of concept. Boond is deployable and useful for testing, but it is not production-ready. Expect breaking changes and bugs. Nothing here comes with any guarantee of data safety, uptime, security, or production suitability. Back up your database and media before using it.

Boond (Hindi: बूँद, "drop") is a clean-room, self-hostable bookmark server, written in Go.

Live demo

Try the hosted Boond instance:

The demo account is shared. Do not store private or sensitive bookmarks in it; the account may be reset or wiped without notice.

The purpose of this repository is to specify the server precisely enough that:

  1. the core server can be implemented in Go without guessing at wire behaviour;
  2. existing Raindrop.io-compatible web, browser-extension, desktop, and Android clients can be pointed at a Boond instance with a small compatibility layer;
  3. all former Pro features except AI/ML integrations are available to every user for free on a self-hosted instance.

The repository contains the completed reverse-engineering specification, the Go server, and a separately built web client. The client is an unofficial, connection-only patch of the MIT-licensed Raindrop.io web app; it is not bundled into the Go binary. The full contract and reconstructed architecture live under docs/.

Boond is not affiliated with or endorsed by Raindrop.io. Raindrop.io's source repositories are used only as behavioural references. Client code is not copied into the server.

Repository map

Path Purpose
SPEC.md Canonical, implementation-ready server specification
cmd/boond/ Go entrypoint (serve, migrate, version)
internal/ Config, domain, store, auth primitives, and HTTP API
docker-compose.yml PostgreSQL + API stack
web/ Prebuilt self-hosted web client, connection overrides, Caddy example
extension/ Prebuilt Chrome/Firefox extensions with first-run server URL setup
docs/upstream-maintenance.md Overlay layout, upgrade runbook, and client compatibility invariants
branding/ Canonical logos, generated icon assets, and the upstream rebranding patch
docs/ Detailed chapters that make up the specification
docs/architecture.md Reconstructed Raindrop.io architecture + Boond target design
docs/api-reference.md Endpoint-by-endpoint wire contract
docs/data-model.md PostgreSQL schema and invariants
docs/client-compatibility.md How the official clients will be pointed at Boond
research/ Evidence notes extracted from the reference repositories
PROGRESS.md Running log of what has been done, in progress, and next
METHODS.md How the reverse engineering is performed and verified
_refs/ Local-only shallow clones of reference repositories (git-ignored)

What the specification covers

  • Wire contract: every endpoint the official web app, extensions, desktop app, and Android app actually call, plus the documented public API, with both /v1 and /rest/v1 aliases.
  • Auth: cookie sessions, bearer/OAuth tokens, test tokens, TOTP, email verification, password reset, Google/Apple native login, and the desktop JWT handoff.
  • Data: users, nested collections, root groups, shared/public collections, raindrops, tags, highlights, reminders, files, archives, backups, and counts.
  • Behaviour: trash/restore/permanent delete, batch operations, ordering, lastAction cache invalidation, duplicate detection, broken-link checks, import formats, exports, and public pages.
  • Architecture: a pragmatic Go modular monolith on PostgreSQL + object storage, with a Postgres-backed job queue and optional headless browser.
  • Policy: every non-AI Pro feature is free; AI/MCP is explicitly unsupported.

Start here

  1. Read SPEC.md §§1–5 for scope, conventions, and auth.
  2. Read docs/architecture.md for the reconstructed system and the Boond target.
  3. Read docs/api-reference.md and docs/data-model.md before writing Go.
  4. Read docs/client-compatibility.md before touching the official clients.
  5. Read docs/open-questions.md for decisions that still need evidence.

Releases

The latest release is v0.16.10. The server and web images are v0.16.10. The extension bundles are currently 6.8.6-b0.15; Chrome is not published to the Chrome Web Store, so use the ZIP from the release or load the unpacked build.

Container images

A GitHub Actions workflow builds and pushes multi-arch images to GHCR:

  • Manual: Actions → “Build and Push Boond Image” → Run workflow, with a comma-separated tag list such as latest,v0.2.0.
  • On tag push: pushing a tag matching v* publishes that tag.

Images are ghcr.io/boond-dev/server:<tag> for linux/amd64 and linux/arm64. The workflow uses the GITHUB_TOKEN; no extra secret is required. Package visibility follows the repository/package settings in GitHub.

The web client has a separate workflow, “Build and Push Boond Web Image”, which publishes ghcr.io/boond-dev/web:<tag> on manual dispatch or a web-v* tag. See web/README.md for the app.example.com deployment and required server environment changes.

Running locally

Requires Go 1.27+ and PostgreSQL 16+. Docker is the quickest path:

cp .env.example .env
# Set POSTGRES_PASSWORD and BOOND_ADMIN_PASSWORD (12+ chars) in .env.
docker compose up -d --build
curl http://127.0.0.1:8080/healthz

Every server also serves an interactive API reference at /docs and the raw OpenAPI document at /openapi.json (for example http://127.0.0.1:8080/docs).\n\nThe reference compose ports bind to loopback only: web at http://127.0.0.1:3000 and API at http://127.0.0.1:8080. For a public deployment, put a TLS reverse proxy in front of the API/web origins and add its CIDRs to BOOND_TRUSTED_PROXIES; do not expose PostgreSQL.

Without Docker, point BOOND_DATABASE_URL at any PostgreSQL 16+ database and run:

go run ./cmd/boond migrate
go run ./cmd/boond serve

Registration defaults to closed. Create the first administrator with BOOND_ADMIN_USER, BOOND_ADMIN_EMAIL, and a 12+ character BOOND_ADMIN_PASSWORD, or run after boot:

BOOND_ADMIN_PASSWORD='...' go run ./cmd/boond admin create

To enable self-service registration, set BOOND_SIGNUP=open (or invite with BOOND_SIGNUP_INVITE_CODE). Email confirmation defaults to on when SMTP is configured; the first admin is confirmed automatically.

Database migrations are embedded in the binary and applied by serve unless BOOND_MIGRATE_ON_START=false.

Implemented so far

  • /v1 and /rest/v1 aliases; JSON error envelope; CORS; CSRF for cookie writes.
  • Email signup/login/logout, Argon2id passwords, cookie sessions, bearer-token lookup.
  • GET/PUT /user, stats, subscription stub, account deletion, public user lookup.
  • Nested collection CRUD, roots/all/children, bulk expand/view/sort, clean, lastAction.
  • Raindrop CRUD, list/paging/sort/search, atomic batch create/update/delete, trash/restore, link list, duplicates lookup, preview, tags, filters.
  • Keyword search with filter operators; search_vector/relevance ranking and rendered-content search are deferred.
  • Sharing: collaborators, reusable/per-email invitations, role changes, leave/remove, token acceptance, access levels.
  • Public pages: descendant inheritance, HTML with canonical/OG metadata, embed mode, RSS, JSON mode, public-only projection, and a public sitemap.
  • Uploads: files, raindrop/collection covers, avatars, local blob storage, MIME checks, quotas, and authenticated file downloads.
  • OAuth: client CRUD/secret rotation, test tokens, authorization codes with PKCE, refresh/password grants, connection listing, and bearer access tokens.
  • Web client: prebuilt upstream UI with connection-only overrides; same-origin Caddy deployment and runtime /config.js for a custom API origin. See web/README.md.
  • Collection icon picker: server-searched catalog backed by the color icon packs; manifests are indexed server-side and fonts are fetched lazily. See internal/icons/README.md.
  • Import/export: Netscape/CSV/JSON/TXT/ENEX/ZIP import previews, nested HTML/CSV/TXT/ZIP exports, and lossless ZIP backups with backup.json.
  • Auth extras: TOTP 2FA with recovery codes, single-use desktop JWT handoff, password reset and email-confirmation token flows, and SMTP delivery.
  • Admin console at /admin: user management, environment overrides, backup management, and PostgreSQL dumps.
  • Automatic backups with retention, operator S3-compatible upload plus optional encrypted per-user S3 destinations, duplicate detection, favicon/render endpoints, and the default admin account.
  • Highlights: global/scoped listing and TXT/CSV export; recent searches; collection merge.
  • Soft-deleted accounts are purged after 24 hours by a background worker.
  • Embedded PostgreSQL migration and embedded-Postgres integration tests.

The bundled admin console is available at /admin; see docs/admin.md. Archive capture is implemented with SSRF guards and HTML sanitization. SMTP delivery covers verification, password recovery, and backup-ready notices; the automatic backup scheduler and operator/per-user S3-compatible upload destinations are available. Reminder delivery remains out of scope and is logged rather than pushed. Still stubbed (explicit 501): social sign-in configuration and screenshot rendering without BOOND_RENDER_URL. See PROGRESS.md.

Reference repositories

  • https://github.com/raindropio/developer-site — public REST API documentation
  • https://github.com/raindropio/app — web app and browser extensions
  • https://github.com/raindropio/desktop — Electron desktop app
  • https://github.com/raindropio/android — Android app

Status

Specification: complete draft. Server: core API, auth, collections, raindrops, tags, filters, keyword search, sharing/public pages, uploads, OAuth, imports/exports, lossless backups, duplicate detection, SMTP, and the bundled admin console are implemented and integration-tested against PostgreSQL. The web client is available as a separately deployed static bundle in web/. Automatic/S3 backups (operator default plus optional per-user S3 destinations), favicon, and an optional renderer are implemented. Reminder delivery, broken-link checks, rendered-content search, and social sign-in remain deferred; Dropbox/GDrive/OneDrive destinations are still pending. See PROGRESS.md for the running log.

About

Self-hostable, clean-room Raindrop.io-compatible bookmark management server in Go

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages