HUB
Sign inSign up
mixdive logo

mixdive/mixdive

By mixdive

•Updated about 18 hours ago

Self-hosted product & web analytics. One container + MongoDB. Your data never leaves your servers.

Image
Developer tools
Monitoring & observability
Web analytics
3

767

mixdive/mixdive repository overview

⁠Mixdive

Product analytics you can run yourself. Your apps send events. Mixdive gives every event its own report screen, a page per customer and a page per order, account or ticket, with nothing defined up front.

mixdive.com⁠ · Documentation⁠ · Source on GitHub⁠ · Open source (AGPL-3.0)

An event's report in the Mixdive console: totals, daily trend, top customers, top products and a breakdown by payment method

⁠Insight or ownership? You shouldn't have to choose

Most analytics tools ask you to send your users' behaviour to somebody else's servers, or fly blind. This image is the third option: the same reports, running on a machine you control.

Your users' data stays on your infrastructure. No vendor holds a copy of who your users are or what they did. Mixdive itself makes one small call, a version check when an owner or admin opens the server's settings. It sends nothing about your installation, and it has an off switch.

Nothing to configure before you get value. Send an event and its report exists. Properties register themselves the first time they appear, so a new field is one click from a breakdown.

Projects kept apart. One server holds your organization, with owners, admins and members, and as many projects as you need. No project can see another's data.

Open source and free. The server is AGPL-3.0, the SDKs are Apache-2.0. Every feature is in the image: no paid edition, no licence key, no seat count, no event limit.

⁠Try it in a minute

Docker, and nothing else:

curl -O https://docs.mixdive.com/compose.yaml
docker compose up -d

That brings up Mixdive, a MongoDB with a persistent volume, Caddy in front for HTTPS, and a small clock service that asks Mixdive to process what it received once a minute. Open http://localhost:8080, or your server's address. A one-time setup form asks for your organization's name, its first project, the address your apps will send to and your own account, which becomes the organization's owner. Then create an app under Settings → Apps & API keys to get a key, and add your colleagues under Settings → Members.

Already running a MongoDB? Skip Compose, and add the minute call yourself:

docker run -d --name mixdive -p 8080:8080 \
  -e MONGODB_URI="mongodb://..." \
  mixdive/mixdive:latest
# then, from cron:
# * * * * * curl -fsS -X POST http://localhost:8080/api/tick

⁠What you get

Four modules, each switched on or off per project, so a project that only wants web traffic never grows a users table.

ModuleWhat it does
Event analyticsEvery event gets a report: totals, trends, top users, breakdowns by any property it carries. Add measures and an event counts revenue, duration or quantity as well as occurrences.
Web analyticsVisitors, pages and the browsers, devices and app versions behind them, from a one-line script tag.
User analyticsProfiles, per-user activity, and relations with roles, so "likes given" and "likes received" are two different numbers.
Data modelsRecords that merge and increment. A product, an order, a support ticket, each with its own screen and its own counters.

An ingest request is stored and answered at once; the minute call processes it, so reports trail your apps by about a minute. Each event counts exactly once, so a retry or a double delivery never inflates a number.

⁠HTTPS with nothing to edit

Give the setup form an https:// address, point that name's DNS record at the machine, and leave ports 80 and 443 open. The bundled proxy gets the certificate the first time somebody opens the address and renews it on its own. It asks Mixdive first, and Mixdive only approves the one name you configured. How it works⁠.

⁠Configuration

VariableDefaultMeaning
MONGODB_URImongodb://localhost:27017the database Mixdive uses; the path may name it (/acme), else mixdive
PORT8080HTTP port

Those two are all an installation needs. The server URL, the optional sign-in captcha and the version check are under Settings → Server, for owners and admins; retention and modules are each project's settings.

⁠Tags and upgrades

latest moves to whatever was released last. Version tags stay put, so pin one when you want to choose your own upgrade moment. Every tag is built for linux/amd64 and linux/arm64. Upgrading is docker compose pull && docker compose up -d. Settings → Server and GET /health show the version and the commit an installation runs.

Coming from 0.2? 0.3.0 cannot take over a 0.2 database yet: it refuses one and says so. To stay on 0.2, pin mixdive/mixdive:0.2.1 in your compose.yaml before you pull. To move, start 0.3.0 on a new, empty database with the new compose.yaml, which adds the clock service. What changed in 0.3.0⁠.

⁠Sending data

A web tag⁠ you paste once, React⁠, Next.js⁠, SDKs for Node.js⁠ and Go⁠, a Google Tag Manager template⁠, and an HTTP API⁠ that needs no SDK at all. More SDKs are coming; if the one you need is missing, write to [email protected]⁠.

⁠Where to go next

  • mixdive.com⁠: what the product does, how it compares, and a devlog you can follow.
  • docs.mixdive.com⁠: the guides, the concepts and the ingest contract.
  • Running a real product with data that cannot go to a third party? A few lines to [email protected]⁠ is enough. You get a reply from a person.

Mixdive is open source under the GNU AGPL v3, and the code is on GitHub⁠. Issues and pull requests are welcome there.

Tag summary
Recent tags
Content type
Image
Digest
sha256:d0add01e2…
Size
6.1 MB
Last updated
about 18 hours ago
docker pull mixdive/mixdive:latest