npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@slashand/sdui-blade-svelte

v1.0.4-alpha.5

Published

Svelte Implementation Shell for the SDUI Blade Architecture.

Readme

SDUI Blade Svelte ([sbs])

The Svelte 5 Implementation Shell for the SDUI Blade Architecture.

sdui-blade-svelte is a highly-abstracted, horizontal spatial interface (The Journey Protocol) engine built natively for Svelte 5. Leveraging Svelte 5 Runes ($state, $derived, $effect) and native snippet templating, it provides a high-performance presentation layer over the agnostic state machine of sdui-blade-core.

Originally forged as the core spatial orchestration engine for Gravity English ([ge])—a multi-tenant educational platform—the underlying sdui-blade-core engine handles the abstract mathematical logic, state caching, and the "Inversion of Mount Points". This Svelte library ([sbs]) acts as the native adapter, interpreting that state machine into an elegant, non-blocking, and highly interactive UI tailored for the Svelte ecosystem.

Features

  • Svelte 5 Native: Built exclusively around modern Svelte 5 APIs. Zero legacy reactivity ($:); 100% Runes and Snippets.
  • The Journey Protocol: Implements horizontal, Azure-style overlapping panels (Blades) rather than blocking modals.
  • Agnostic Theming: Fully decoupled presentation layer. Bring your own CSS variables (e.g., Tailwind CSS v4) to style the geometry without fighting baked-in colors.
  • Responsive Geometry: Blades intelligently scale into mobile viewports while maintaining their proportional constraints via native max-width cascading.
  • Core Orchestration: Powered by @slashand/sdui-blade-core ([sbc]) for bulletproof state-machine interactions and spatial history.

Installation

npm install sdui-blade-svelte @slashand/sdui-blade-core

(Or use pnpm / yarn depending on your workspace).

Quick Start

1. Register your Blades

Register your Svelte components with the core engine and Svelte's Component registry.

<!-- src/routes/+layout.svelte -->
<script lang="ts">
	import { sduiEngine } from 'sdui-blade-svelte';
	import { setContext } from 'svelte';
	import MyDetailBlade from './blades/MyDetailBlade.svelte';

	// Register the agnostic state machine
	sduiEngine.registerBlade('my-detail', {
		type: 'my-detail',
		properties: { width: 'xlarge' }
	});

	// Provide the Svelte UI Registry
	const registry = {
		'my-detail': MyDetailBlade
	};
</script>

<slot />

2. Implement the Blade Host

Mount the BladeHost at the root of your application to catch and render spatial navigations.

<!-- src/routes/+page.svelte -->
<script lang="ts">
	import { BladeHost, sduiEngine } from 'sdui-blade-svelte';

	function openBlade() {
		sduiEngine.navigate({ type: 'my-detail', id: 'detail-1' });
	}
</script>

<button onclick={openBlade}>Open Detail Blade</button>

<BladeHost {registry} showBackdrop={false} />

3. Build a Blade Component

Construct your blades using the provided structural primitives to ensure correct layout math.

<!-- src/routes/blades/MyDetailBlade.svelte -->
<script lang="ts">
	import { Blade } from 'sdui-blade-svelte';
</script>

{#snippet commands()}
	<button>Action</button>
{/snippet}

{#snippet footer()}
	<div>Save Changes</div>
{/snippet}

<Blade title="Detail View" subtitle="Sub-context here" {commands} {footer}>
	<div class="content">Main blade content flows here...</div>
</Blade>

Architecture Notes

  • Inversion of Mount Points: sdui-blade-svelte does not define what your UI looks like internally. It establishes a semantic wrapper and broadcasts JSON state.
  • Transient Memory: Spatial journeys are tracked and can be synced to popstate / window.location for deep-linking.
  • No Naked Elements: The structural components are meticulously tagged with purpose-driven class names (e.g., blade-wrapper-div, blade-header-element) for reliable E2E testing and DOM targeting.

License

MIT