KXkonstantinos.xafis
Full-Stack & CloudflareIn production2026Featured

Byzantine Music School Platform

Astro 5SolidJSTypeScriptTailwind CSSTursolibSQLCloudflare PagesR2ArcticValibot

Overview

A full-stack platform operated by a Byzantine music school: public pages for the school, its teachers and study locations, a student registration system (with class, teacher and instrument assignment), book inventory, payments and payoffs, announcements, and a complete admin panel.

What I built

The architecture mirrors what I built for Isokratis, refined: every API endpoint is defined as a .client.ts contract — path, method, Valibot schema and middleware flags — implemented in a .server.ts module, and routed through a single catch-all endpoint. Middleware (authentication, validation, multipart) is injected automatically from the contract flags, and the frontend consumes it fully typed via useAPI("Authentication.userLogin", payload).

Persistence uses Turso (libSQL) in production with a snapshot-replication workflow: replicate.ts produces dated SQL snapshots for a local dev database. Files go to Cloudflare R2. Google OAuth uses the arctic library with PKCE; passwords are salted SHA-256 hashes.

The system was designed around a set of companion microservices — PDF generation, image compression, automated emails — each a separate service wired to this platform, forming a coherent deployment.

Technical highlights

Outcome

In production for the school, integrated with the PDF, compression and mailing services.