blog
Stuff I write.
My thoughts on making computers do stuff. Also available via RSS.
- Leveling up your web apps with Zod and ChatGPTDec 2023 · 5 min
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 zodMar 2023 · 4 min
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 SvelteOct 2022 · 4 min
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 confidenceJun 2022 · 4 min
Taking Remix type safety to the next level. How to infer types from loaders automatically!
- Locale detection with RemixJan 2022 · 4 min
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.jsJul 2021 · 12 min
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 APIMar 2021 · 8 min
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 toolsDec 2020 · 7 min
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 StimulusReflexSep 2020 · 7 min
A quick look into making reactive applications using Rails, a tiny bit of Javascript, and StimulusReflex.
- Spicing up your Rails frontend experienceAug 2020 · 8 min
Let’s take the frontend Rails experience to the next level. Instant page transitions, components, and Stimulus!
- Building and hosting a Discord botJul 2020 · 11 min
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 JavascriptJul 2020 · 10 min
A collection of tips on how to reduce the size of your web apps.
- Dealing with webfont loadingJun 2020 · 5 min
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 JAMstackJan 2020 · 6 min
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.