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.
55 of 141 puzzles
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| 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 |
| Filling in allowAbsoluteUrls | Find | Medium |
| axios-axiosJavaScript |
| Configuration and defaultsHTTP clients |
| When an explicit undefined counts | Find | Hard | axios-axiosJavaScript | Configuration and defaults |
| 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 |
| 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 |
| 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 |
| 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 |
| HEAD falls back to GET | Find | Medium | h3js-h3TypeScript | Routing |
| Request smuggling guard | Find | Easy | h3js-h3TypeScript | Auth and securityRequest lifecycle |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 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 |
| 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 |
| 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 |
| 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 |
| Detecting a state mutation | Find | Medium | reduxjs-redux-toolkitTypeScript | State managementMiddleware and hooks |
| Thunk condition returns false | Find | Medium | reduxjs-redux-toolkitTypeScript | State management |
| Exponential retry backoff | Find | Easy | sindresorhus-gotTypeScript | Retries and timeouts |
| Default retryable status codes | Find | Easy | sindresorhus-gotTypeScript | Retries and timeoutsConfiguration and defaults |
| 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 |
| Hidden metadata keys | Find | Easy | unjs-unstorageTypeScript | Code structureCaching and storage |
| The most specific mount wins | Find | Medium | unjs-unstorageTypeScript | RoutingCaching and storage |
| Deferring a notified effect | Find | Medium | vuejs-coreTypeScript | Reactivity |
| Dropping dependencies a run did not read | Find | Medium | vuejs-coreTypeScript | Reactivity |