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

@speajus/diblob-visualizer

v1.0.3

Published

Interactive dependency injection graph visualization for diblob

Readme

🎨 Diblob Visualizer

Interactive dependency injection graph visualization for diblob.

Visualize your dependency injection container as an interactive graph with nodes representing blobs and edges showing dependencies between them.

✨ Features

  • 📊 Interactive Graph Visualization - Pan, zoom, and drag nodes
  • 🔄 Real-time Updates - Watch the graph update as you modify your container
  • 🎯 Lifecycle Indicators - Visual distinction between Singleton and Transient services
  • 📈 Statistics Dashboard - See counts of nodes, edges, and lifecycle types
  • 🎨 Clean UI - Modern, responsive design with clear visual hierarchy
  • 🔌 Embeddable - Easy to integrate into any Svelte application
  • 🏷️ Metadata Support - Display custom names, descriptions, and metadata for blobs

📸 Screenshots

Dependency Graph Visualization

Dependency Graph

The visualizer displays your dependency injection container as an interactive graph, showing:

  • Blob nodes with their metadata (name, description)
  • Dependencies between services
  • Lifecycle indicators (Singleton/Transient)
  • Real-time statistics

Metadata Display

Metadata Display

Blobs with metadata show rich information:

  • Custom names instead of generic blob IDs
  • Descriptions for better understanding
  • Any custom metadata properties you define

📦 Installation

npm install @speajus/diblob-visualizer @speajus/diblob

🚀 Quick Start

Standalone Demo

npm install
npm run dev

Open http://localhost:5173 to see the visualizer in action.

Embedding in Your Application

<script lang="ts">
  import { DiblobVisualizer } from '@speajus/diblob-visualizer';
  import { createContainer, createBlob } from '@speajus/diblob';

  const container = createContainer();
  const logger = createBlob<Logger>();
  container.register(logger, ConsoleLogger);
</script>

<DiblobVisualizer {container} />

📖 Usage Examples

See src/App.svelte for a complete working example with multiple services.

Using Metadata for Better Visualization

Add metadata to your blobs to make the visualizer more informative:

import { createBlob, createContainer } from '@speajus/diblob';

// Create blobs with metadata
const logger = createBlob<Logger>('logger', {
  name: 'Console Logger',
  description: 'Logs messages to the console'
});

const userService = createBlob<UserService>('userService', {
  name: 'User Service',
  description: 'Manages user data and operations',
  version: '1.0.0'
});

// Create container with metadata
const container = createContainer({
  name: 'Application Container',
  description: 'Main DI container'
});

// Register services
container.register(logger, ConsoleLogger);
container.register(userService, UserServiceImpl, logger);

The visualizer will display the metadata names and descriptions, making it much easier to understand your dependency graph at a glance.

Component Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | container | Container | required | The diblob container to visualize | | autoRefresh | boolean | false | Auto-refresh at intervals | | refreshInterval | number | 1000 | Refresh interval (ms) |

Graph Legend

  • 🔒 Blue nodes - Singleton services
  • ⚡ Orange nodes - Transient services
  • Red nodes - Unregistered dependencies
  • Arrows - Dependencies between services

🏗️ Architecture

Built with Svelte 5, Svelte Flow, TypeScript, and Vite.

🔧 Development

npm install
npm run dev      # Start dev server
npm run build    # Build library
npm run check    # Type check

📝 License

MIT