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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jpack-schema

v1.0.0

Published

Smart JSON compression using schema-based value deduplication. Achieve 40-70% size reduction while maintaining full JSON compatibility.

Readme

JPack Schema - Smart JSON Compression

Overview

JPack Schema is a professional JSON compression tool that uses advanced schema-based value deduplication to achieve 40-70% size reduction while maintaining full JSON compatibility and readability.

🧬 JPack Schema Format

How It Works

JPack Schema creates a dictionary of unique values and replaces duplicate data with numeric references. This approach:

  • Maintains full JSON compatibility
  • Achieves excellent compression ratios (40-70%)
  • Keeps the structure simple and readable
  • Enables easy JSON operations and queries

Example Transformation

Input JSON:

[
  {"name": "John", "role": "admin", "active": true},
  {"name": "Jane", "role": "admin", "active": true},
  {"name": "Bob", "role": "user", "active": false}
]

JPack Schema Output:

{
  "schema": {
    "0": "John",
    "1": "admin", 
    "2": true,
    "3": "Jane",
    "4": "user",
    "5": "Bob",
    "6": false
  },
  "data": [
    {"name": 0, "role": 1, "active": 2},
    {"name": 3, "role": 1, "active": 2},
    {"name": 5, "role": 4, "active": 6}
  ]
}

✨ Key Features

🎯 Professional Interface

  • Clean, minimal design focused on functionality
  • Intuitive layout with input and output side-by-side
  • Professional color scheme and typography
  • Responsive design with dark mode support

⚡ Smart Compression

  • 40-70% size reduction through value deduplication
  • Automatic detection of repeated values
  • JSON compatibility maintained throughout
  • Real-time compression analytics

🔧 Developer-Friendly

  • Auto-formatting: Instant compression as you type (500ms debounce)
  • File import: Support for large JSON files
  • Easy export: Download compressed files as .schema.jpack
  • Copy to clipboard: One-click copying of results

📊 Comprehensive Analytics

  • Original vs compressed size comparison
  • Compression ratio calculation
  • Bytes saved metrics
  • Clean tabular display of statistics

🚀 Perfect For

  • User lists with repeated roles/statuses
  • Product catalogs with common attributes
  • API responses with duplicate metadata
  • Configuration files with shared settings
  • Datasets with repetitive values
  • Any JSON with duplicate content

🛠️ Technical Details

Installation

npm install
npm run dev

Usage

  1. Paste JSON directly into the input area
  2. Import files using the import button for large datasets
  3. View results instantly with auto-formatting
  4. Copy or download the compressed output
  5. Analyze metrics in the comprehensive analytics section

File Support

  • Supports .json files of any size
  • Automatic validation and error handling
  • Loading indicators for large file processing

🎨 Interface Highlights

  • Professional design with subtle shadows and clean borders
  • Intuitive controls positioned logically in headers
  • Consistent styling across all components
  • Clear visual hierarchy with proper typography
  • Accessibility with proper contrast and focus states

🔄 JSON Compatibility

The output remains valid JSON that can be:

  • Parsed by any JSON parser
  • Queried and filtered normally
  • Easily converted back to original format
  • Processed by existing JSON tools and libraries

📈 Performance Benefits

  • Bandwidth savings: 40-70% smaller payloads
  • Storage efficiency: Significant space reduction
  • Processing speed: Maintained due to JSON compatibility
  • Memory usage: Reduced footprint for large datasets

Built with Next.js 16 + React 19 + Tailwind CSS v4

Experience the power of smart JSON compression with JPack Schema!