Generate Swagger Documentation for a Next.js API

This post teaches you how to generate Swagger documentation for your Next.js API. You also learn how to generate the OpenAPI Specification required by Swagger. In simple terms, an OpenAPI Specification is a document describing the structure of a REST API and how to interact with it. It contains…

The AI Visual Studio Code

TLDR; Cursor is a VS Code fork with AI capabilities integrated directly. Visual Studio Code is one of the most popular and loved IDEs by developers. And it’s understandable. It’s an excellent and complex IDE that has everything you need. I enjoy it, and I have been using…

Extend the Session Object in NextAuth

By default, NextAuth returns minimal information in the session object. However, there are use cases where you might want to return extra information to the client. This post shows you how to extend the session object and return additional fields to the client. NextAuth Callbacks NextAuth callbacks enable you to…

2023 In Review: Shitastic

When we plan for the future, we always prepare and hope for the best scenario. We never think about what could go wrong, so we never prepare for that. At the end of each year, we spend our time and energy setting grandiose objectives for the new year. We believe…

Build a Public tRPC API: trpc-openapi vs ts-rest

When we decided to build a public-facing API at Documenso, we had to choose between creating a new application from scratch or using the existing codebase. The first option meant building the API with a technology like Node.js, for example, and launching it under a new, separate domain. The…

Goodbye Chrome… hello, Edge?!

If you search "the most popular browsers" on the internet, you'll see Google Chrome at the top of all lists. And not only is it in the first place, but it's a huge difference between it and the others. In most lists, Chrome has…

Build A Stunning Generative AI App with a React IDE

If you've ever wondered how AI applications generate images from user prompts, you've come to the right place. In this article, you will learn how these tools work by building an AI application to generate images. Create the application We'll start by creating a…

The Only 5 Zsh Plugins You Need

Zsh plugins allow you to customize and improve your Zsh shell experience. They either enhance the appearance of your shell or the functionality. However, if you search for "Zsh plugins" on the internet, you'll encounter a sea of Zsh plugins. How do you know what plugins…