lex_gen

Lexicon-to-Dart code generation

A code generator that turns AT Protocol Lexicon documents into Dart models, service classes and CLI commands. It generates atproto, bluesky and bluesky_cli.

ActivePersonalOpen source

Record

Kind
Tool
Role
Author
Started
July 2025
Updated
August 2026
Licence
BSD-3-Clause
pub
lex_gen · atprotodart.com

Technology4

Evidence3 sources

The first commit adding packages/lex_gen is "chore: move to lex_gen package", authored 2025-07-19T08:30:40+09:00 — 2025-07-18T23:30:40Z — so the calendar date GitHub renders for it depends on the time zone of whoever opens the pagerepogithub.com The monorepo's scripts/gen_codes.dart imports package:lex_gen/lex_gen.dart and runs two generators against three targets — ServiceGen writes service code into the atproto and bluesky packages, CommandGen writes CLI commands into bluesky_clisourcegithub.com It is a programmatic generator with no bin/ entrypoint, added as a dev dependency and driven from a build scriptdocsgithub.com

Links2

Relations5 edges

atproto.dartPart ofDart SDK monorepo for AT Protocol and Bluesky lexiconDepends onA Lexicon parser for the AT Protocol atprotoGeneratesA Dart/Flutter SDK for the AT Protocol blueskyGeneratesA Dart/Flutter SDK for Bluesky Social bluesky_cliGeneratesA command-line client for Bluesky Social