Codegen home page
Search...
⌘K
Ask AI
Codegen
Codegen
Search...
Navigation
Tutorials
Learn by Example
Documentation
API Reference
CLI
Blog
Changelog
Introduction
Overview
Getting Started
Installation
IDE Usage
AI Integration
How it Works
Principles
Community
About Us
FAQ
Tutorials
At a Glance
API Migration
Organization
Modularity
Dead Code
Type Coverage
Mining Data
Feature Flags
Export Management
Default Export Conversion
Documentation
React Modernization
Unittest to Pytest
SQLAlchemy 1.6 to 2.0
Python 2 to 3
Flask to FastAPI
Building with Codegen
At a Glance
Parsing Codebases
Reusable Codemods
.codegen Directory
Language Support
Commit and Reset
Git Operations
Files & Directories
Editables
Symbols
Classes
Imports
Exports
Inheritable Behaviors
Statements and Code Blocks
Dependencies and Usages
Function Calls
Variable Assignments
Local Variables
Comments & Docstrings
External Modules
Type Annotations
Moving Symbols
Collections
Call Graph
React and JSX
Visualization
LLM Integration
Reducing Conditions
On this page
Modernization & Migration
Code Quality & Organization
Documentation & Features
AI Integration
Tutorials
Learn by Example
Explore our tutorials to learn how to use Codegen for various code transformation tasks.
Modernization & Migration
API Migrations
Update API calls, handle breaking changes, and manage bulk updates across your codebase.
Python 2 to 3
Migrate Python 2 code to Python 3, updating syntax and modernizing APIs.
SQLAlchemy 1.6 to 2.0
Update SQLAlchemy code to use the new 2.0-style query interface and patterns.
unittest to pytest
Convert unittest test suites to pytest’s modern testing style.
Increase Type Coverage
Add TypeScript types, infer types from usage, and improve type safety.
React Modernization
Convert class components to hooks, organize components into files, and extract prop types.
Code Quality & Organization
Delete Dead Code
Remove unused imports, functions, and variables with confidence.
Organize Your Codebase
Restructure files, enforce naming conventions, and improve project layout.
Improve Modularity
Split large files, extract shared logic, and manage dependencies.
Documentation & Features
Create Documentation
Generate JSDoc comments, README files, and API documentation.
Manage Feature Flags
Add, remove, and update feature flags across your application.
AI Integration
Prepare for AI
Generate system prompts, create hierarchical documentation, and optimize for AI assistance.
Each tutorial includes practical examples, code snippets, and best practices. Follow them in order or jump to the ones most relevant to your needs.
FAQ
API Migration
Assistant
Responses are generated using AI and may contain mistakes.