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.
27 of 141 puzzles
Matching a request to the code that handles it.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| How a route's parameters get analyzed | Trace | Hard | fastapi-fastapiPython | Dependency injectionRouting |
| A route added after mount | Architecture | Hard | h3js-h3TypeScript | RoutingMiddleware and hooks |
| Where the default app ends up after a fallback | Architecture | Hard |
Code that runs before or after a handler: middleware, hooks, guards and interceptors.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Interceptor running order | Architecture | Hard | axios-axiosJavaScript | Middleware and hooksRequest lifecycle |
| Layers of the middleware stack | Architecture | Hard | encode-starlettePython | Middleware and hooksRequest lifecycle |
| The default HTTPException handler | Find | Hard |
The path a request takes from arrival to the response sent back.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Interceptor running order | Architecture | Hard | axios-axiosJavaScript | Middleware and hooksRequest lifecycle |
| Layers of the middleware stack | Architecture | Hard | encode-starlettePython | Middleware and hooksRequest lifecycle |
| When cleanup after yield runs | Architecture |
How errors are raised, classified and turned into responses.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| The default HTTPException handler | Find | Hard | encode-starlettePython | ErrorsMiddleware and hooks |
| Finding the handler for an aborted request | Trace | Hard | pallets-flaskPython | ErrorsRequest lifecycle |
| From a 503 in stream mode to the retry delay | Trace | Hard | sindresorhus-gotTypeScript |
Sending requests: redirects, adapters, transports, proxies and request bodies.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where proxy credentials become a header | Trace | Hard | psf-requestsPython | HTTP clientsAuth and security |
Deciding when to try again, how long to wait, and when to give up.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| From a 503 in stream mode to the retry delay | Trace | Hard | sindresorhus-gotTypeScript | Retries and timeoutsErrors |
Tracking what state code reads, and running it again when that state changes.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Staleness through a computed value | Architecture | Hard | mobxjs-mobxTypeScript | Reactivity |
| Where a pre-flush watcher lands in the queue | Architecture | Hard | vuejs-coreTypeScript | Reactivity |
| Which endBatch re-runs the effect | Trace | Hard | vuejs-coreTypeScript | Reactivity |
Turning templates and schemas into code or into another format.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Folding a closed object with a catchall object | Architecture | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| From emit to merging intersection members | Trace | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| How the sandbox sees attribute access | Architecture | Hard |
Checking input against a schema or type, and converting it.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Folding a closed object with a catchall object | Architecture | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| From emit to merging intersection members | Trace | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
How modules and providers are registered, resolved and wired together.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| When cleanup after yield runs | Architecture | Hard | fastapi-fastapiPython | Dependency injectionRequest lifecycle |
| How a route's parameters get analyzed | Trace | Hard | fastapi-fastapiPython | Dependency injectionRouting |
| A request-scoped global interceptor | Architecture |
Where a library lets you plug in your own code.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| How the sandbox sees attribute access | Architecture | Hard | pallets-jinjaPython | Auth and securityCompilers and code generationExtension points |
How options are merged, defaulted and looked up.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| When an explicit undefined counts | Find | Hard | axios-axiosJavaScript | Configuration and defaults |
Stores, reducers, actions and thunks.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Default middleware order | Architecture | Hard | reduxjs-redux-toolkitTypeScript | State managementMiddleware and hooks |
| A slice reducer and extraReducers on one type | Architecture | Hard | reduxjs-redux-toolkitTypeScript | State management |
| Coming back before a cache entry expires | Design | Hard |
Keeping data to use later: caches, key-value stores, eviction and expiry.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Keys hidden by a later mount | Architecture | Hard | unjs-unstorageTypeScript | RoutingCode structureCaching and storage |
| Coming back before a cache entry expires | Design | Hard | reduxjs-redux-toolkitTypeScript | Caching and storageState management |
Streams of values, the operators that transform them, and subscriptions.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| A late subscriber after a shared source completes | Architecture | Hard | reactivex-rxjsTypeScript | Observables |
Sessions, credentials, and defenses against unsafe requests.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| How the sandbox sees attribute access | Architecture | Hard | pallets-jinjaPython | Auth and securityCompilers and code generationExtension points |
| Where proxy credentials become a header | Trace | Hard | psf-requestsPython | HTTP clientsAuth and security |
How a codebase is split into modules, layers and class hierarchies.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| From @define to compiled methods | Trace | Hard | python-attrs-attrsPython | Compilers and code generationCode structure |
| Two live displays on one console | Architecture | Hard | textualize-richPython | Code structure |
| Keys hidden by a later mount | Architecture | Hard |
| Routing |
| Keys hidden by a later mount | Architecture | Hard | unjs-unstorageTypeScript | RoutingCode structureCaching and storage |
| encode-starlettePython |
| ErrorsMiddleware and hooks |
| A route added after mount | Architecture | Hard | h3js-h3TypeScript | RoutingMiddleware and hooks |
| A request-scoped global interceptor | Architecture | Hard | nestjs-nestTypeScript | Middleware and hooksDependency injection |
| Default middleware order | Architecture | Hard | reduxjs-redux-toolkitTypeScript | State managementMiddleware and hooks |
| Hard |
| fastapi-fastapiPython |
| Dependency injectionRequest lifecycle |
| Finding the handler for an aborted request | Trace | Hard | pallets-flaskPython | ErrorsRequest lifecycle |
| Retries and timeoutsErrors |
| pallets-jinjaPython |
| Auth and securityCompilers and code generationExtension points |
| From get_template to the parser | Trace | Hard | pallets-jinjaPython | Compilers and code generation |
| From @define to compiled methods | Trace | Hard | python-attrs-attrsPython | Compilers and code generationCode structure |
| Hard |
| nestjs-nestTypeScript |
| Middleware and hooksDependency injection |
| From scan to a registered provider | Trace | Hard | nestjs-nestTypeScript | Dependency injection |
| Caching and storageState management |
| RoutingCode structureCaching and storage |