Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
204

Latest Updates

Documenting code, one commit at a time.

Modernizing Authentication in Cronix: A Supabase Integration

Introduction

In the cronix project, we recently completed a comprehensive overhaul of our authentication flow and database architecture. Our goal was to transition from a legacy implementation to a more robust, secure, and type-safe approach using Supabase and modern Next.js patterns.

The Challenge

Previously, our registration flow suffered from inconsistent state management and

Securing Next.js Auth: Standardizing Supabase Middleware Types

Handling Authentication at the Edge

Authentication state is the heartbeat of any modern web application. In the project cronix, we recently refactored how our Next.js middleware interacts with Supabase. Managing auth tokens across server-side routes and edge functions can lead to type-mismatch nightmares if the underlying contracts aren't strictly defined.

Ensuring Backend Robustness: A Comprehensive Guide to Unit Testing Models, Controllers, and Middlewares

The cmms-hidrobombas-merida project, a CMMS (Computerized Maintenance Management System) for hydropumps in Mérida, relies on a robust and reliable backend. A critical step in achieving this reliability is implementing a comprehensive unit test suite. This post explores how we've fortified our JavaScript backend by rigorously testing its core components: models, controllers, and middlewares.

Stabilizing E2E Tests: Resolving CI Flakiness in Cronix with Playwright

Are your CI pipelines plagued by mysterious E2E test failures? The cronix project recently faced a similar challenge. Our continuous integration (CI) builds were often failing due to non-deterministic end-to-end (E2E) tests, leading to developer frustration and slower delivery cycles.

The Problem

Our E2E test suite, powered by Playwright, was frequently yielding different results in the CI

Enhancing Cronix: Voice Assistant Integration and Webhook Security Hardening

Introduction

Our team at Cronix recently rolled out significant enhancements focused on both user experience and application security. Cronix, an application designed to streamline various scheduling and automation tasks, now boasts an intuitive AI-powered voice assistant for its dashboard and strengthened security protocols for its WhatsApp webhooks.

The Challenge

Integrating a voice

Enhancing Application Observability with Observability Gateways

Introduction

In modern application development, especially within serverless and microservices architectures, gaining deep insights into application behavior is crucial. This post explores how to implement an observability gateway to enhance application monitoring and verification flows, focusing on a practical example within a messaging context.

The Need for Observability Gateways