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

turbo-map

v1.0.10

Published

High-performance, type-safe Map implementation supporting complex nested objects as keys, fully compatible with ES Map API

Readme

🚀 TurboMap - Turbocharged Mapping Tool

High-performance, type-safe Map implementation that supports complex nested objects as keys, fully compatible with ES Map API

CI/CD Release Deploy Docs npm version npm downloads License: MIT TypeScript Node.js Test Coverage Code Quality

📊 Project Status

  • Test Coverage: 62.29% (197 tests all passing)
  • Code Quality: ESLint and TypeScript checks passed
  • Build System: Supports CommonJS, ESM, UMD formats
  • CI/CD: Complete automation pipeline
  • Script Optimization: All scripts functional and non-redundant
  • Security Audit: Security checks passed
  • Performance Testing: Benchmark tests running normally

Documentation

Installation

System Requirements

  • Node.js >= 18.0.0
  • TypeScript >= 4.0.0 (recommended)

Package Managers

# npm
npm install turbo-map

# yarn
yarn add turbo-map

# pnpm
pnpm add turbo-map

# bun
bun add turbo-map

# deno
import { createTurboMap } from "npm:turbo-map"

# Direct from GitHub
npm install github:chenfangyin/turbo-map
yarn add github:chenfangyin/turbo-map
pnpm add github:chenfangyin/turbo-map
bun add github:chenfangyin/turbo-map

Browser Usage (CDN)

<!-- ES modules -->
<script type="module">
  import { createTurboMap } from 'https://unpkg.com/turbo-map@latest/dist/index.esm.js'
  
  const userMap = createTurboMap()
  userMap.set({ id: 1, name: 'Alice' }, 'User details')
</script>

<!-- UMD module -->
<script src="https://unpkg.com/turbo-map@latest/dist/index.umd.js"></script>
<script>
  const userMap = TurboMap.createTurboMap()
  userMap.set({ id: 1, name: 'Alice' }, 'User details')
</script>

Quick Start

// Named import (recommended)
import { createTurboMap } from 'turbo-map'

const userMap = createTurboMap<{ id: number; name: string }, string>()

userMap.set({ id: 1, name: "Alice" }, "User 1 details")
console.log(userMap.get({ id: 1, name: "Alice" })) // "User 1 details"

// Fully compatible with ES Map API
for (const [key, value] of userMap) {
  console.log(`${key.name}: ${value}`)
}

✨ Core Features

🚀 Turbo Performance

  • 3-5x Performance Boost: LRU cache, fast hash paths, object pool optimization
  • Smart Memory Management: Automatic cache cleanup, memory leak prevention
  • Performance Monitoring: Built-in performance metrics and debugging tools

🔐 Complete Type Safety

  • TypeScript-First: All operations maintain original key types
  • Smart Type Inference: Automatic key-value type inference
  • Compile-Time Checking: Catch type errors early

🔄 Deep Object Comparison

  • Arbitrary Nesting Levels: Support complex nested objects as keys
  • Circular Reference Handling: Safely handle circular references between objects
  • Special Type Support: Date, RegExp, Array, Function, etc.

🎯 ES Map Full Compatibility

  • Symbol.iterator: Support for...of loops
  • Symbol.toStringTag: Correct toString() behavior
  • Constructor Overloading: Support new Map(entries) syntax
  • All Standard Methods: set, get, has, delete, clear, etc.

🔌 Plugin Architecture

  • Hook System: Support beforeSet, afterGet, etc. hooks
  • Custom Behavior: Extensible and customizable operations
  • Plugin Management: Dynamic plugin addition and removal

🚀 Advanced Features

  • Async Operations: Non-blocking batch operations and streaming
  • Error Recovery: Robust error handling with fallback mechanisms
  • Diagnostics: Performance profiling and memory analysis
  • Tiered Caching: Multi-level cache system for optimal performance

📦 Release Process

⚠️ Important Notice

Only tag pushes trigger npm releases!

  • Will trigger: git push origin v1.0.1 (version tag)
  • Won't trigger: git push origin main (regular push)
  • Won't trigger: git push origin feature-branch (feature branch)

Release Methods

  1. Automatic Release: Push version tag to trigger GitHub Actions
  2. Manual Release: Use npm run release:patch/minor/major
  3. Direct Publish: Use npm publish (not recommended)

Security Mechanisms

  • Pre-publish Checks: Tests, builds, security audits
  • Rollback Support: Automatic error recovery and rollback
  • Version Validation: Semantic versioning enforcement
  • Quality Gates: Multiple validation layers

Release Checklist

  • [ ] All tests passing (npm test)
  • [ ] Build successful (npm run build)
  • [ ] Type checking passed (npm run type-check)
  • [ ] Security check passed (npm run security:check)
  • [ ] CI/CD configuration validated (npm run ci:test)
  • [ ] Version number correctly updated
  • [ ] CHANGELOG.md updated
  • [ ] Commit messages follow conventions

📄 License

MIT License

🤝 Contributing

Welcome to submit Issues and Pull Requests!

Related Links

Related Projects


🚀 TurboMap - Making object key mapping simple and efficient!

Ivan Chen - GitHub - Email

Contributing

We welcome contributions! Please feel free to submit issues and pull requests.


🚀 TurboMap - Making object key mapping simple and efficient!