bindrunes
v4.1.0
Published
Svelte 5 component library for B2B SaaS applications — 234 components, 25 composables, three-axis design system
Maintainers
Readme
bindrunes
Svelte 5 component library for B2B SaaS. Server-first rendering, responsive hybrid, 234 components, 25 composables.
Quick Start
bun add bindrunes svelte tailwindcss lucide-svelte svelte-sonner/* app.css */
@import "tailwindcss";
@plugin "bindrunes/tailwind";
@import "bindrunes/styles/global.css";<!-- +layout.svelte -->
<script lang="ts">
import "../app.css";
import { ThemeProvider } from "bindrunes";
let { children } = $props();
</script>
<ThemeProvider themeDefault="editorial" densityDefault="comfortable">
{@render children()}
</ThemeProvider><!-- +page.svelte -->
<script lang="ts">
import { Button, Card } from "bindrunes";
</script>
<Card variant="glass" responsive>
<h2>Welcome</h2>
<Button variant="primary">Get Started</Button>
</Card>Features
- Server-first — All components SSR-safe. Server utilities for theme/density resolution from request context.
- Responsive hybrid — CSS container queries + fluid tokens for zero-JS responsiveness.
useViewport()for JS breakpoints. - Mobile gestures —
useSwipe(),useLongPress(),useHaptic()composables. BottomSheet and SwipeableList components. - Motion system —
<Transition>,<AnimatePresence>,<Stagger>,<PageTransition>, scroll-reveal CSS. - Runtime optimization —
useMemo(),useWorker(),useLazyLoad()composables. CSS containment on components. - Tree-shakeable — Split entry points:
bindrunes/data,bindrunes/forms,bindrunes/authfor lazy loading. - Three-axis design system — Theme (color), aesthetic (form), density (spacing). Any combination works.
- Svelte 5 runes —
$state,$derived,$effectonly. No legacy stores. - 4-layer architecture — Primitives → Layouts → Domains → Templates.
- 10 domain categories — Auth, Calendar, Chat, Data, E-commerce, Landing, Marketing, Media, Portfolio, Settings.
- Agentic copilot UI — LLM chat components: message lists, tool panels, streaming indicators.
- OKLCH color space — 6 curated themes: editorial, dracula, nord, catppuccin, rose-pine, github.
- 7 aesthetics — minimal, glass, bento, expressive, neon, brutalist, organic.
- Valibot validation — Lightweight, tree-shakeable schema validation.
Documentation
| Guide | Description | |-------|-------------| | Getting Started | Install, setup, first component | | Components | Component reference | | Composables | Reactivity, data, forms, auth | | Design System | Themes, aesthetics, density | | SSR Guide | Server-side rendering, progressive hydration | | Architecture | 4-layer hierarchy, file structure | | Agentic | LLM chat kernel and copilot UI | | Security | Token storage, redirects, CSRF | | Testing | Vitest conventions and helpers | | Migration v2→v3 | Breaking changes and upgrade guide | | bindrunes-kit | SvelteKit meta-framework |
Export Paths
| Path | What |
|------|------|
| bindrunes | Primitives, composables, utilities, types |
| bindrunes/server | SSR-safe utilities (no runes, no browser APIs) |
| bindrunes/responsive | Viewport, gesture, haptic, motion composables |
| bindrunes/motion | Transition, AnimatePresence, Stagger, PageTransition |
| bindrunes/data | Data layer (useQuery, useMutation, useTable) — lazy-loadable |
| bindrunes/forms | Form layer (useForm, useWizard) — lazy-loadable |
| bindrunes/auth | Auth layer (useAuth, useAccess) — lazy-loadable |
| bindrunes/layouts | Layouts + templates |
| bindrunes/domains/<name> | Domain components (e.g. bindrunes/domains/auth) |
| bindrunes/agentic | Agentic chat kernel |
| bindrunes/tailwind | Tailwind CSS v4 plugin |
| bindrunes/styles/* | Theme and global CSS |
| bindrunes/i18n/* | Translation dictionaries |
Development
bun install # Dependencies
bun run dev # Watch mode
bun run build # Build library
bun run test # Run tests
bun run lint # Lint checkLicense
MIT
