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

pithos

v1.0.12

Published

Advanced JavaScript/TypeScript superset providing performance, gestures, animations, and DOM utilities

Readme

npm version TypeScript

🏺 Pithos Superset

Open the box to unleash the power

Advanced JavaScript/TypeScript superset providing performance, gestures, animations, DOM utilities, and practical helpers & utils.

✨ Key Features

  • 🔄 Framework-Agnostic - Built with TypeScript, runs as vanilla JavaScript
  • ⚡ Lightweight & Performant - Carefully optimized for bundle size and smooth performance
  • 🌐 Universal Compatibility - Works seamlessly with React, Vue, Angular, Svelte, or vanilla JS
  • 🎯 Tree-Shaking Ready - Import only what you need for optimal bundle optimization
  • 🛠️ Production-Ready - Battle-tested utilities for real-world applications

Tired of rewriting the same utilities across projects? Whether you're building web apps, libraries, or complex interfaces, Pithos provides the building blocks you need...

Something missing? Let's build it together—reach out or open a PR!

The Pithos Story

Like Pandora's pithos that contained both problems and solutions, this superset tackles common development pain points while providing the tools you need. By the way, Pandora's "box" was actually a large jar : "Pithos" in Greek 😉

🤔 Why this project?

Born from personal frustration:

  • 🔍 "Where did I put that utility again?"
  • 🔄 Rewriting the same logic because it's faster than searching
  • 🧩 Best code scattered across projects, never improving
  • 📈 Great utilities stuck in old codebases
  • 💪 Missing the compound effect: Code that becomes more reliable through repeated use

The solution: Centralize, evolve, and battle-test in one place.

If you've felt the same frustration, Pithos might be exactly what you need.

🚀 Installation

npm install pithos

📦 Usage

Import, use, done! No more time wasted on rewriting utilities or figuring out how to implement them:

import { Nullable } from "pithos/types/common";
import { parseFloatDef } from "pithos/data/number-utils";
import { AnimationController } from "pithos/animations/animation-controller";

That's it! Start building immediately instead of reinventing the wheel.

🌳 Tree Shaking

Pithos is optimized for tree shaking. Use direct imports for optimal bundle size:

// ✅ Good - only FrameScheduler included
import { FrameScheduler } from "pithos/performance/frame-scheduler";

// ❌ Less optimal - entire module included
import { FrameScheduler } from "pithos";

🛠️ Available modules

  • types : Common TypeScript utility types...
  • data : Storage, parsing, number utilities...
  • dom : Viewport parsing, browser support utilities...
  • performance : Frame scheduling, debouncing...
  • animations : Animation controllers, easing functions...
  • gestures : Touch handling, wheel gestures, gesture recognition...
  • math : Geometry utilities...

💡 Some usecases

🏷️ Nullable Types - Even the basics matter

import { Nullable } from "pithos/types/common";

type User = {
  name: string;
  email: Nullable<string>; // null | string instead of string | undefined
  avatar: Nullable<string>; // Clear intent: can be null
};

🛡️ parseFloatDef - Never get NaN again

import { parseFloatDef } from "pithos/data/number-utils";

// Instead of getting NaN and breaking your app
const price = parseFloatDef("invalid_price", 0); // Returns 0
const quantity = parseFloatDef("42.99", 1); // Returns 42.99
const discount = parseFloatDef(undefined, 0.1); // Returns 0.1

🎬 AnimationController - Professional animations made simple

import { AnimationController } from "pithos/animations/animation-controller";

const controller = new AnimationController();

// Smooth animation with easing and callbacks
await controller.animate(0, 100, {
  duration: 1000,
  easing: easeOutBounce,
  onUpdate: (value) => (element.style.transform = `translateX(${value}px)`),
  onComplete: () => console.log("Animation finished!"),
});

🔧 Available scripts

npm run build      # Build the project
npm run dev        # Build in watch mode
npm run lint       # Code linting
npm run type-check # TypeScript type checking
npm run clean      # Clean build directory

⚠️ Work in Progress

This project is currently under active development.

While Pithos already provides useful utilities, it's intentionally kept lean and focused. Rather than creating a bloated toolkit with mediocre features, I prefer to add utilities one by one and optimize them to the maximum.

Quality over quantity - each utility is carefully crafted, tested, and optimized before being added. This ensures that what you get is actually useful and production-ready, not just another "kitchen sink" library.

Current status: Core utilities are stable, new features are added incrementally based on real needs and community feedback.

🤝 Contributing

We welcome contributions! Whether it's bug fixes, new features, or documentation improvements, every contribution helps make Pithos better.

How to contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development setup:

git clone https://github.com/mopi1402/pithos.git
cd pithos
npm install
npm run dev

Code style:

  • Follow the existing TypeScript/ESLint configuration
  • Write clear, documented code
  • Add tests for new features
  • Update documentation as needed

Questions? Open an issue or start a discussion!

📝 License

MIT