<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Alessio Masucci]]></title><description><![CDATA[Alessio Masucci]]></description><link>https://mscalessio.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 01:50:02 GMT</lastBuildDate><atom:link href="https://mscalessio.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Self-host Tracky with Docker: a step-by-step guide]]></title><description><![CDATA[Docker Compose, self-hosted Convex, no product telemetry, and one honest dependency: WorkOS.]]></description><link>https://mscalessio.hashnode.dev/self-host-tracky-with-docker-a-step-by-step-guide</link><guid isPermaLink="true">https://mscalessio.hashnode.dev/self-host-tracky-with-docker-a-step-by-step-guide</guid><category><![CDATA[self-hosted]]></category><category><![CDATA[Docker]]></category><category><![CDATA[open source]]></category><category><![CDATA[personal finance]]></category><dc:creator><![CDATA[Alessio Masucci]]></dc:creator><pubDate>Thu, 26 Nov 2026 10:49:17 GMT</pubDate><content:encoded><![CDATA[<p>I'm Alessio, maintainer of <a href="https://github.com/masushidotdev/tracky">Tracky</a>, an MIT-licensed, zero-based budgeting app. Docker self-hosting is now on the <code>main</code> branch of the repository, so here is the setup, step by step. Every command below comes from <a href="https://github.com/masushidotdev/tracky/blob/main/docs/self-hosting.md">docs/self-hosting.md</a>.</p>
<p>The version on the project site is the canonical one, in <a href="https://www.trytracky.app/blog/self-hosting-tracky-docker">English</a> and <a href="https://www.trytracky.app/it/blog/self-hosting-tracky-docker">Italian</a>.</p>
<p>One honest note first: self-hosting Tracky still needs a <strong>WorkOS account</strong>. More on that below.</p>
<h2>Why self-host</h2>
<ul>
<li>Your financial data stays on your own disk. By default Convex stores its SQLite database and uploaded blobs in the <code>convex-data</code> Docker volume.</li>
<li>The code is MIT licensed: you can read it, audit it and pin it. The upstream Convex backend and dashboard images are pinned by digest in <code>docker-compose.yml</code>.</li>
<li>The self-hosted build has no product telemetry.</li>
<li>Optional integrations (Enable Banking, AI Analyst, Resend, Telegram) stay off until you provide your own keys.</li>
</ul>
<h2>What you need</h2>
<ul>
<li>Docker 24+ with Docker Compose v2.</li>
<li>Node.js 22, only to run the setup script. The script has zero npm dependencies, so <code>npm ci</code> is not required.</li>
<li>A free <a href="https://workos.com/">WorkOS</a> account (AuthKit).</li>
</ul>
<p>WorkOS is required and external. Tracky verifies WorkOS RS256 JWTs and uses WorkOS AuthKit for sign-in and session cookies. WorkOS remains an external SaaS (a free developer tier is available). That means self-hosting Tracky is not 100% offline or independent today.</p>
<h2>Quick start</h2>
<pre><code class="language-bash">git clone https://github.com/masushidotdev/tracky.git
cd tracky
node scripts/selfhost-setup.mjs     # or `npm run selfhost:setup`
docker compose up -d
</code></pre>
<p>Open <code>http://localhost:3000</code>.</p>
<p>The setup script:</p>
<ul>
<li>prompts for your WorkOS Client ID (<code>client_...</code>) and API key (<code>sk_...</code>, hidden input);</li>
<li>configures the redirect URI, the app homepage URL and the CORS origin through the WorkOS API;</li>
<li>generates the missing random secrets (<code>INSTANCE_SECRET</code>, <code>WORKOS_COOKIE_PASSWORD</code>, and a placeholder <code>WORKOS_WEBHOOK_SECRET</code> for localhost/LAN);</li>
<li>writes <code>.env</code> atomically with mode <code>0600</code>.</li>
</ul>
<p>Re-running it is idempotent: existing secrets and custom variables are kept. Use <code>--dry-run</code> to preview the planned WorkOS API calls and <code>.env</code> changes without network requests or writing files, and <code>--yes</code> for non-interactive mode.</p>
<h3>Prefer to do it by hand?</h3>
<pre><code class="language-bash">cp .env.selfhost.example .env
openssl rand -hex 32          # -&gt; INSTANCE_SECRET
openssl rand -base64 32       # -&gt; WORKOS_COOKIE_PASSWORD (min 32 chars)
echo "whsec_$(openssl rand -hex 16)" # -&gt; local/LAN WORKOS_WEBHOOK_SECRET placeholder (requires backfill; see below)
</code></pre>
<p>Edit <code>.env</code> with your <code>WORKOS_CLIENT_ID</code>, <code>WORKOS_API_KEY</code> and the generated secrets. In <a href="https://dashboard.workos.com/">dashboard.workos.com</a>, add <code>http://localhost:3000/callback</code> under Redirects. Then run <code>docker compose up -d</code>.</p>
<h2>First sign-up on a local or LAN install</h2>
<p>Tracky only opens the app once the user record exists in Convex's AuthKit table. On localhost or a private network, WorkOS cannot reach your host with webhooks, so after each new user signs up, run:</p>
<pre><code class="language-bash">docker compose --profile tools run --rm convex-backfill
</code></pre>
<p>It runs <code>auth:backfillUsers</code>, which imports users from the WorkOS API into Convex. Without the webhook, <code>user.updated</code> and <code>user.deleted</code> events do not sync automatically.</p>
<p>For internet-facing installs, use the webhook instead: expose the Convex site origin (port <code>3211</code>) over HTTPS, create a WorkOS webhook pointing to <code>https://&lt;your-convex-site&gt;/workos/webhook</code> for <code>user.created</code>, <code>user.updated</code> and <code>user.deleted</code>, and paste its signing secret into <code>WORKOS_WEBHOOK_SECRET</code>.</p>
<h2>Optional: Convex dashboard</h2>
<pre><code class="language-bash">docker compose --profile dashboard up -d
</code></pre>
<p>It listens on <code>http://localhost:6791</code>. To get the admin key: <code>docker compose exec backend ./generate_admin_key.sh</code>. Never publish port <code>6791</code> publicly.</p>
<h2>Going public behind a reverse proxy</h2>
<p>Terminate TLS with Caddy, Nginx or Traefik and forward three hostnames: the app to <code>127.0.0.1:3000</code>, the Convex API to <code>127.0.0.1:3210</code> (it must proxy WebSockets and <code>Upgrade</code> headers) and the Convex HTTP actions to <code>127.0.0.1:3211</code>. Then:</p>
<pre><code class="language-bash">node scripts/selfhost-setup.mjs \
  --public-url https://tracky.example.com \
  --convex-url https://convex.example.com \
  --convex-site-url https://convex-site.example.com
