magarcia

Cross-platform secret storage with cross-keychain

2 min read

I shipped [`cross-keychain`](https://www.npmjs.com/package/cross-keychain), a TypeScript library that stores secrets in your OS's native credential manager — macOS Keychain, Windows Credential Manager, or Linux Secret Service. One API, zero plaintext config files.

Enable environment variables in your configs with env-interpolation

2 min read

I shipped [`env-interpolation`](https://www.npmjs.com/package/env-interpolation), a tiny TS helper that interpolates `${VAR}` and `${VAR:default}` inside config values. It walks strings in objects/arrays and never touches keys, so shapes stay stable and predictable—very config-oriented.

Asking AI to Build the Tool Instead of Doing the Task

5 min read

Working with AI for large-scale code changes can be frustrating. This article shares a technique that has helped our team reduce migration errors by 95% while making the process surprisingly enjoyable.

A Comprehensive Guide to DMARC: Ensuring Email Integrity and Trust

5 min read

When building a digital project, ensuring your emails land safely and are trusted is paramount. But how do you navigate the maze of email security? Enter DMARC. Alongside its companions, SPF and DKIM, we delve deep into establishing email integrity and combating threats like email spoofing and phishing.

Check for undefined in JavaScript

2 min read

Something that everyone that has been working with JavaScript for a while has done is checking if a variable is undefined. In this article, I explain which are the different ways that you can use for it and the differences between them.

The power of MVP

5 min read

A minimum viable product (MVP) is often linked to the startup world but is a very useful tool in large corporations too. And to succeed with it is important to have engineering teams be completely engaged.

SOLID - Principles of Object-Oriented Design

9 min read

SOLID Principles are a valuable tool to write good object-oriented software. This article tries to put some light on the subject with simple explanations and examples for each principle using TypeScript.

Adaptive Media Serving using Service Workers

5 min read

Everyone has experienced how visiting a web site over a slow network connection usually takes ages to load. We are going to explore how to load different media content using the Network Information API.

BLoC Pattern with React Hooks

4 min read

About how to extract the business logic from the components of a React application using the BLoC pattern from Flutter, the new hooks API, and RxJS observables.

Refactor TodoMVC with Redux Starter Kit

9 min read

Redux Starter Kit is a toolset to make clean and readable code when working with React and Redux. See an example of how you can refactor an existing application getting all the profit from Redux Starter Kit.