WhoBuilt

code generation

The use of computers to create or complete source code.

Also known as CodeGen, Codegen, codegen, syntax generation

Key facts

Capabilities
Recognizes getConstants and generates typed constants interfaces for TurboModules
generates an emitOnKeyAdded method for the native event emitter
Generates native boilerplate from TypeScript module specs
TypeScript, accepts TypeScript definitions as input
generates platform-specific code from API specifications and helps ensure type safety across layers
TypeScript support is still in beta
+4 more
generates native-side interfaces from JavaScript, TypeScript, or Flow types
Generates C headers from TypeScript or Flow types; it is optional for TurboModules and JSI.
generates C headers from TypeScript or Flow types
synchronizes type definitions and method declarations between native and JavaScript

From talks

Results and examples shared in single talks

Timeline 13

Dated events, newest first. Open the sources under any item.

How we verify
20261 event
  1. as of Jan 2026Capability
    Recognizes getConstants and generates typed constants interfaces for TurboModules
    “Codegen looks for the getConstants method, then uses a different set of typings and code generation.” 2:01
    Unverified1 source· Talk
20252 events
  1. as of Dec 2025Capability
    Generates an emitOnKeyAdded method for the native event emitter
    “a new emitOnKeyAdded method we can use” 2:34
    Unverified1 source· Talk
  2. as of Dec 2025Capability
    Generates native boilerplate from TypeScript module specs
    “It defines a contract between your TypeScript files and your native code, then generates boilerplate code” 0:53
    Unverified1 source· Talk
20224 events
October
  1. as of Oct 2022Capability
    accepts TypeScript definitions as input
    accepts TypeScript definitions as input
    “Nowadays, you can give the codegen either a TypeScript, JavaScript, or Flow spec.” 35:13
    Unverified1 source· Talk
  2. as of Oct 2022Capability
    Generates platform-specific code from API specifications and helps ensure type safety across layers
    “How can we generate platform-specific code from a specification of your API?” 15:31
    Unverified1 source· Talk
July
  1. as of Jul 2022Capability
    TypeScript support is still in beta
    “TypeScript support is still in beta” 14:09
    Unverified1 source· Talk
  2. as of Jul 2022Capability
    Generates native-side interfaces from JavaScript, TypeScript, or Flow types
    “takes your JavaScript, TypeScript, or Flow types and generates the equivalent native-side interfaces” 7:24
    Unverified1 source· Talk
20211 event
  1. as of Dec 2021Capability
    Generates C headers from TypeScript or Flow types; it is optional for TurboModules and JSI.
    “Codegen generates C headers from those types” 3:03
    Unverified1 source· Talk
See all 13 events on the full timeline

Talks 19

20:26
Software engineering is not about writing code

Benoit Schillings argues that software engineering is shifting from writing code to specifying, designing, and ensuring the correctness of complex systems. He traces how cheaper computing moved the bottleneck from machine performance to human ability to manage complexity, and says AI is now changing that constraint. Code models benefit from abundant training data and testable outputs, while self-play could help them improve beyond human-written examples. He also discusses the need for stronger security and evaluation, new programming languages for models, and applying rapid experimentation to chemistry and biology.

Jul 17, 2026· 20 minDiscussed 7:09
11:41
How to Add Type-Safe Constants to Swift TurboModules

Oskar explains how to expose constants from a React Native TurboModule with end-to-end type safety between JavaScript and native code. Using a local storage example, he shows how a `getConstants` method in the shared spec triggers Codegen to generate typed interfaces, unlike a regular method that returns an untyped dictionary. He walks through exposing a Swift constant to Objective-C and implementing the generated methods in the native module. He also shows how to cache constants in the JavaScript spec so native code only retrieves them once.

Jan 9, 2026· 12 minDiscussed 2:01
1:52:25
Claude Agent SDK

Thariq Shihipar explains how the Claude Agent SDK builds on Claude Code’s harness, including its tools, file system, skills, subagents, hooks, and context management. He presents a design loop for agents: gather context, take action, and verify the result, with deterministic checks and reversible operations as useful safeguards. He compares structured tools, Bash, and code generation, arguing that Bash and the file system make it easier for agents to discover and compose capabilities. In a live Pokémon-agent prototype, he shows how to explore an API, generate scripts, and analyze domain data, then discusses how to move a prototype into a local app or sandbox.

Jan 5, 2026· 1 h 52 minDiscussed 9:03
11:04
Adding Event Emitters to Your TurboModule in Swift

Oscar demonstrates how to add event emitters to a Swift-based React Native TurboModule. He defines a Codegen event carrying a key-value pair, connects the generated Objective-C interface to Swift, and emits an event when a new local storage key is added. He explains how a closure that captures `self` can create a retain cycle under ARC, then uses a weak reference to avoid it. Finally, he tests the listener from JavaScript and traces the event through the call stack.

Dec 30, 2025· 11 minDiscussed 1:28
18:20
Writing Your First TurboModule in Swift

Oscar demonstrates how to build a React Native TurboModule for iOS with its core logic written in Swift and a small Objective-C bridge. He creates a local storage module using React Native Builder Bob, defines its TypeScript interface, and explains how Codegen produces the native protocol. The walkthrough covers configuring CocoaPods and Xcode, implementing storage with Apple's UserDefaults, and forwarding calls between Objective-C and Swift. He finishes by testing that values can be saved, retrieved, and persisted across reloads.

Dec 22, 2025· 18 minDiscussed 0:53
Show 5 more talks
See all 19 talks