Deploy Grimoire
Private bookmark manager with semantic search, behind a login
grimoire
Just deployed
/data
Deploy and Host self hosted Grimoire (Other) on Railway
This template deploys Grimoire, a local-first bookmark manager with imports, readable-content extraction and keyword plus semantic search, as independent community packaging of goniszewski/grimoire v1.4.0 (MIT). It is not affiliated with or endorsed by Grimoire.
About Hosting Grimoire open-source software on Railway (self hosted Grimoire template)
Grimoire is MIT-licensed open-source software, and this template runs the upstream goniszewski/grimoire v1.4.0 image in your own Railway project, so your bookmark library lives in a volume you control rather than on a third-party service.
Why Deploy Grimoire, the self-hosted bookmark manager behind a login on Railway
Self-hosting Grimoire keeps your bookmark library on infrastructure you control, rather than in a hosted bookmark service whose plans and data policies you do not set.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Grimoire on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for Grimoire self hosting
Running a self-hosted Grimoire instance means choosing where the single service and its volume will live, and the trade-offs differ across providers.
| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | A one-click template with the service, volume at /data, health check and password login preconfigured. | A droplet you manage yourself, with full control over the OS, reverse proxy and backups. |
| AWS | A single deployable template with no cloud account wiring or networking setup required. | Broad infrastructure services and fine-grained IAM, networking and storage choices you configure by hand. |
| Hetzner | A managed deploy path that avoids provisioning a server, installing Docker and setting up Caddy. | Low-cost dedicated or cloud servers where you install Docker, Caddy and the volume yourself. |
Common Use Cases for hosted Grimoire
- Private research library: Keep a personal archive of articles, papers and reference pages, then search it later by keyword or by meaning when you cannot remember the exact title.
- Bulk import from an old bookmark file: Bring an exported browser bookmark file into Grimoire in one go, so years of saved links become searchable instead of sitting in a folder you never open.
- Readable copies of saved pages: Let Grimoire extract the readable content of each saved link, so the text stays available even when the original page moves, changes or disappears.
- Team-of-one knowledge base: Store project notes, tool documentation and how-to links in one place behind a login, with the data kept on the Railway volume at /data.
- Semantic recall across topics: Use semantic search to find related saved pages that share an idea but not the same words, which keyword search alone would miss.
Dependencies for Grimoire Docker hosted on Railway
Grimoire deploys as one service with no required inputs. Keep one replica, because the library lives on local persistent storage.
Deployment Dependencies for Managed Grimoire Service
- Service: one service named grimoire, running ghcr.io/onepush-dev/grimoire:1.4.0.
- Public port: 8080, where Caddy listens.
- Volume: /data for the library, settings and backups.
- Health check: /health with a 300 second timeout, not behind the password.
- Restart policy: Always, with one replica.
Implementation Details for Grimoire
The image ghcr.io/onepush-dev/grimoire:1.4.0 is the unmodified upstream goniszewski/grimoire:1.4.0 image plus an unmodified upstream Caddy 2.11.9 binary. Caddy password protection uses username admin and a generated GRIMOIRE_PASSWORD. The /mcp, /capture and browser-extension routes use Grimoire's own bearer tokens, not that password. The daemon listens on 127.0.0.1:3210 only, and Caddy is the public listener on 8080. Update CORS_ORIGINS if you attach a custom domain.
How does Grimoire compare against other tools
Grimoire vs a hosted bookmark service (Hosted Bookmark Service Alternative)
- Data location: Grimoire keeps your library in SQLite on a volume you control. A hosted service keeps it on the vendor's servers.
- Setup effort: A hosted service works the moment you sign up. Grimoire needs a Railway deploy, a generated password and a volume.
- Maintenance: A hosted service handles upgrades and uptime for you. With Grimoire you handle upgrades and backups of the /data volume.
Grimoire vs keeping links only in the browser (Browser Bookmarks Alternative)
- Cross-device access: Browser bookmarks sync within one browser ecosystem. Grimoire is a web app behind a login, so any browser can reach the library.
- Search and extraction: Browser bookmarks search by title and URL. Grimoire also extracts readable content and offers keyword and semantic search.
- Simplicity: Browser bookmarks need no setup and are the lighter choice for a few links.
Grimoire with Docker vs Railway (Docker on a VPS Alternative)
- Control: Running the upstream image with Docker on your own VPS gives you full control over the host, networking and proxy. Railway manages the host for you.
- Setup: The Railway template wires the service, volume, health check and password in one step. A Docker setup means configuring those yourself.
- Cost model: Railway is usage-based, while a VPS is a fixed server cost. Check current rates on each platform before you decide.
How to use Grimoire on Railway?
- Open the public domain that Railway assigned to your Grimoire service. The browser will ask for a login.
- Sign in with the username admin and the GRIMOIRE_PASSWORD value generated during deploy. Treat that password like any other secret.
- Add your first bookmarks from the web app, then let Grimoire extract titles and readable content as they save.
- If you plan to use /mcp, /capture or the browser extension, create Grimoire integration tokens inside the app first. Those routes use Grimoire's own bearer tokens rather than the GRIMOIRE_PASSWORD login.
- Keep the service at one replica, because the SQLite library on the /data volume is local state. Railway checks the health endpoint at:
/health
How to self host Grimoire on other VPS Services (Grimoire self hosting guide)
Clone the Repository
Clone the upstream repository at the v1.4.0 tag so you start from the matching source.
git clone --branch v1.4.0 https://github.com/goniszewski/grimoire.git
cd grimoire
Install Dependencies
Install Docker (or a compatible container runtime) on your VPS. You do not need Node.js on the host when you run the upstream container image.
Configure Environment Variables
Set a strong password and the origin your browser uses. Replace the placeholders with your own values.
export GRIMOIRE_PASSWORD=your-generated-password
export CORS_ORIGINS=https://your-domain
Start the Grimoire Application
Use the upstream flow: run the documented grimoire container behind your own authenticated reverse proxy, and keep the daemon off the public internet.
Railway handles the container build, the public HTTPS domain, the persistent volume and the health check for you, so this manual setup is only needed if you run Grimoire on your own VPS.
Pricing and License of Grimoire (Grimoire pricing)
Grimoire is MIT-licensed open-source software, and the upstream project is free to self-host.
Grimoire hosted vs self hosted comparison (Pricing, features, costs, and more)
This template packages the MIT software. No hosted bookmark-service plan prices are quoted here.
Monthly cost of self hosting Grimoire on Railway
Railway bills on usage, so the monthly cost depends on RAM, CPU, volume size and the services you run. Check usage in your own project after a few days of real use.
System Requirements for Hosting Grimoire on a VPS
Grimoire runs as a single Node process with SQLite storage on a volume, so a small VPS with enough disk for your library is a reasonable start.
Frequently Asked Questions (FAQs)
How do I sign in to Grimoire?
Open your Railway domain and enter the username admin with the GRIMOIRE_PASSWORD value generated for your service at the Caddy login prompt. Caddy is the only public listener, and it requires that login on every route except the /health check. The Grimoire daemon itself listens only on 127.0.0.1:3210 inside the container (the start script pins that port because Railway injects PORT=8080).
Do /mcp, /capture and the browser extension use that password?
No. Requests to /mcp, /capture and /integrations/browser/v1/ (and their OPTIONS preflights) use Grimoire's own bearer tokens, which you create in Grimoire's settings, so they do not use the Caddy password. Everything else still needs the basic-auth login.
What should I back up?
Back up the /data volume, since it holds the SQLite library, settings and backups. Keep one replica so the local persistent state stays in a single place. If you add a custom domain, add that origin to CORS_ORIGINS as well.
Is Grimoire a single-user app?
Yes. Grimoire is built for one user, so this template is meant for one person's bookmark library rather than a shared team instance.
Does Grimoire need AI keys to work?
No. Keyword and semantic search work without them, and optional AI tagging can be added later through environment variables or the app's settings.
Is this affiliated with Grimoire?
No. This is independent community packaging of goniszewski/grimoire v1.4.0 (MIT), and it is not affiliated with or endorsed by Grimoire.
Template Content
