Skip to main content

Engineering

Articles tagged with "Engineering"

jssg is a modern, polyglot code search and transformation runtime. You author transforms in JavaScript/TypeScript with a clear, typed contract, while the matching engine is
Today, you can change code

The CI Diet Plan: 5 Code Smells to Eliminate—& How to Keep Them Off for Good

Barrel files, wildcard imports, and deep-relative paths can keep your CI pipeline in the red no matter how smart your Nx/Bazel/Turborepo cache is. This guide shows you how to detect five high-impact “build-bloat” smells, track their burndown in Codemod Insights, and reclaim double-digit minutes from every build—without touching your build-tool flags.

Barrel files, wildcard imports, and deep-relative paths can keep your CI pipeline in the red no matter how smart your Nx/Bazel/Turborepo cache is. This guide shows you how to detect five high-impact “build-bloat” smells, track their burndown in Codemod Insights, and reclaim double-digit minutes from every build—without touching your build-tool flags.

Imperative vs. Declarative Codemods in Large-Scale Migrations

Before you start swapping out a design system or upgrading a framework across thousands of files, it pays to pick the right approach for each change. Some updates fit neatly into simple find-and-replace patterns, while others demand custom logic you can’t capture in a basic rule. In this post, we’ll show you when to reach for declarative codemods versus imperative ones and how to combine them in a real-world migration.

Before you start swapping out a design system or upgrading a framework across thousands of files, it pays to pick the right approach for each change. Some updates fit neatly into simple find-and-replace patterns, while others demand custom logic you can’t capture in a basic rule. In this post, we’ll show you when to reach for declarative codemods versus imperative ones and how to combine them in a real-world migration.
Internationalization is essential for making your app accessible to a wider audience. In this post, we’ll walk through how to quickly adapt a Next.js app to support multiple languages using the

Automated i18n with Codemod

In today’s global market, delivering products in your customers’ native language isn’t just good practice—it’s a competitive necessity. For SaaS companies, e-commerce platforms, and app developers, internationalization (i18n) unlocks new markets and drives growth, but getting it right can be complex. Let’s look at how Codemod automates i18n-related code changes, making global expansion simpler and faster like never before.

In today’s global market, delivering products in your customers’ native language isn’t just good practice—it’s a competitive necessity. For SaaS companies, e-commerce platforms, and app developers, internationalization (i18n) unlocks new markets and drives growth, but getting it right can be complex. Let’s look at how Codemod automates i18n-related code changes, making global expansion simpler and faster like never before.
Introduction
We are excited to introduce Codemod2.0, our latest advancement in AI-powered code migrations, leveraging LLM and compiler technologies.
This case study showcases Codemod 2.0, leveraging deterministic engines and LLMs to migrate from Axios to Fetch.
Codemod is the go-to platform for its users as well as open-source framework builders who are looking forward to migrate their next project.
Learn how Codemod AI blends software analysis, a knowledge base, and a feedback loop to outperform standard LLMs like GPT-4o in generating codemods.

“Codemodable”: The elegant code that grows with you

When you start a greenfield project, AI allows you to ship at the speed of thought. However, as your project grows in size, your code may not evolve as quickly as you would like. It doesn't have to be this way. Andrew and I would love to refer to such code as "elegant," which has a straightforward definition.

When you start a greenfield project, AI allows you to ship at the speed of thought. However, as your project grows in size, your code may not evolve as quickly as you would like. It doesn't have to be this way. Andrew and I would love to refer to such code as "elegant," which has a straightforward definition.
Learn how to migrate your Next.js application from the Pages Router to the App Router using automated codemods. Step-by-step guide with the Codemod CLI.
Prerequisites

Codemods, deciphered.

Codemods are automated code transformations that understand your code's structure. Learn how they work, why they matter, and the different approaches to writing them.

Codemods are automated code transformations that understand your code's structure. Learn how they work, why they matter, and the different approaches to writing them.