docker compose up -d --build
</code></pre>
<p>The rebuild is needed because <code>VITE_CONVEX_URL</code> is baked into the client bundle at build time.</p>
<h2>Upgrading</h2>
<p>Back up the volume first (next section), then:</p>
<pre><code class="language-bash">git pull
docker compose up -d --build
</code></pre>
<p>The one-shot <code>convex-deploy</code> service runs before <code>app</code> restarts and pushes any updated Convex schema and functions.</p>
<h2>Backup and restore</h2>
<p>The commands below use <code>jq</code>. Stop <code>app</code> and <code>backend</code> briefly for a consistent SQLite snapshot.</p>
<pre><code class="language-bash">docker compose stop app backend
docker run --rm \
  -v "$(docker compose config --format json | jq -r '.name')_convex-data:/data:ro" \
  -v "$PWD:/backup" \
  debian:bookworm-slim \
  tar czf "/backup/tracky-convex-$(date +%Y%m%d-%H%M%S).tar.gz" -C /data .
docker compose start backend app
</code></pre>
<p>Restore:</p>
<pre><code class="language-bash">docker compose stop app backend
docker run --rm \
  -v "$(docker compose config --format json | jq -r '.name')_convex-data:/data" \
  -v "$PWD:/backup:ro" \
  debian:bookworm-slim \
  sh -c 'rm -rf /data/* &amp;&amp; tar xzf /backup/tracky-convex-YYYYMMDD-HHMMSS.tar.gz -C /data'
