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

@ecosy/core

v0.3.4

Published

A modular, tree-shakable collection of essential utilities, serialization primitives, and event-driven patterns for modern TypeScript applications

Readme

@ecosy/core

A modular, tree-shakable collection of essential utilities, serialization primitives, and event-driven patterns for modern TypeScript applications.

Installation

yarn add @ecosy/core

Features

Subpath Imports

| Entry point | Description | | ------------------------ | --------------------------------------------- | | @ecosy/core | Re-exports all modules (except syhemo) | | @ecosy/core/types | TypeScript type utilities | | @ecosy/core/utilities | Runtime utility functions | | @ecosy/core/env | getEnv() — safe process.env access | | @ecosy/core/subscriber | Pub/sub event emitter with state | | @ecosy/core/http | HTTP client, Endpoint registry, uploads | | @ecosy/core/logger | Structured logger with log levels | | @ecosy/core/syhemo | System health monitor (Node-only) | | @ecosy/core/serialize | Serialization engine (JSON, URL, queryString) | | @ecosy/core/slugify | Unicode-safe string slugifier | | @ecosy/core/searchify | Diacritic-insensitive fuzzy search |

Types

Deep utility types for TypeScript — Freezable<T>, PartialLiteral<T>, Promisable<V>, ToString<T>, and more.

Utilities

  • clone — Deep clone with circular reference handling
  • freeze — Deep freeze via clone + Object.freeze
  • isEqual — Structural deep equality (Date, Map, Set, TypedArrays)
  • merge — Deep merge with prototype pollution protection
  • flatten / flattenToArray — Object flattening
  • get — Safe deep path resolution ("a.b[0].c")
  • defer / deferAsync — rAF + setTimeout scheduling with cancel
  • sanitizeMime / MIME_REGEX — validate and normalize MIME strings
  • isFormData / objectToFormData — FormData detection and conversion
  • toString / ucfirst / pascalToKebab — string helpers
  • Type guards: isFunction, isObject, isLiteralObject, isComplexObject, isObjectable, hasOwnProperty

Subscriber

Pub/sub event emitter with built-in state management, async once, and typed wiring.

Http

Configurable HTTP client with request/response interceptors, auth token injection, URL interpolation via Serialize, XHR-based upload with progress tracking, and multipart/related upload for Google-style APIs.

  • Endpoint — Central registry for grouping service endpoints (Endpoint.register("drive", { … })), also exposed as Http.Endpoint
  • HttpMethod / HttpUpload — Enums covering HTTP verbs and upload modes (UPLOAD, RELATED)
  • http.upload(url, files, options) — XHR upload with progress events
  • http.related(url, bytes, { metadata, contentType })multipart/related upload with JSON metadata + binary body
  • Http.createFactory({ http, endpoint }) — Typed endpoint factory keyed by registered service names

Serialize

Centralized serialization engine:

  • Serialize.Primitive — Type guards and deep normalization (BigInt, Date, undefined stripping)
  • Serialize.JSON — Safe stringify/parse that never throws
  • Serialize.URL — Robust encode/decode with :param URL building
  • Serialize.queryString — Advanced parse/stringify (bracket, index, comma formats)

Slugify & Searchify

  • slugify — Unicode-safe slug generation with custom transformer map
  • searchify — Diacritic-insensitive fuzzy search using sliding window algorithm

Documentation

Full API reference and guides: docs.ecosy.io

Related Packages

| Package | Description | | -------------------------------------------------------------------- | --------------------------------------------------------------- | | @ecosy/datekit | Headless date utilities (Dateify, Dayify, Monthify, Yearify) | | @ecosy/mailer | Email engine with template formatting, retry, and rate limiting | | @ecosy/store | State management with slices, reducers, and configureStore | | @ecosy/react | React hooks for @ecosy/store | | @ecosy/googleapis | Google Drive / OAuth2 client built on @ecosy/core/http |

License

MIT