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
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where validation keywords are registered | Architecture | Medium | ajv-validator-ajvTypeScript | Extension pointsValidation and parsing |
| Block nodes in the code generator | Architecture | Easy | ajv-validator-ajvTypeScript | Compilers and code generationCode structure |
| Compiling the same schema twice | Architecture | Medium | ajv-validator-ajvTypeScript | Compilers and code generationCaching and storage |
| Per-type coercion rules |
| Find |
| Medium |
| ajv-validator-ajvTypeScript |
| Validation and parsingCompilers and code generation |
| Source text becomes a function | Find | Medium | ajv-validator-ajvTypeScript | Compilers and code generation |
| Counting characters for maxLength | Find | Easy | ajv-validator-ajvTypeScript | Compilers and code generationValidation and parsing |
| From validate to code generation | Trace | Medium | ajv-validator-ajvTypeScript | Compilers and code generation |
| Interceptor running order | Architecture | Hard | axios-axiosJavaScript | Middleware and hooksRequest lifecycle |
| Where cancellation errors are born | Architecture | Medium | axios-axiosJavaScript | ErrorsHTTP clients |
| Naming a new adapter | Architecture | Easy | axios-axiosJavaScript | Extension pointsHTTP clients |
| Filling in allowAbsoluteUrls | Find | Medium | axios-axiosJavaScript | Configuration and defaultsHTTP clients |
| When an explicit undefined counts | Find | Hard | axios-axiosJavaScript | Configuration and defaults |
| A request that was aborted before it started | Trace | Medium | axios-axiosJavaScript | Request lifecycleHTTP clientsErrors |
| Folding a closed object with a catchall object | Architecture | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| The core base of the classic ZodType | Architecture | Easy | colinhacks-zodTypeScript | Code structureValidation and parsing |
| The checks behind a string chain | Architecture | Medium | colinhacks-zodTypeScript | Validation and parsingCode structure |
| Building the failure result of safeParse | Find | Easy | colinhacks-zodTypeScript | Validation and parsingErrors |
| When a folded intersection is closed | Find | Easy | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| From emit to merging intersection members | Trace | Hard | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| Synchronous transport implementations | Architecture | Easy | encode-httpxPython | HTTP clientsExtension points |
| Which mounted transport wins | Architecture | Medium | encode-httpxPython | HTTP clients |
| Changing the method on redirect | Find | Easy | encode-httpxPython | HTTP clients |
| Dropping credentials on cross-origin redirects | Find | Medium | encode-httpxPython | HTTP clientsAuth and security |
| From Client.send to the redirect request headers | Trace | Medium | encode-httpxPython | HTTP clients |
| Sizing a multipart upload | Trace | Medium | encode-httpxPython | HTTP clients |
| Layers of the middleware stack | Architecture | Hard | encode-starlettePython | Middleware and hooksRequest lifecycle |
| Where body size limits are applied | Architecture | Easy | encode-starlettePython | Middleware and hooksRoutingConfiguration and defaults |
| The path a route is matched against | Find | Easy | encode-starlettePython | Routing |
| Building the trailing-slash redirect path | Find | Medium | encode-starlettePython | Routing |
| The default HTTPException handler | Find | Hard | encode-starlettePython | ErrorsMiddleware and hooks |
| Serving a static file conditionally | Trace | Medium | encode-starlettePython | Request lifecycle |
| When cleanup after yield runs | Architecture | Hard | fastapi-fastapiPython | Dependency injectionRequest lifecycle |
| Kinds of request parameters | Architecture | Easy | fastapi-fastapiPython | Validation and parsingCode structure |
| Where the default error responses come from | Architecture | Easy | fastapi-fastapiPython | ErrorsExtension points |
| Validating and serializing the endpoint's return value | Find | Easy | fastapi-fastapiPython | Validation and parsingRequest lifecycle |
| The class behind Depends | Find | Medium | fastapi-fastapiPython | Dependency injectionCode structure |
| Swapping a dependency for its override | Find | Medium | fastapi-fastapiPython | Dependency injection |
| How a route's parameters get analyzed | Trace | Hard | fastapi-fastapiPython | Dependency injectionRouting |
| Locking the app on serve | Architecture | Easy | h3js-h3TypeScript | RoutingCode structure |
| Middleware that returns undefined | Architecture | Medium | h3js-h3TypeScript | Middleware and hooks |
| Callers of callMiddleware | Architecture | Medium | h3js-h3TypeScript | Middleware and hooks |
| A route added after mount | Architecture | Hard | h3js-h3TypeScript | RoutingMiddleware and hooks |
| HEAD falls back to GET | Find | Medium | h3js-h3TypeScript | Routing |
| Request smuggling guard | Find | Easy | h3js-h3TypeScript | Auth and securityRequest lifecycle |
| From request to JSON body | Trace | Medium | h3js-h3TypeScript | Request lifecycle |
| Where the default app ends up after a fallback | Architecture | Hard | honojs-honoTypeScript | Routing |
| Routers that can ask SmartRouter to fall back | Architecture | Easy | honojs-honoTypeScript | RoutingErrors |
| The strict-routing switch | Find | Easy | honojs-honoTypeScript | RoutingConfiguration and defaults |
| The no-compose fast path | Find | Medium | honojs-honoTypeScript | RoutingMiddleware and hooks |
| First router tried by the default app | Find | Medium | honojs-honoTypeScript | Routing |
| From app.request to the middleware chain | Trace | Medium | honojs-honoTypeScript | Request lifecycleMiddleware and hooks |
| From c.redirect to the response builder | Trace | Easy | honojs-honoTypeScript | Request lifecycle |
| Staleness through a computed value | Architecture | Hard | mobxjs-mobxTypeScript | Reactivity |
| Who constructs a Reaction | Architecture | Easy | mobxjs-mobxTypeScript | Reactivity |
| Diffing a derivation's dependencies | Find | Medium | mobxjs-mobxTypeScript | Reactivity |
| Runaway reaction cycle guard | Find | Medium | mobxjs-mobxTypeScript | Reactivity |
| Deferring an observable's release | Find | Easy | mobxjs-mobxTypeScript | Reactivity |
| From a value write to running reactions | Trace | Medium | mobxjs-mobxTypeScript | Reactivity |
| Who actually invokes guards, interceptors and pipes | Architecture | Medium | nestjs-nestTypeScript | Middleware and hooksRequest lifecycle |
| A request-scoped global interceptor | Architecture | Hard | nestjs-nestTypeScript | Middleware and hooksDependency injection |
| Where a circular import is reported | Find | Easy | nestjs-nestTypeScript | Dependency injectionErrors |
| Skipping the global module binding | Find | Medium | nestjs-nestTypeScript | Dependency injection |
| Who makes the module token | Find | Medium | nestjs-nestTypeScript | Dependency injectionConfiguration and defaults |
| From scan to a registered provider | Trace | Hard | nestjs-nestTypeScript | Dependency injection |
| Precedence of fallback value sources | Architecture | Medium | pallets-clickPython | Command-line appsConfiguration and defaults |
| Control-flow exceptions outside ClickException | Architecture | Medium | pallets-clickPython | Command-line appsErrors |
| Ordering parameters for processing | Find | Medium | pallets-clickPython | Command-line apps |
| Rejecting leftover arguments | Find | Medium | pallets-clickPython | Command-line appsErrors |
| Where the progress bar is implemented | Find | Easy | pallets-clickPython | Command-line appsCode structure |
| Falling back to a string for an inferred type | Find | Easy | pallets-clickPython | Command-line apps |
| From shell completion request to a parsed context | Trace | Medium | pallets-clickPython | Command-line apps |
| What a custom session interface must implement | Architecture | Easy | pallets-flaskPython | Auth and securityExtension points |
| Order of response postprocessing | Architecture | Medium | pallets-flaskPython | Request lifecycleMiddleware and hooks |
| Running request preprocessing callbacks | Find | Easy | pallets-flaskPython | Request lifecycleMiddleware and hooks |
| Re-raising when no handler matches | Find | Medium | pallets-flaskPython | ErrorsRequest lifecycle |
| Default JSON provider | Find | Medium | pallets-flaskPython | Configuration and defaultsExtension points |
| The automatic OPTIONS response | Trace | Medium | pallets-flaskPython | Request lifecycleRouting |
| Finding the handler for an aborted request | Trace | Hard | pallets-flaskPython | ErrorsRequest lifecycle |
| Loaders that replace the loading step | Architecture | Easy | pallets-jinjaPython | Extension points |
| How the sandbox sees attribute access | Architecture | Hard | pallets-jinjaPython | Auth and securityCompilers and code generationExtension points |
| The one real variable lookup | Find | Easy | pallets-jinjaPython | Code structure |
| Stripping whitespace before a tag | Find | Medium | pallets-jinjaPython | Compilers and code generation |
| Where the built-in filters are listed | Find | Medium | pallets-jinjaPython | Configuration and defaults |
| From get_template to the parser | Trace | Hard | pallets-jinjaPython | Compilers and code generation |
| Concrete authentication classes | Architecture | Easy | psf-requestsPython | Auth and securityExtension points |
| Choosing among mounted adapters | Architecture | Medium | psf-requestsPython | HTTP clients |
| Connection errors raised by the adapter | Architecture | Medium | psf-requestsPython | HTTP clientsErrors |
| Merging request settings with session defaults | Find | Easy | psf-requestsPython | HTTP clientsConfiguration and defaults |
| Dropping the body on a redirect | Find | Medium | psf-requestsPython | HTTP clients |
| From requests.get to a PreparedRequest | Trace | Easy | psf-requestsPython | HTTP clients |
| Where proxy credentials become a header | Trace | Hard | psf-requestsPython | HTTP clientsAuth and security |
| Hashing a default mutable class | Architecture | Medium | python-attrs-attrsPython | Configuration and defaults |
| Methods compiled in one pass | Architecture | Medium | python-attrs-attrsPython | Compilers and code generation |
| What a frozen class does on assignment | Find | Easy | python-attrs-attrsPython | Code structure |
| Skipping a hook nobody needs | Find | Medium | python-attrs-attrsPython | Validation and parsingConfiguration and defaults |
| Where asdict really recurses | Find | Medium | python-attrs-attrsPython | Code structure |
| From @define to compiled methods | Trace | Hard | python-attrs-attrsPython | Compilers and code generationCode structure |
| The errors the single operator raises itself | Architecture | Easy | reactivex-rxjsTypeScript | ObservablesErrors |
| A late subscriber after a shared source completes | Architecture | Hard | reactivex-rxjsTypeScript | Observables |
| The shared upstream-subscription helper | Find | Easy | reactivex-rxjsTypeScript | Observables |
| Which AbortSignal the upstream subscription uses | Find | Easy | reactivex-rxjsTypeScript | Observables |
| Completing a throttle after its trailing value | Find | Medium | reactivex-rxjsTypeScript | Observables |
| Subscribing to a BehaviorSubject | Trace | Medium | reactivex-rxjsTypeScript | Observables |
| How forkJoin recognizes a dictionary of sources | Trace | Easy | reactivex-rxjsTypeScript | Observables |
| Where immer's produce is renamed | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
| Default middleware order | Architecture | Hard | reduxjs-redux-toolkitTypeScript | State managementMiddleware and hooks |
| Classes in the toolkit core | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
| A slice reducer and extraReducers on one type | Architecture | Hard | reduxjs-redux-toolkitTypeScript | State management |
| Detecting a state mutation | Find | Medium | reduxjs-redux-toolkitTypeScript | State managementMiddleware and hooks |
| Thunk condition returns false | Find | Medium | reduxjs-redux-toolkitTypeScript | State management |
| Sorted adapter and removeAll | Trace | Medium | reduxjs-redux-toolkitTypeScript | State management |
| Retry-After versus backoff | Architecture | Medium | sindresorhus-gotTypeScript | Retries and timeouts |
| Direct subclasses of RequestError | Architecture | Easy | sindresorhus-gotTypeScript | ErrorsCode structure |
| Exponential retry backoff | Find | Easy | sindresorhus-gotTypeScript | Retries and timeouts |
| Default retryable status codes | Find | Easy | sindresorhus-gotTypeScript | Retries and timeoutsConfiguration and defaults |
| From flush to timeout timers | Trace | Medium | sindresorhus-gotTypeScript | Retries and timeoutsRequest lifecycle |
| From a 503 in stream mode to the retry delay | Trace | Hard | sindresorhus-gotTypeScript | Retries and timeoutsErrors |
| Two live displays on one console | Architecture | Hard | textualize-richPython | Code structure |
| Leaving a buffer context | Architecture | Easy | textualize-richPython | Code structure |
| The column that refreshes less often | Find | Medium | textualize-richPython | Extension points |
| Tags that are never closed | Find | Medium | textualize-richPython | Compilers and code generation |
| Output without escape codes | Find | Easy | textualize-richPython | Code structure |
| From a plain string to word-wrap offsets | Trace | Medium | textualize-richPython | Code structure |
| Keys hidden by a later mount | Architecture | Hard | unjs-unstorageTypeScript | RoutingCode structureCaching and storage |
| Drivers that report their own changes | Architecture | Medium | unjs-unstorageTypeScript | Extension pointsCode structureCaching and storage |
| Registering a new built-in driver | Architecture | Easy | unjs-unstorageTypeScript | Extension pointsCode structureCaching and storage |
| Hidden metadata keys | Find | Easy | unjs-unstorageTypeScript | Code structureCaching and storage |
| The most specific mount wins | Find | Medium | unjs-unstorageTypeScript | RoutingCaching and storage |
| A Cloudflare KV binding that cannot write | Trace | Medium | unjs-unstorageTypeScript | ErrorsValidation and parsingCaching and storage |
| Directive transforms in the base compiler preset | Architecture | Easy | vuejs-coreTypeScript | Compilers and code generation |
| Where a pre-flush watcher lands in the queue | Architecture | Hard | vuejs-coreTypeScript | Reactivity |
| Registry of DOM-only directive transforms | Architecture | Medium | vuejs-coreTypeScript | Compilers and code generationExtension points |
| Deferring a notified effect | Find | Medium | vuejs-coreTypeScript | Reactivity |
| Dropping dependencies a run did not read | Find | Medium | vuejs-coreTypeScript | Reactivity |
| From baseCompile into the AST walk | Trace | Medium | vuejs-coreTypeScript | Compilers and code generation |
| Which endBatch re-runs the effect | Trace | Hard | vuejs-coreTypeScript | Reactivity |
| Reading a key in an LRU cache | Design | Easy | pallets-jinjaPython | Caching and storage |
| Subscribing during delivery | Design | Easy | reactivex-rxjsTypeScript | Observables |
| Coming back before a cache entry expires | Design | Hard | reduxjs-redux-toolkitTypeScript | Caching and storageState management |
| Batch writes across two backends | Design | Medium | unjs-unstorageTypeScript | Caching and storage |
| Truncating a reactive array | Design | Medium | vuejs-coreTypeScript | Reactivity |