Deploy Grovs | (Just Updated) Firebase Dynamic Links Alternative, Deep Linking, Sign-up Closed

Grovs deep linking and attribution platform, Branch alternative

Deploy Grovs | (Just Updated) Firebase Dynamic Links Alternative, Deep Linking, Sign-up Closed

/data

/var/lib/clickhouse

/app/storage

/var/lib/postgresql

Deploy and Host Grovs on Railway

Built for an LLM agent to deploy and use. The deploy form has no fields to fill: the admin login, the OAuth client, the encryption keys and the database passwords are generated, the admin user is created before the API is reachable, public sign-up is closed, and the API refuses every request without a token. Grovs is an open-source deep linking, attribution and referral platform, the self-hosted alternative to Branch and the retired Firebase Dynamic Links, with no S3 bucket and no custom domain to set up.

About Hosting Grovs

This template runs five services: app, the Grovs API with its five background worker queues (Grovs 3.0.1, Community Edition), public on port 8080 with a healthcheck at /healthz and a volume at /app/storage for uploads; dashboard, the Next.js admin dashboard, public on port 8080; db, PostgreSQL 16 with a volume at /var/lib/postgresql; redis, Redis 7 for the job queues and cache with a volume at /data; and clickhouse, ClickHouse 25.3 for link and event analytics with a volume at /var/lib/clickhouse. Each runs from a thin wrapper image over the pinned upstream image, pinned by tag and digest.

What the wrapper fixes. Upstream's self-host guide is a compose stack that needs an S3 bucket for uploads and a wildcard custom domain, because Grovs picks what to serve from the first label of the Host header (api., sdk., go., one per project). Railway gives one generated domain per service. The wrapper runs the migration, the API, the five Sidekiq queues and a small gateway in the one app service, because Railway allows one volume per service and the uploads must be shared by all of them. The gateway sets the api. or sdk. label itself on the Railway domain, uploads are kept on the volume instead of S3, every address is derived from the service's own public domain, and the volume is handed to the right owner before the processes start. The first install creates the databases, the schema and the admin user, and takes a few minutes; the gateway answers /healthz while it runs. Redeploys keep the secrets, the database, the analytics and the uploads.

Using it. Open the dashboard domain and sign in with BOOTSTRAP_ADMIN_EMAIL and BOOTSTRAP_ADMIN_PASSWORD from the app service. An agent requests a token from the app domain with the OAuth password grant and sends it as a bearer token to the API. Email sending is off; set SMTP variables on the app service for invitations and resets. The Railway domain serves the API and the dashboard; links on your own domain need a wildcard domain pointed at the app service, which is an option, not a requirement.

License. Grovs is dual licensed: the core is under the MIT License and the ee/ directory (segments, push, journeys, SSO and more) needs a subscription. The image this template runs has no ee/ directory, so everything it runs is MIT.

Agent contract

  • Public URL: https:// plus the RAILWAY_PUBLIC_DOMAIN variable of the app service (the API); the dashboard is on the dashboard service domain
  • Private URL: http://app.railway.internal:8080
  • Credentials: the variables BOOTSTRAP_ADMIN_EMAIL, BOOTSTRAP_ADMIN_PASSWORD, OAUTH_CLIENT_UID and OAUTH_CLIENT_SECRET on the app service
  • Auth: request a token with POST /oauth/token (JSON body grant_type password, email, password, client_id, client_secret) and send Authorization: Bearer plus the returned access_token; every /api/v1 route answers 401 without it
  • Health: GET /up returns 200 without credentials once the API is running (GET /healthz answers 200 earlier, while the first migration runs)
