Bref-ui is a UI library of 19 Svelte 5 components, from buttons and dialogs to tabs and a tree view. It uses only what Svelte provides, you can edit the source of every component, and a coding agent can add one with a single import.
Install it in a Svelte 5 project, render Theme once in your app root, then use components
anywhere:
npm install bref-ui <script lang="ts">
import { Button, Theme } from 'bref-ui';
</script>
<Theme />
<Button label="Save" /> Svelte-first
Svelte's documentation describes scoped styles, transitions, bindings, and snippets as built-in features. Bref-ui uses those features and adds nothing else: no runtime dependencies, scoped CSS, native HTML, and no class names to memorize.
Human-first
You can change any component by editing its source. The shadcn/ui CLI copies component source into a React project, and Bref-ui's CLI does the same for Svelte:
npx bref-ui init
npx bref-ui add button add previews every file and asks before it overwrites anything. Copy the source and edit
it in your project, or keep importing from the npm package.
Agent-first
I think having a coding agent write a new button for every project wastes time and tokens. A generated button is a whole file of markup, styles, and states to write and review. With Bref-ui, the agent writes one import and one tag. Typed APIs and an llms.txt reference help agents discover, compose, and verify interfaces.
What comes next
I plan to use Bref-ui for generative UI, where a model puts the interface together while the app runs. This is a plan, and I have not built it yet. My guess is that Jev and similar decision models fit the job. Jev answers typed questions with a choice or a score and writes no code, so it could pick which components to show, and Bref-ui would render them.
Explore the documentation for component playgrounds and the Todo, House Shop, and RunnerAI demos. Read the code on GitHub.
