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

@deshicode/utils-sveltekit

v0.0.2

Published

[![Build & Publish](https://github.com/deshi-code/utils-sveltekit/actions/workflows/publish.yml/badge.svg)](https://github.com/deshi-code/utils-sveltekit/actions) [![NPM Version](https://img.shields.io/npm/v/%40deshicode%2Futils-sveltekit?color=label=npm)

Readme

@deshicode/utils-sveltekit

Build & Publish NPM Version NPM Downloads License SvelteKit Compatibility

A suite of enterprise-grade SvelteKit utilities designed for internal use. Optimized for high-performance debugging, hardware-aware responsiveness, and seamless development workflows.

@deshicode/utils-sveltekit/client

A suite of utilities and interactive components optimized for SvelteKit. Designed for high-performance debugging, hardware-aware responsiveness, and seamless development workflows.

Installation

Install the core package and its required peer dependencies using your preferred package manager:

NPM or your favorite nodejs package manager

npm install @deshicode/utils-sveltekit svelte tailwindcss

API Reference

Components

DevDeviceBlock

A lightweight, development-only visualizer for Tailwind CSS breakpoints. It helps ensure your UI scales correctly across the responsive spectrum by displaying the active breakpoint in real-time.

Usage:

<script>
  import { DevDeviceBlock } from '@deshicode/utils-sveltekit/client';
</script>

<DevDeviceBlock />

PreDebug

An advanced, interactive JSON/data inspector. Unlike standard <pre> tags, PreDebug features a portal-based stacking system, smooth drag-and-drop mechanics, and hardware-accelerated transitions.

Properties:

| Property | Type | Default | Description | | :---- | :---- | :---- | :---- | | data | any | undefined | The reactive data or object to inspect. | | title | string | "" | Optional header label (auto-generates an ID if empty). | | classes | string | "" | Custom CSS classes for the container. | | floating | boolean | true | When true, portals the inspector to a fixed stack in the bottom-right. |

Features:

  • Stacking Engine: Automatically manages multiple instances via a fixed portal container.
  • Interactive UI: Supports drag-to-reposition for both the summary block and the full-screen modal.
  • Live Metadata: Displays payload weight (KB/B) and line counts.
  • Syntax Highlighting: Integrated color-coding for keys, strings, booleans, and numbers.
  • Modal Viewer: Full-screen mode for deep-diving into complex nested objects with one-click clipboard copying.

Usage:

<script>
  import { PreDebug } from '@deshicode/utils-sveltekit/client';
  
  let storeData = { status: 'success', latency: '42ms', region: 'us-east-1' };
</script>

<!-- Floating portal (Default) -->
<PreDebug data={storeData} title="API Response" />

<!-- Inline mode -->
<PreDebug data={storeData} floating={false} classes="rounded-lg border" />

Stores

ClientResponsiveStore

A sophisticated, performance-first store that tracks the environment. It leverages requestAnimationFrame and matchMedia listeners to provide a comprehensive snapshot of the user's hardware and viewport.

ResponsiveState Schema:

| Property | Type | Description | | :---- | :---- | :---- | | width / height | number | Current window dimensions in pixels. | | theme | 'light' | 'dark' | 'not-found' | Real-time system color scheme detection. | | activeBreakpoint | DeviceBreakpoint | Current active breakpoint (xs through 2xl or ssr). | | isHoverable | boolean | Detects mouse/pointer capability for hover states. | | isTouchable | boolean | Detects touch-input hardware. | | isFoldable | boolean | Detects dual-screen or foldable viewport segments. | | isMobile | boolean | width < 768px. | | isTablet | boolean | width >= 768px && < 1024px. | | isDesktop | boolean | width >= 1024px. |

Usage:

<script>
  import { ClientResponsiveStore } from '@deshicode/utils-sveltekit/client';
</script>

<div class="p-6">
  <h1 class="text-xl">System: {$ClientResponsiveStore.theme}</h1>
  
  {#if $ClientResponsiveStore.isMobile}
    <MobileNavigation />
  {:else}
    <DesktopNavigation />
  {/if}
</div>

Breakpoint Thresholds:

  • xs: 320px
  • sm: 640px
  • md: 768px
  • lg: 1024px
  • xl: 1280px
  • 2xl: 1536px

Import Summary

import {   
    DevDeviceBlock,   
    PreDebug,   
    ClientResponsiveStore   
} from "@deshicode/utils-sveltekit/client";