Skip to main content

AsyncAPI - Type safety Never Publish to Wrong Channels Again

· 8 min read
Jonas Lagoni
The Codegen Project creator

Building event-driven applications with multiple channels often leads to a common but critical problem: hardcoded channel names scattered throughout your codebase. One typo in a channel name can send events to the wrong destination or create silent failures. We've already explored generating models for payloads and headers. Now let's see how The Codegen Project's types generator provides compile-time safety for all your channel routing.

AsyncAPI - Type-Safe Headers

· 12 min read
Jonas Lagoni
The Codegen Project creator

Building robust event-driven applications requires more than just payload validation - you need proper header management for authentication, tracing, routing, and metadata. In our previous post about payload generation, we showed how to generate type-safe data models. Now let's explore how The Codegen Project's headers generator can streamline your messaging infrastructure by handling the metadata side of your messages.

AsyncAPI - Stop wasting time on payloads

· 8 min read
Jonas Lagoni
The Codegen Project creator

Building event-driven applications often means spending countless hours writing and maintaining payload models. What if you could generate these models automatically from your AsyncAPI specification while keeping full control over your infrastructure code? In this post, we'll explore how The Codegen Project's payload generator can save you time and reduce errors.

The Codegen Project - 1 Months of Progress

· 4 min read
Jonas Lagoni
The Codegen Project creator

Since the release of v0.33, we've been diligently enhancing the Codegen CLI to make generated code safer, more intuitive, and aligned with real-world development practices. Spanning versions v0.34.0 through v0.39.0, this update introduces significant improvements, including automatic payload validation enabled by default and unified parameters.

TLDR:

  • Automatic payload validation by default for all consumed messages
  • Changed to unified parameter objects for all functions (breaking change)
  • Improved TypeScript types and logging
  • Updated documentation and fixed various bugs

The Codegen Project - 5 Months of Progress

· 5 min read
Jonas Lagoni
The Codegen Project creator

It has been a while since the last update, almost 5 months to be exact, all these improvements have been happening while building the SDK platform, using the CLI as it's pillars.

Since our last update in October 2024, we've evolved the project with new features, expanded protocol support, crucial fixes, and improved documentation. Instead of just listing the changes, we want to share the journey of how we grew The Codegen Project CLI from version 0.23.0 to 0.33.0.

The Codegen Project

· 3 min read
Jonas Lagoni
The Codegen Project creator
Andreas Lagoni
The Codegen Project creator

The Codegen Project banner

The Idea 💡

Apollo GraphQL code generator has always been a pleasure to use, but when it comes to standards such as OpenAPI and AsyncAPI, the same level of code generator or simplicity during the implemenation phase is non-existing.

That is what this project wants to bring;

A bit ambitious perhaps... So how?