A Andres Hernandez
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
127

Filtered Posts (Clear all)

Hardening Web Galleries: Defending Against XSS with Robust Sanitization

Project Context: Enhancing the rifasvelez-web Gallery

The rifasvelez-web project recently undertook a vital security initiative focused on its image gallery component. In modern web applications, displaying rich, dynamic content is common, especially when sourcing media metadata from external platforms like Cloudinary. While this flexibility empowers engaging user experiences, it also introduces a critical security concern: ensuring that injected data remains harmless.

Hardening Web Galleries: Protecting Against DOM XSS and Attribute Injection in Astro

Web applications are constantly targeted by various security vulnerabilities, and among the most insidious are Cross-Site Scripting (XSS) attacks. Specifically, DOM-based XSS and attribute injection pose significant risks, especially in dynamic content displays like image galleries. We recently focused on enhancing the security of the rifasvelez website's gallery component to safeguard against these threats, ensuring a more robust and secure user experience.

The Silent Threat: DOM XSS and

Building Resilient UIs: Defensive Data Fetching in Astro

Building web applications often means relying on external services for data. While powerful, this reliance introduces a point of failure: what happens when those services don't respond as expected? Recently, while working on the rifasvelez-web project, we tackled this challenge head-on for our image gallery component, which sources its visuals from Cloudinary. The goal was to ensure a smooth user experience, even when the network falters or the data source is temporarily unavailable.

Building Resilient Web UIs: Graceful Error Handling in Astro

Few things are as frustrating for a user as a broken interface. A blank screen, a spinner that never resolves, or a cryptic error message can instantly erode trust and drive users away. In modern web development, creating applications that not only function correctly but also gracefully handle unexpected issues is paramount.

In the rifasvelez-web project, we recently focused on enhancing the user experience for our gallery feature. The goal was to transform a potentially fragile image

Enhancing Cloudinary URL Robustness: Handling Missing Image Versions

Project Context: rifasvelez-web

The rifasvelez-web project is focused on delivering a seamless web experience. A common challenge in web development is ensuring external assets, particularly images, are always displayed correctly. Recently, we addressed an issue where Cloudinary image URLs were sometimes malformed, leading to broken images on the site.

The Challenge with Cloudinary Image Versions

Cloudinary is a powerful service for image management and optimization, often used with

May 09, 2026 0 Astro Cloudinary

Robust Image Delivery: Gracefully Handling Cloudinary URL Version Segments in Astro

In the rifasvelez-web project, our focus is always on delivering a seamless and visually rich experience. A crucial part of this involves serving images efficiently, primarily leveraging Cloudinary for asset management. While Cloudinary offers robust versioning features through its URL structure (e.g., v12345), we encountered scenarios where these version segments could be missing or malformed, leading to potential display issues or inconsistent caching.

The Challenge with Version

Enhancing Raffle Management: Lifecycle and UI Refinements in Astro

In the rifasvelez-web project, a platform designed for managing various raffles, recent updates have focused on refining the raffle lifecycle and enhancing the user interface. This particular effort addressed two key areas: improving the handling of deleted raffles and updating site-wide information presented in the footer. These seemingly minor adjustments significantly contribute to the platform's robustness and user experience.

Graceful Raffle Deletion

One of the critical aspects of

Streamlining Content: Deleting Raffles and Enhancing Footers in Astro

Managing dynamic content efficiently is crucial for any web application. In the rifasvelez-web project, our recent updates focused on empowering content administrators by streamlining the removal of outdated 'raffle' entries and enhancing the user experience with more detailed footer information.

Project Context: rifasvelez-web

The rifasvelez-web project leverages Astro to deliver a fast, modern web experience. Astro's approach to content-driven sites makes it ideal for projects

Streamlining Image Handling in Astro: Embracing Native `<img>` Tags

Introduction

In the fast-paced world of web development, optimizing asset delivery, especially images, is crucial for performance and user experience. For our rifasvelez-web project, built with Astro, we recently made a subtle yet impactful change: standardizing our image implementation to favor native <img> tags by default. This shift, while seemingly minor, brought significant benefits to development workflow and potential performance.

The Challenge

Modern frameworks often

Taming the Masonry Layout: Achieving Robust Galleries in Astro

Even seemingly simple components like image galleries can present unexpected challenges when it comes to layout. On the rifasvelez-web project, our winners gallery, designed to display a dynamic array of varying-sized images, encountered just such a hurdle. The goal was a clean, organized masonry grid—think Pinterest-style—where items slot together perfectly. What we got, however, was a less-than-perfect jumble.

The Unruly Gallery

Our initial masonry implementation, intended to create a

Andres Hernandez

Andres Hernandez

Product-focused Software Developer specializing in the React ecosystem (Next.js, TypeScript). Proven experience contributing to high-impact open source projects and building scalable web applications. Committed to clean code, UI/UX design principles, and SOLID architecture to solve complex problems.