02 / 03 · Software and infrastructure · Personal project
Self-Hosted Data Platform
A Raspberry Pi 5 at home running 20+ small Node.js and Python services around the clock. They track my personal data and control devices and projects around the house, and I run all of it myself.
Overview
The platform is a set of small services rather than one big app. Each one does a single job, like tracking one kind of personal data or controlling a device at home, and keeps its own SQLite database, so each service's data stays separate from the rest.
All of it runs 24/7 on a single Raspberry Pi 5 and is reachable over HTTPS through a Cloudflare tunnel.
- Type
- Personal project
- Hardware
- Raspberry Pi 5
- Services
- 20+, written in Node.js and Python
- Storage
- SQLite, one database per service
- Access
- HTTPS through a Cloudflare tunnel; SSH for admin
By the numbers
20+Services, each with its own SQLite store
24/7Running around the clock
1Raspberry Pi 5 runs all of it
How a request gets in
- 01
Browser
An HTTPS request comes in.
- 02
Cloudflare tunnel
Carries the request to the Pi at home.
- 03
Raspberry Pi 5
Checks the login, with throttling on repeated attempts.
- 04
Service
One of 20+ Node.js or Python services handles it.
- 05
SQLite
Each service reads and writes its own database.
Keeping it running
I administer the Pi over SSH. Logins are throttled so repeated password guesses slow to a crawl, and all traffic reaches the Pi over HTTPS through the tunnel.
The data is backed up every night, so a hardware failure or a bad change costs at most a day of data.