Skip to main content

# Chris Malek - Technical Writings

Secure Your Hugo Site with OAuth2 and Deploy to Fly.io

I’ve just published a Github Repository detailing how to secure your Hugo static website with OAuth2 authentication and deploy it on Fly.io. This is a practical guide based on my own struggles and solutions, offering a working template for anyone looking to protect their internal documentation or client-facing content.

Check out the repository

Datastar: Web Framework for the Future?

# TLDR

Datastar is a new hypermedia framework that makes building real-time web applications simpler and more efficient. It prioritizes server-side logic, uses “signals” for automatic UI updates, and leverages Server-Sent Events for lightning-fast performance. If you’re looking for a streamlined alternative to traditional JavaScript frameworks or HTMX, Datastar is worth exploring.

However, it requires that you approach web development with a fresh perspective, embracing server-driven architecture and reactive programming.