squeezy

JS & CSS validator, bundler and minifier

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-05 07:27

Authors

  • George Lemon

Installation

nimble install squeezy
choosenim install squeezy
git clone https://github.com/openpeeps/squeezy

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
squeezy - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0.0 No
openparser >= 0.1.5 No
sweetsyntax >= 0.1.0 No

Source

Repository https://github.com/openpeeps/squeezy
Homepage https://github.com/openpeeps/squeezy
Registry Source nimble_official

README

Squeezy Logo
A dead simple JavaScript and CSS validator, bundler and minifier

nimble install squeezy

API reference
Github Actions Github Actions

😍 Key Features

  • High-performance minifier built with Nim lang 👑
  • Validate, Bundle and minify CSS and JavaScript assets
  • Source map generation for JavaScript
  • Identifier mangling for JavaScript
  • Inline Minifier for HTML / CSS / JavaScript (fastest, no parsing, no validation)
  • Built on top of pkg/sweetsyntax & pkg/openparser/css

Examples

Check in the examples directory and the unit tests

Roadmap

..

Benchmarks

Comparing Squeezy vs ESBuild (on d3.js library ~ 20k lines)

  [OK] dependencies available
  [OK] build bench runner

  Output sizes:

    Original:              587043 bytes
    squeezy-inline:        420081 bytes
    squeezy-bundle:        413739 bytes
    squeezy-bundle+mangle: 360824 bytes
    esbuild:               281878 bytes
  [OK] output size comparison + save

  squeezy-inline:
    Time (mean ± σ):      13.5 ms ±   0.8 ms    [User: 10.3 ms, System: 2.1 ms]
    Range (min  max):    11.9 ms   17.3 ms    156 runs
  squeezy-bundle:
    Time (mean ± σ):      93.7 ms ±   5.1 ms    [User: 84.0 ms, System: 7.8 ms]
    Range (min  max):    88.6 ms  111.4 ms    31 runs
  squeezy-bundle+mangle:
    Time (mean ± σ):     102.0 ms ±   6.8 ms    [User: 91.5 ms, System: 8.7 ms]
    Range (min  max):    95.2 ms  127.7 ms    27 runs
  esbuild:
    Time (mean ± σ):      63.9 ms ±   4.0 ms    [User: 50.8 ms, System: 14.5 ms]
    Range (min  max):    58.9 ms   77.5 ms    39 runs
  [OK] hyperfine benchmark

❤ Contributions & Support

OpenCode Switch to Open-Source LLMs via OpenCode GO, choosing from a variety of powerful models such as DeepSeek, Qwen, Kimi, GLM-5, MiniMax, MiMo. 🍕 Use our referral link to get started!

🎩 License

MIT license. Made by Humans from OpenPeeps.
Copyright OpenPeeps & Contributors — All rights reserved.