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.
47 of 141 puzzles
Matching a request to the code that handles it.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| 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 |
| Locking the app on serve | Architecture | Easy |
Code that runs before or after a handler: middleware, hooks, guards and interceptors.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where body size limits are applied | Architecture | Easy | encode-starlettePython | Middleware and hooksRoutingConfiguration and defaults |
| Running request preprocessing callbacks | Find | Easy | pallets-flaskPython | Request lifecycleMiddleware and hooks |
The path a request takes from arrival to the response sent back.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Validating and serializing the endpoint's return value | Find | Easy | fastapi-fastapiPython | Validation and parsingRequest lifecycle |
| Request smuggling guard | Find | Easy | h3js-h3TypeScript | Auth and securityRequest lifecycle |
| From c.redirect to the response builder | Trace | Easy |
How errors are raised, classified and turned into responses.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Building the failure result of safeParse | Find | Easy | colinhacks-zodTypeScript | Validation and parsingErrors |
| Where the default error responses come from | Architecture | Easy | fastapi-fastapiPython | ErrorsExtension points |
| Routers that can ask SmartRouter to fall back | Architecture | Easy |
Sending requests: redirects, adapters, transports, proxies and request bodies.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Naming a new adapter | Architecture | Easy | axios-axiosJavaScript | Extension pointsHTTP clients |
| Synchronous transport implementations | Architecture | Easy | encode-httpxPython | HTTP clientsExtension points |
| Changing the method on redirect | Find | Easy |
Deciding when to try again, how long to wait, and when to give up.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Exponential retry backoff | Find | Easy | sindresorhus-gotTypeScript | Retries and timeouts |
| Default retryable status codes | Find | Easy | sindresorhus-gotTypeScript | Retries and timeoutsConfiguration and defaults |
Tracking what state code reads, and running it again when that state changes.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Who constructs a Reaction | Architecture | Easy | mobxjs-mobxTypeScript | Reactivity |
| Deferring an observable's release | Find | Easy | mobxjs-mobxTypeScript | Reactivity |
Turning templates and schemas into code or into another format.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Block nodes in the code generator | Architecture | Easy | ajv-validator-ajvTypeScript | Compilers and code generationCode structure |
| Counting characters for maxLength | Find | Easy | ajv-validator-ajvTypeScript | Compilers and code generationValidation and parsing |
| When a folded intersection is closed | Find | Easy |
Checking input against a schema or type, and converting it.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Counting characters for maxLength | Find | Easy | ajv-validator-ajvTypeScript | Compilers and code generationValidation and parsing |
| The core base of the classic ZodType | Architecture | Easy | colinhacks-zodTypeScript | Code structureValidation and parsing |
| Building the failure result of safeParse | Find | Easy |
How modules and providers are registered, resolved and wired together.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where a circular import is reported | Find | Easy | nestjs-nestTypeScript | Dependency injectionErrors |
Where a library lets you plug in your own code.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Naming a new adapter | Architecture | Easy | axios-axiosJavaScript | Extension pointsHTTP clients |
| Synchronous transport implementations | Architecture | Easy | encode-httpxPython | HTTP clientsExtension points |
| Where the default error responses come from | Architecture | Easy |
How options are merged, defaulted and looked up.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where body size limits are applied | Architecture | Easy | encode-starlettePython | Middleware and hooksRoutingConfiguration and defaults |
| The strict-routing switch | Find | Easy | honojs-honoTypeScript | RoutingConfiguration and defaults |
| Merging request settings with session defaults | Find | Easy |
Stores, reducers, actions and thunks.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Where immer's produce is renamed | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
| Classes in the toolkit core | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
Keeping data to use later: caches, key-value stores, eviction and expiry.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| 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 |
| Reading a key in an LRU cache |
Streams of values, the operators that transform them, and subscriptions.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| The errors the single operator raises itself | Architecture | Easy | reactivex-rxjsTypeScript | ObservablesErrors |
| The shared upstream-subscription helper | Find | Easy | reactivex-rxjsTypeScript | Observables |
| Which AbortSignal the upstream subscription uses | Find | Easy | reactivex-rxjsTypeScript |
Sessions, credentials, and defenses against unsafe requests.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Request smuggling guard | Find | Easy | h3js-h3TypeScript | Auth and securityRequest lifecycle |
| What a custom session interface must implement | Architecture | Easy | pallets-flaskPython | Auth and securityExtension points |
| Concrete authentication classes | Architecture | Easy |
How a codebase is split into modules, layers and class hierarchies.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| Block nodes in the code generator | Architecture | Easy | ajv-validator-ajvTypeScript | Compilers and code generationCode structure |
| The core base of the classic ZodType | Architecture | Easy | colinhacks-zodTypeScript | Code structureValidation and parsing |
| Kinds of request parameters | Architecture | Easy |
Parsing arguments and options, and running commands.
| Puzzle | Type | Difficulty | Repository | Topics |
|---|---|---|---|---|
| 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 |
| RoutingCode structure |
| Routers that can ask SmartRouter to fall back | Architecture | Easy | honojs-honoTypeScript | RoutingErrors |
| The strict-routing switch | Find | Easy | honojs-honoTypeScript | RoutingConfiguration and defaults |
| honojs-honoTypeScript |
| Request lifecycle |
| Running request preprocessing callbacks | Find | Easy | pallets-flaskPython | Request lifecycleMiddleware and hooks |
| RoutingErrors |
| Where a circular import is reported | Find | Easy | nestjs-nestTypeScript | Dependency injectionErrors |
| The errors the single operator raises itself | Architecture | Easy | reactivex-rxjsTypeScript | ObservablesErrors |
| Direct subclasses of RequestError | Architecture | Easy | sindresorhus-gotTypeScript | ErrorsCode structure |
| encode-httpxPython |
| HTTP clients |
| Merging request settings with session defaults | Find | Easy | psf-requestsPython | HTTP clientsConfiguration and defaults |
| From requests.get to a PreparedRequest | Trace | Easy | psf-requestsPython | HTTP clients |
| colinhacks-zodTypeScript |
| Validation and parsingCompilers and code generation |
| Directive transforms in the base compiler preset | Architecture | Easy | vuejs-coreTypeScript | Compilers and code generation |
| colinhacks-zodTypeScript |
| Validation and parsingErrors |
| When a folded intersection is closed | Find | Easy | colinhacks-zodTypeScript | Validation and parsingCompilers and code generation |
| Kinds of request parameters | Architecture | Easy | fastapi-fastapiPython | Validation and parsingCode structure |
| Validating and serializing the endpoint's return value | Find | Easy | fastapi-fastapiPython | Validation and parsingRequest lifecycle |
| fastapi-fastapiPython |
| ErrorsExtension points |
| What a custom session interface must implement | Architecture | Easy | pallets-flaskPython | Auth and securityExtension points |
| Loaders that replace the loading step | Architecture | Easy | pallets-jinjaPython | Extension points |
| Concrete authentication classes | Architecture | Easy | psf-requestsPython | Auth and securityExtension points |
| Registering a new built-in driver | Architecture | Easy | unjs-unstorageTypeScript | Extension pointsCode structureCaching and storage |
| psf-requestsPython |
| HTTP clientsConfiguration and defaults |
| Default retryable status codes | Find | Easy | sindresorhus-gotTypeScript | Retries and timeoutsConfiguration and defaults |
| Design |
| Easy |
| pallets-jinjaPython |
| Caching and storage |
| Observables |
| How forkJoin recognizes a dictionary of sources | Trace | Easy | reactivex-rxjsTypeScript | Observables |
| Subscribing during delivery | Design | Easy | reactivex-rxjsTypeScript | Observables |
| psf-requestsPython |
| Auth and securityExtension points |
| fastapi-fastapiPython |
| Validation and parsingCode structure |
| Locking the app on serve | Architecture | Easy | h3js-h3TypeScript | RoutingCode structure |
| Where the progress bar is implemented | Find | Easy | pallets-clickPython | Command-line appsCode structure |
| The one real variable lookup | Find | Easy | pallets-jinjaPython | Code structure |
| What a frozen class does on assignment | Find | Easy | python-attrs-attrsPython | Code structure |
| Where immer's produce is renamed | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
| Classes in the toolkit core | Architecture | Easy | reduxjs-redux-toolkitTypeScript | State managementCode structure |
| Direct subclasses of RequestError | Architecture | Easy | sindresorhus-gotTypeScript | ErrorsCode structure |
| Leaving a buffer context | Architecture | Easy | textualize-richPython | Code structure |
| Output without escape codes | Find | Easy | textualize-richPython | Code structure |
| 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 |