Blog

My thoughts on making computers do stuff.

  • Leveling up your web apps with Zod and ChatGPT

    December 20, 2023 ・ 5 min read

    Discover how to integrate ChatGPT and other LLMs into web apps with this guide. Learn about selecting LLM providers, using zod-gpt for JSON outputs, and implementing AI features with a focus on security and user experience.

  • Validating environment variables with zod

    March 18, 2023 ・ 4 min read

    Validate environment variables in Javascript with Zod, a TypeScript-first schema validation library. Learn how to define and enforce environment variables structure preventing runtime errors and improving error handling.

  • Using zustand with Svelte

    October 9, 2022 ・ 4 min read

    Svelte stores are amazing, but so are zustand stores. Let’s check how to take your Svelte apps state management to the next level by combining the two!

  • Typing remix loaders with confidence

    June 19, 2022 ・ 4 min read

    Taking Remix type safety to the next level. How to infer types from loaders automatically!

  • Locale detection with Remix

    January 18, 2022 ・ 4 min read

    Text content did not match, this surely happened at some point if using any Javascript API that accesses the default locale during server rendering. Let’s fix it!

  • Authenticating things with cookies on Next.js

    July 31, 2021 ・ 12 min read

    With SSR being on the rise (again), we are going to guide you through how we implement cookie-based authentication on Next.js, using Postgres and Prisma.

  • Predictable React authentication with the Context API

    March 8, 2021 ・ 8 min read

    Managing authentication in React might feel like a non-intuitive task for many, due to the difficulty of maintaining global state on React. However, React’s context API is a great way of solving that, and in this blog post, I’m going to show you how.

  • Next.js and Airtable: a tale of empowering no-code tools

    December 7, 2020 ・ 7 min read

    Back in June, we received a request to help build a website for an academic non-profit organization (our friends at AAUM), in Braga, Portugal. They needed a website to help spread awareness of the MinhoCovid19 movement, a group of people trying to supply organizations in need (nursery homes, hospitals, etc) with protective materials built by volunteers.

  • Reactive Rails applications with StimulusReflex

    September 30, 2020 ・ 7 min read

    A quick look into making reactive applications using Rails, a tiny bit of Javascript, and StimulusReflex.

  • Spicing up your Rails frontend experience

    August 19, 2020 ・ 8 min read

    Let’s take the frontend Rails experience to the next level. Instant page transitions, components, and Stimulus!

  • Building and hosting a Discord bot

    July 30, 2020 ・ 11 min read

    Discord is a great product that has been a source of joy for me, personally. This time, I’m gonna take you through all the steps needed to take your first Discord bot online, and host it safely on the cloud, for free.

  • Let’s slim down on Javascript

    July 23, 2020 ・ 10 min read

    A collection of tips on how to reduce the size of your web apps.

  • Dealing with webfont loading

    June 25, 2020 ・ 5 min read

    Webfonts are amazing, but most websites using them suffer from weird layout shifts and flashes of unstyled or inivisble text. Let’s dive in on ways to attenuate that and make your initial website load smoother.

  • A primer on the JAMstack

    January 10, 2020 ・ 6 min read

    The JAMstack is not another boring tech-specific stack. It’s a change of paradigm. A shift in how we develop web apps and websites. Check out more about it on this introductory blog post.