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/core

v2.5.0

Published

Advanced JavaScript/TypeScript superset providing utilities, validation, and functional patterns

Readme

npm version TypeScript Coverage Mutation Tree-shakable ES2020+ Zero Dependencies

🏺 Pithos - Utilities Ecosystem

Open the box to unleash the power

All-in-one utilities ecosystem for modern web development. Zero dependencies. 100% TypeScript. Modules designed to work together, more than the sum of their parts.

✨ Key Features

  • 🛡️ Production-Ready - 100% test coverage, 100% mutation score, integration demos
  • 🔄 Interchangeable APIs - 100% compatible with Neverthrow and fp-ts
  • ⚡️ Ultra-Performance - High-speed execution with perfect tree-shaking
  • 🏛️ Type it once, infer it everywhere - Full TypeScript inference, no manual generics, no any leaks

🚀 Quick Start

pnpm install @pithos/core
import { ensure } from "@pithos/core/bridges/ensure";
import { string, object, optional, coerceDate } from "@pithos/core/kanon";

// Kanon validates, Zygos wraps - one function, two modules
const userSchema = object({
  name: string(),
  email: string(),
  birthdate: optional(coerceDate()),
});

const result = ensure(userSchema, formData);

if (result.isOk()) {
  save(result.value); // fully typed, validated, coerced
} else {
  showError(result.error); // validation error as string
}

// Or chain with map/mapErr - it's a full Zygos Result
ensure(userSchema, formData)
  .map(user => ({ ...user, name: user.name.trim() }))
  .mapErr(error => `Validation failed: ${error}`);

No manual try/catch, no .safeParse() + if (!result.success) boilerplate. That's the point of having an ecosystem.

📦 Modules

| Module | Role | Alternative to | |---|---|---| | Arkhe (ἀρχή - origin) | Core utilities & data manipulation | Lodash, Underscore, Ramda | | Eidos (εἶδος - form) | 23 GoF design patterns, functional style | Classes & inheritance | | Kanon (κανών - rule) | Schema validation | Zod, Yup, Joi | | Zygos (ζυγός - balance) | Result/Either/Option patterns | Neverthrow, fp-ts | | Sphalma (σφάλμα - error) | Typed error factories | - | | Taphos (τάφος - tomb) | Deprecated utils with migration paths | "You Don't Need Lodash" |

All modules are stable and production-ready with 100% test coverage.

Like Pandora's pithos that contained both problems and solutions, this ecosystem 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 😉

🌳 Tree Shaking

Direct imports for optimal bundle size:

// ✅ Only what you use
import { chunk } from "@pithos/core/arkhe/array/chunk";
import { debounce } from "@pithos/core/arkhe/function/debounce";

Modules with cohesive APIs (Kanon, Zygos, Sphalma) also expose barrels:

// ✅ Also fine - negligible overhead with modern bundlers
import { string, object, optional } from "@pithos/core/kanon";

🔧 Development

pnpm run dev                # Build in watch mode
pnpm cli                    # Interactive CLI for tests, benchmarks, docs, and more

📖 Documentation

Full documentation, use cases, benchmarks, and migration guides at pithos.dev

🤝 Contributing

Contributions welcome! See the contribution guide for setup and guidelines.

📝 License

MIT