docker compose up -d
</code></pre>
<p>Keep a secure copy of <code>.env</code> next to your backups, especially <code>INSTANCE_SECRET</code>, <code>INSTANCE_NAME</code> and <code>WORKOS_COOKIE_PASSWORD</code>.</p>
<h2>Privacy: no telemetry in the self-hosted build</h2>
<ul>
<li>PostHog analytics is hard-disabled at build time (<code>CLOUDFLARE_ENV=selfhost</code>, <code>VITE_POSTHOG_ENABLED=false</code>).</li>
<li>The Convex backend beacon is disabled (<code>DISABLE_BEACON=true</code>).</li>
<li>Wrangler telemetry and error reports are disabled.</li>
</ul>
<p>WorkOS still sees your sign-ins, because it is the authentication provider.</p>
<h2>Limits</h2>
<p>Tracky builds as a Cloudflare Worker, and the self-host image runs it locally on <code>workerd</code>, behind a small edge proxy. It is meant for single-node, personal or household use, not for multi-replica scaling.</p>
<h2>Links</h2>
<ul>
<li>Full guide on the site: <a href="https://www.trytracky.app/blog/self-hosting-tracky-docker">https://www.trytracky.app/blog/self-hosting-tracky-docker</a></li>
<li>Self-hosting docs: <a href="https://github.com/masushidotdev/tracky/blob/main/docs/self-hosting.md">https://github.com/masushidotdev/tracky/blob/main/docs/self-hosting.md</a></li>
<li>Code (MIT): <a href="https://github.com/masushidotdev/tracky">https://github.com/masushidotdev/tracky</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Tracky v0.1.0: first public MIT release of an open-source budget app]]></title><description><![CDATA[I'm Alessio, maintainer of Tracky. On 24 November 2026 I tagged v0.1.0, the first public semver release of this MIT-licensed personal finance tracker…]]></description><link>https://mscalessio.hashnode.dev/tracky-v0-1-0-first-public-mit-release-of-an-open-source-budget-app</link><guid isPermaLink="true">https://mscalessio.hashnode.dev/tracky-v0-1-0-first-public-mit-release-of-an-open-source-budget-app</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[personal finance]]></category><category><![CDATA[open source]]></category><dc:creator><![CDATA[Alessio Masucci]]></dc:creator><pubDate>Tue, 24 Nov 2026 10:52:49 GMT</pubDate><content:encoded><![CDATA[<p>I'm Alessio, maintainer of <a href="https://github.com/masushidotdev/tracky">Tracky</a>. On 24 November 2026 I tagged <strong>v0.1.0</strong>, the first public semver release of this MIT-licensed personal finance tracker.</p>
<p>Please treat <a href="https://www.trytracky.app/blog/tracky-v0-1-0">the site article</a> as the canonical version (<a href="https://www.trytracky.app/it/blog/tracky-v0-1-0">Italian</a>). Full notes live in the <a href="https://github.com/masushidotdev/tracky/releases/tag/v0.1.0">GitHub release</a> and in <a href="https://github.com/masushidotdev/tracky/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>. This post does not invent user numbers, star counts, or reviews.</p>
<h2>The release</h2>
<p>Tracky has been public on GitHub since 15 September 2026 (commit <code>654561d</code>). v0.1.0 collects that initial public release through pull request #64.</p>
<p>You can try the <a href="https://www.trytracky.app">hosted demo</a> for free, with no card and no checkout, or clone <a href="https://github.com/masushidotdev/tracky">masushidotdev/tracky</a> and host it yourself. The stack is Convex, TanStack Start, and WorkOS AuthKit.</p>
<h2>Highlights, from the changelog</h2>
<ul>
<li><strong>Zero-based Plan</strong>, with Ready to Assign, targets, and dedicated card payment buckets. More than one plan is reserved for a future Pro tier.</li>
<li><strong>Mortgages and loans</strong>, cash accounts, manual cards, and manual asset accounts. Arranged overdraft limits are shown separately and do not inflate spendable balances.</li>
<li><strong>Ledger</strong> improvements (filter, sort on the most recent 5,000 transactions, bulk actions) and <strong>browser-side CSV import</strong> for manual accounts.</li>
<li><strong>Cash Flow</strong>, Safe-to-spend, <strong>Reports</strong>, and <strong>Goals</strong>. Multi-scenario Forecast remains a reserved Pro feature and is presented as estimates.</li>
<li>Optional <strong>AI Analyst</strong>, disabled on the hosted demo and off unless <code>VITE_ANALYST_ENABLED=true</code> on your own deployment. Sensitive writes need explicit in-chat approval. It is not financial advice.</li>
<li><strong>Immediate, irreversible account erasure</strong> from Settings, with an optional JSON export first.</li>
<li>Opt-in, <strong>client-only EU PostHog</strong> analytics that do not send amounts or account names.</li>
<li>Security hardening: no application Convex Node actions, Resend webhook verification, Node <code>&gt;=22.23.4 &lt;23</code>.</li>
</ul>
<h2>What the hosted demo does not turn on</h2>
<p>Bank sync (Enable Banking, with your own app and keys) and the AI Analyst stay <strong>disabled</strong> on trytracky.app. Manual accounts and CSV import cover the hosted workflow.</p>
<p>v0.1.0 has <strong>no paid checkout</strong>. Pro exists only as a reserved tier in code.</p>
<p>Self-hosting still means Node, npm, your Convex account, and your WorkOS AuthKit project — not a one-command Docker compose. Copy <code>.env.example</code> to <code>.env.local</code> (a stale <code>.env.local.example</code> filename was fixed in PR #64).</p>
<h2>Links</h2>
<ul>
<li><a href="https://www.trytracky.app/blog/tracky-v0-1-0">https://www.trytracky.app/blog/tracky-v0-1-0</a></li>
<li><a href="https://www.trytracky.app/it/blog/tracky-v0-1-0">https://www.trytracky.app/it/blog/tracky-v0-1-0</a></li>
<li><a href="https://github.com/masushidotdev/tracky/releases/tag/v0.1.0">https://github.com/masushidotdev/tracky/releases/tag/v0.1.0</a></li>
<li><a href="https://github.com/masushidotdev/tracky">https://github.com/masushidotdev/tracky</a></li>
</ul>
]]></content:encoded></item></channel></rss>