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