Build a search page for your astro static blog with fuse.js
05 November 2023—
Comments Recently, I migrated this very blog to Astro, and I took the opportunity to modernize the search system. I was then using lunr, which was a bit unmaintained, and not playing well with modern build tools. Introducing fuse.js Looking for alternatives I found fuse.js, a fuzzy-search library, with zero …
My thoughts after migrating content-centric websites from Next.js to Astro
19 October 2023—
Comments Context Around four years ago, I started to use Next.js in some projects, including this blog. These projects were not applications, but simple landing pages and documentation sites, where content written in markdown was a first class citizen. I remember that I was looking for a modern static site g…
My current take when publishing packages to the npm registry
23 August 2023—
Comments I have always struggled with how packages are versioned and published to the npm registry. My main concern is that you probably want to also add a git tag to your source code when you are releasing a new version, but npm packages have their own versioning system, and include a "version" field in the…
My experience migrating to Redux Toolkit (RTK)
17 December 2022—
Comments A couple of weeks ago I migrated a React project using redux to Redux Toolkit. Redux has always been my preferred state management tool for React (which doesn't mean I "love" it), but one of its main problems is the amount of boilerplate code it requires. Because of that I had a couple of helper fun…
How to reduce duplication in your GitHub Actions workflows
19 August 2022—
Comments In 2019, GitHub published their own solution to run automated workflows called GitHub Actions, which allowed those hosting their code in GitHub, to be able to define and run their CI/CD pipelines in the same platform. When it was released, one of the main pain points to use it was that defining pipe…