Blog(8)

Building a Telegram AI Bot with 9Router
From a BotFather token to a bot that can swap AI models — the simple architecture I use every day.

Uploads Without a Filesystem: Storing Files in PostgreSQL
Vercel's filesystem is read-only — so I store uploads as BYTEA in PostgreSQL and serve them through /api/files.

Securing an Admin Panel: HMAC Sessions, Rate Limiting & Magic-Byte Validation
Stateless sessions with no server storage, logins capped at 10 per 10 minutes, and uploads validated down to the byte level.

Building a Discord Gallery Bot: Leaderboard & Automatic Favorites
A Python bot that runs a community photo gallery: leaderboards, auto-likes, favorite reposts, and automatic roles.

A Native-Feeling Admin Dashboard: Tap-to-Edit & Drag Reorder
Tap to edit, drag to reorder — mobile-first interactions in an admin dashboard built on Pointer Events and FLIP animation.

Deploying Hermes Agent: 9Router + Telegram on One VM
Connecting a Telegram bot to 9Router as an AI gateway — the bridge architecture and how to run it as a service.

Migrating to Next.js Static Export
Why this portfolio moved from a single HTML file to Next.js — and why the result is still as fast as pure HTML.

An Always-On SSH Reverse Tunnel with systemd
Expose local services to the internet with no public IP — and make the tunnel revive itself on every drop.

