explaingit

facebook/astryx

Analysis updated 2026-05-18

5,000TypeScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

An open source React component library from Meta with 150+ accessible UI components, seven visual themes, and a CLI for scaffolding, designed for both developers and AI coding assistants.

Mindmap

mindmap
  root((astryx))
    Components
      150+ UI building blocks
      Full TypeScript support
      Accessibility built in
    Theming
      Seven ready-made themes
      CSS variable overrides
      No styling lock-in
    Tooling
      CLI for scaffolding
      Component ejection
      Codemods
    Built for
      Web developers
      AI coding assistants
      Meta internal teams
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a consistent set of buttons, forms, and navigation components to a React app without designing them from scratch.

USE CASE 2

Apply a pre-built visual theme to a project and switch between theme options by changing a single package reference.

USE CASE 3

Eject a component's source code to fully customize its behavior when the default API does not cover your needs.

USE CASE 4

Use the CLI to scaffold a new page layout or form pattern from a battle-tested template.

What is it built with?

TypeScriptReactStyleXCSSNode.jspnpm

How does it compare?

facebook/astryxlmstudio-ai/lmslinuxhsj/openclaw-zero-token
Stars5,0004,7994,795
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity2/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No build plugin or PostCSS config required, install the package, add CSS imports, and wrap with the theme provider.

MIT license, use, copy, modify, and distribute freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

Astryx is an open source collection of ready-made website components created by Meta and now released for anyone to use. A design system is essentially a shared toolkit of buttons, menus, forms, and other building blocks so that every screen in an app looks and behaves consistently without each team starting from scratch. Astryx grew inside Meta over eight years and ended up powering more than 13,000 internal applications before being published publicly. The library ships over 150 pre-built components built on React, the popular JavaScript framework for building web interfaces. You install a package, add a few CSS imports, and components are ready to drop into your pages. There is no extra build configuration required. Seven pre-designed visual themes are included, covering styles from a neutral professional look to playful options like butter, matcha, and y2k. If none of those match your brand, you apply your own colors and fonts through standard CSS variables without touching any component code. One of the more practical design choices is how customization works. When a component does not quite do what you need, a command-line tool can eject its full source code directly into your project. From that point the component is yours to change however you want. This is less common in design systems, which often lock their internals behind a closed interface. The system was specifically designed so that AI coding assistants and human developers use the same workflow and documentation. The API conventions are consistent enough that once you learn one component, others behave predictably, which also makes it easier for AI tools to generate correct code without special guidance. Components include standard accessibility support built in. Templates for common page layouts, forms, and data tables are also included so you are not assembling those patterns from individual pieces every time. The project is in public beta and is MIT licensed, meaning it is free to use in both personal and commercial projects.

Copy-paste prompts

Prompt 1
I am starting a new React project and want to use Astryx for my UI components. Show me the minimal setup: which packages to install, the CSS imports needed, and how to wrap my app with the theme provider.
Prompt 2
I need to customize the color scheme of Astryx components to match my brand. Show me how to override the CSS custom properties for the neutral theme without forking any component source.
Prompt 3
I want to use the Astryx CLI to eject a Button component so I can modify its internals. Walk me through the command and what files it creates in my project.
Prompt 4
How do I use Astryx with Next.js App Router? Show me the provider setup and any configuration needed to avoid server-component conflicts with the CSS imports.

Frequently asked questions

What is astryx?

An open source React component library from Meta with 150+ accessible UI components, seven visual themes, and a CLI for scaffolding, designed for both developers and AI coding assistants.

What language is astryx written in?

Mainly TypeScript. The stack also includes TypeScript, React, StyleX.

What license does astryx use?

MIT license, use, copy, modify, and distribute freely for any purpose including commercial, as long as you keep the copyright notice.

How hard is astryx to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is astryx for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub facebook on gitmyhub

Verify against the repo before relying on details.