Introducing Fabric, a flexible way to create and shape files
kubb.dev·12h·
Discuss: r/node, r/reactjs
Flag this post

Published: 2025-11-01

Introducing Fabric

Fabric is a new library from the Kubb ecosystem that focuses on easily creating files.

While Kubb popularized the idea of “code generation as a workflow,” Fabric focuses on making file creation effortless:

  • The core of Fabric orchestrates file generation, combining multiple files into one, managing files (with a queue), and intelligently merging or deduplicating imports and exports.
  • Extensible through custom plugins and parsers, with built-in support for TypeScript, JavaScript, and JSX/TSX.
  • Transform and write files to the filesystem seamlessly using the fsPlugin.
  • Use React to define files through JSX components, offering a declarative and composable approach to file generation.

tsx

``…

Similar Posts

Loading similar posts...