Loading puzzles…
Loading puzzles…
Each puzzle is set in a real open-source repository. Read the code, find the answer, and select it in the editor.
New to reading code? Start with Learn: short lessons on values, branches, calls and tracing, then puzzles to try next.
Anyone can read the puzzles. Sign in to submit answers and keep track of what you've solved.
141 puzzles
typescript
javascript
| Puzzle | Type | Difficulty | Topics |
|---|---|---|---|
| Interceptor running order | Architecture | Hard | Middleware and hooksRequest lifecycle |
| Where cancellation errors are born | Architecture | Medium | ErrorsHTTP clients |
| Naming a new adapter | Architecture | Easy | Extension pointsHTTP clients |
| Filling in allowAbsoluteUrls | Find | Medium |
typescript
python
python
python
typescript
| Puzzle | Type | Difficulty | Topics |
|---|---|---|---|
| Locking the app on serve | Architecture | Easy | RoutingCode structure |
| Middleware that returns undefined | Architecture | Medium | Middleware and hooks |
| Callers of callMiddleware | Architecture | Medium | Middleware and hooks |
| A route added after mount | Architecture | Hard | RoutingMiddleware and hooks |
typescript
typescript
| Puzzle | Type | Difficulty | Topics |
|---|---|---|---|
| Staleness through a computed value | Architecture | Hard | Reactivity |
| Who constructs a Reaction | Architecture | Easy | Reactivity |
| Diffing a derivation's dependencies | Find | Medium | Reactivity |
| Runaway reaction cycle guard | Find | Medium | Reactivity |
| Deferring an observable's release | Find |
typescript
python
python
python
python
| Puzzle | Type | Difficulty | Topics |
|---|---|---|---|
| Concrete authentication classes | Architecture | Easy | Auth and securityExtension points |
| Choosing among mounted adapters | Architecture | Medium | HTTP clients |
| Connection errors raised by the adapter | Architecture | Medium | HTTP clientsErrors |
| Merging request settings with session defaults | Find | Easy |
python
typescript
typescript
| Puzzle | Type | Difficulty | Topics |
|---|---|---|---|
| Where immer's produce is renamed | Architecture | Easy | State managementCode structure |
| Default middleware order | Architecture | Hard | State managementMiddleware and hooks |
| Classes in the toolkit core | Architecture | Easy | State managementCode structure |
| A slice reducer and extraReducers on one type | Architecture | Hard |
typescript
python
typescript
typescript
| Validation and parsingCompilers and code generation |
| Source text becomes a function | Find | Medium | Compilers and code generation |
| Counting characters for maxLength | Find | Easy | Compilers and code generationValidation and parsing |
| From validate to code generation | Trace | Medium | Compilers and code generation |
| When an explicit undefined counts | Find | Hard | Configuration and defaults |
| A request that was aborted before it started | Trace | Medium | Request lifecycleHTTP clientsErrors |
| Validation and parsingErrors |
| When a folded intersection is closed | Find | Easy | Validation and parsingCompilers and code generation |
| From emit to merging intersection members | Trace | Hard | Validation and parsingCompilers and code generation |
| From Client.send to the redirect request headers | Trace | Medium | HTTP clients |
| Sizing a multipart upload | Trace | Medium | HTTP clients |
| Routing |
| The default HTTPException handler | Find | Hard | ErrorsMiddleware and hooks |
| Serving a static file conditionally | Trace | Medium | Request lifecycle |
| Validation and parsingRequest lifecycle |
| The class behind Depends | Find | Medium | Dependency injectionCode structure |
| Swapping a dependency for its override | Find | Medium | Dependency injection |
| How a route's parameters get analyzed | Trace | Hard | Dependency injectionRouting |
| HEAD falls back to GET |
| Find |
| Medium |
| Routing |
| Request smuggling guard | Find | Easy | Auth and securityRequest lifecycle |
| From request to JSON body | Trace | Medium | Request lifecycle |
| First router tried by the default app | Find | Medium | Routing |
| From app.request to the middleware chain | Trace | Medium | Request lifecycleMiddleware and hooks |
| From c.redirect to the response builder | Trace | Easy | Request lifecycle |
| Easy |
| Reactivity |
| From a value write to running reactions | Trace | Medium | Reactivity |
| Dependency injection |
| Who makes the module token | Find | Medium | Dependency injectionConfiguration and defaults |
| From scan to a registered provider | Trace | Hard | Dependency injection |
| Where the progress bar is implemented | Find | Easy | Command-line appsCode structure |
| Falling back to a string for an inferred type | Find | Easy | Command-line apps |
| From shell completion request to a parsed context | Trace | Medium | Command-line apps |
| ErrorsRequest lifecycle |
| Default JSON provider | Find | Medium | Configuration and defaultsExtension points |
| The automatic OPTIONS response | Trace | Medium | Request lifecycleRouting |
| Finding the handler for an aborted request | Trace | Hard | ErrorsRequest lifecycle |
| Where the built-in filters are listed | Find | Medium | Configuration and defaults |
| From get_template to the parser | Trace | Hard | Compilers and code generation |
| Reading a key in an LRU cache | Design | Easy | Caching and storage |
| Dropping the body on a redirect | Find | Medium | HTTP clients |
| From requests.get to a PreparedRequest | Trace | Easy | HTTP clients |
| Where proxy credentials become a header | Trace | Hard | HTTP clientsAuth and security |
| Where asdict really recurses | Find | Medium | Code structure |
| From @define to compiled methods | Trace | Hard | Compilers and code generationCode structure |
| Completing a throttle after its trailing value |
| Find |
| Medium |
| Observables |
| Subscribing to a BehaviorSubject | Trace | Medium | Observables |
| How forkJoin recognizes a dictionary of sources | Trace | Easy | Observables |
| Subscribing during delivery | Design | Easy | Observables |
| State management |
| Detecting a state mutation | Find | Medium | State managementMiddleware and hooks |
| Thunk condition returns false | Find | Medium | State management |
| Sorted adapter and removeAll | Trace | Medium | State management |
| Coming back before a cache entry expires | Design | Hard | Caching and storageState management |
| From flush to timeout timers | Trace | Medium | Retries and timeoutsRequest lifecycle |
| From a 503 in stream mode to the retry delay | Trace | Hard | Retries and timeoutsErrors |
| Find |
| Easy |
| Code structure |
| From a plain string to word-wrap offsets | Trace | Medium | Code structure |
| Hidden metadata keys | Find | Easy | Code structureCaching and storage |
| The most specific mount wins | Find | Medium | RoutingCaching and storage |
| A Cloudflare KV binding that cannot write | Trace | Medium | ErrorsValidation and parsingCaching and storage |
| Batch writes across two backends | Design | Medium | Caching and storage |
| Dropping dependencies a run did not read |
| Find |
| Medium |
| Reactivity |
| From baseCompile into the AST walk | Trace | Medium | Compilers and code generation |
| Which endBatch re-runs the effect | Trace | Hard | Reactivity |
| Truncating a reactive array | Design | Medium | Reactivity |