repowisemeta/astryx

Architecture of meta/astryx

meta/astryx is 11,404 source files holding 56,066 symbols across 7 modules, written mainly in TypeScript, JavaScript, Swift. The largest module is packages, with 7,676 files, and 31 files are entry points into the dependency graph.

How astryx fits together

The published packages live in packages/, which holds the core components and theme system, the CLI, the build plugins for StyleX source builds, and the ready-made themes. packages/cli/clients/cli/bin/astryx.mjs is the CLI entry point that provides component docs, templates, scaffolding, themes and codemods. Components are exported directly from the core package, and swizzle can eject a component's full source into a project. apps/ contains the example apps, the docsite and Storybook, which show the components in use. internal/ holds the test utilities, eslint plugin and vibe tests that support development of the project.

Largest modules

  • packages: 7,676 files and 1,504,247 lines of code
  • apps: 929 files and 217,796 lines of code
  • internal: 561 files and 128,152 lines of code
  • .github: 259 files and 79,412 lines of code
  • scripts: 212 files and 49,345 lines of code
  • root: 7 files and 1,187 lines of code
  • .changeset: 1 file and 16 lines of code

Languages

By file count: TypeScript 5,292 files, JavaScript 4,280 files, Swift 62 files, Shell 8 files, Python 3 files.

Documentation

Repowise documents astryx in 5,385 pages generated from the source, 81 of them written explanations of the repository and its modules. Module guides include:

  • packages/cli/api: API

More on astryx: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos