Codegen home page
Search...
⌘K
Ask AI
GitHub
GitHub
Search...
Navigation
API Reference
API Reference
Documentation
API Reference
CLI
Blog
Changelog
codegen
API Reference
Overview
Core
Python
Typescript
On this page
Core Classes
Language Support
Common Operations
Code Analysis
Code Transformation
React & TypeScript
Getting Started
API Reference
API Reference
Welcome to the Codegen API reference. This documentation covers the core classes and functions available in Codegen.
Core Classes
Codebase
The main entry point for analyzing and transforming code. Provides access to files, functions, and the call graph.
File
Work with source files, their ASTs, and manage imports/exports.
Function
Represents a function in your codebase. Analyze parameters, return types, and call sites.
Symbol
Represents a symbol in your codebase, includes functions, classes, and more.
Language Support
Python
Python-specific APIs and utilities for working with Python codebases.
TypeScript
TypeScript and JavaScript support, including React component analysis.
Common Operations
Code Analysis
Finding Functions
Analyzing Dependencies
Analyzing Usages
Code Transformation
Editing Files
Managing Imports
Renaming Symbols
Managing Return Types
Moving Code
React & TypeScript
JSX Components
Props & State
Type Aliases
Each class and function includes detailed examples and common use cases. Use the sidebar navigation to explore specific APIs.
Getting Started
If you’re new to Codegen, we recommend:
Following the
Getting Started
guide
Exploring the
Tutorials
Looking at example codemods in our
GitHub repository
Use the search bar (⌘ K) to quickly find specific APIs and functionality.
Was this page helpful?
Yes
No
Argument
Assistant
Responses are generated using AI and may contain mistakes.