• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
gaearon

gaearon

lex

Public
Like
lex
Home
Code
2
lex-builder
12
H
main.tsx
Environment variables
Branches
1
Pull requests
Remixes
1
History
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.
Sign up now
Code
/
lex-builder
/
README.md
Code
/
lex-builder
/
README.md
Search
…
Viewing readonly version of main branch: v41
View latest version
README.md

lex-builder

Fork of @atproto/lex-builder for web-based lexicon resolution.

Why fork?

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.

Modifications

All patches are marked with [PATCH: inlay.at] comments.

index.ts

  • Added export * from './lex-def-builder.ts' to expose LexDefBuilder

ref-resolver.ts

  • Added absoluteImports, importBaseUrl, importSuffix options to RefResolverOptions
  • Modified resolveExternal() to generate absolute URLs (e.g., https://lex.val.run/nsid.ts?unpublished=...)

All files

  • Changed imports to npm: specifiers with pinned versions for Deno/Val Town compatibility
  • Changed local imports from .js to .ts extensions

Upstream

Source: https://github.com/bluesky-social/atproto/tree/main/packages/lex-builder Version: 0.0.3 (circa Feb 2025)

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.