lex
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v42View latest version
Fork of @atproto/lex-builder for web-based lexicon resolution.
The official package doesn't export LexDefBuilder (the class that does actual codegen), only the high-level build() function that writes to disk. We need in-memory codegen for serving TypeScript dynamically from a web endpoint.
All patches are marked with [PATCH: inlay.at] comments.
- Added
export * from './lex-def-builder.ts'to exposeLexDefBuilder
- Added
absoluteImports,importBaseUrl,importSuffixoptions toRefResolverOptions - Modified
resolveExternal()to generate absolute URLs (e.g.,https://lex.val.run/nsid.ts?unpublished=...)
- Changed imports to
npm:specifiers with pinned versions for Deno/Val Town compatibility - Changed local imports from
.jsto.tsextensions
Source: https://github.com/bluesky-social/atproto/tree/main/packages/lex-builder Version: 0.0.3 (circa Feb 2025)