#!/bin/sh
# needs: RAILWAY_PUBLIC_DOMAIN, BOOTSTRAP_ADMIN_EMAIL, BOOTSTRAP_ADMIN_PASSWORD, OAUTH_CLIENT_UID, OAUTH_CLIENT_SECRET
# (variables of the app service); also curl.
R="https://$RAILWAY_PUBLIC_DOMAIN"; J="content-type: application/json"
n=0; until [ "$(curl -s -o /dev/null -w '%{http_code}' "$R/up")" = 200 ]; do n=$((n+1)); [ "$n" -le 180 ] || break; sleep 5; done
curl -s -o /dev/null -w "health: %{http_code}\n" "$R/up"
# sign-up is closed: the user create route refuses a stranger
curl -s -o /dev/null -w "public signup: %{http_code}\n" -H "$J" -d '{"email":"stranger@example.com","password":"Not-the-real-one-12345"}' "$R/api/v1/users"
# the generated password is the admin account: the OAuth password grant returns a bearer token
TOKEN=$(curl -s -H "$J" -d "{\"grant_type\":\"password\",\"email\":\"$BOOTSTRAP_ADMIN_EMAIL\",\"password\":\"$BOOTSTRAP_ADMIN_PASSWORD\",\"client_id\":\"$OAUTH_CLIENT_UID\",\"client_secret\":\"$OAUTH_CLIENT_SECRET\"}" "$R/oauth/token" | sed -n 's/.*"access_token":"\([^"]*\)".*/\1/p')
if [ -n "$TOKEN" ]; then echo "login: 200"; else echo "login: failed"; fi
BODY='{"name":"Admin"}'
# write-auth: PATCH /api/v1/users/me needs the token; without it, or with a wrong one, the answer is 401
curl -s -o /dev/null -w "read with key: %{http_code}\n" -H "Authorization: Bearer $TOKEN" "$R/api/v1/users/me"
curl -s -o /dev/null -w "write with key: %{http_code}\n" -X PATCH -H "Authorization: Bearer $TOKEN" -H "$J" -d "$BODY" "$R/api/v1/users/me"
curl -s -o /dev/null -w "write without key: %{http_code}\n" -X PATCH -H "$J" -d "$BODY" "$R/api/v1/users/me"
curl -s -o /dev/null -w "write wrong key: %{http_code}\n" -X PATCH -H "Authorization: Bearer not-a-real-token" -H "$J" -d "$BODY" "$R/api/v1/users/me"

Expected output against a fresh deploy:

health: 200
public signup: 403
login: 200
read with key: 200
write with key: 200
write without key: 401
write wrong key: 401

The refusals are the contract: a request without a token is refused (write without key: 401), a stranger cannot create an account (public signup: 403) and a wrong token is refused (write wrong key: 401).

Why Deploy Grovs on Railway?

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 Grovs 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.

  • Agent-ready - no deployer fields, a contract block, and one script that proves the API is healthy, strangers cannot create an account, the generated password is the admin and the API refuses writes without a token.
  • No S3 and no custom domain - uploads live on a volume and the Railway domain is enough to log in and use the API.
  • Five services wired for you - the API, the dashboard, PostgreSQL, Redis and ClickHouse reference each other, no manual URLs.
  • Data survives redeploys - each stateful service has a volume, and the generated secrets stay the same.
  • Pinned - Grovs and the infrastructure images are pinned by tag and digest, and so are the wrapper images.

Common Use Cases

  • Firebase Dynamic Links replacement - deep links that open the right screen in your iOS or Android app, with deferred deep linking after install.
  • Self-hosted Branch alternative - link attribution, campaigns and analytics in your own database, with no per-event fee.
  • Referral and invite links - track which user or campaign brought each install.
  • Deep linking backend for an AI agent - give an agent the admin login to create projects and links through the API.

Dependencies for Grovs Hosting

  • Five services (app, dashboard, db, redis, clickhouse), each stateful one with a volume, created by the template.

Deployment Dependencies


Template Content

More templates in this category

View Template
Plausible WordPress
Cookie-free WordPress stats from your own Plausible

onepush
0
View Template
Typesense Multilingual
Locale-aware multilingual search with Typesense

onepush
0
View Template
Formbricks
Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Two Workspaces
3