Works with your existing React system
Fragments reads supported React components and declared token sources directly from your repository. Storybook is not required, and you can keep your existing library.
Fragments gives supported coding agents your approved components and tokens, while configured hooks and CI detect or block covered violations before merge.
Fragments reads supported React components and declared token sources directly from your repository. Storybook is not required, and you can keep your existing library.
Pick your canonical components, token sources, and repository scope; Fragments compiles them into a governed policy that configured agents and CI can read.
Use the same served rules and scan scope in supported agent hooks, configured CI, and connected GitHub repositories. Findings include a code and explanation; only proven-safe fixes are offered as deterministic rewrites.
npx @usefragments/cli initconst config = {
framework: 'react',
govern: {
presets: ['universal'],
canonicalSources: [
{
kind: 'npm',
specifier: '@your-org/ui', // your component library
},
],
},
};
export default config;One contract defines the components and tokens your configured agents, hooks, editor, and CI share.