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

@oiyonet/lifecycle-guard

v1.0.0

Published

Progressive retirement, graceful deprecation, and sunsetting engine for AI agent skills, APIs, and content. 100% zero-dependency.

Readme

@oiyonet/lifecycle-guard

npm version License: MIT Powered by OIYO

Progressive retirement, graceful deprecation, and sunsetting engine for AI agent skills, APIs, models, and content. 100% zero-dependency.

Engineered by OIYO Lab to eliminate breaking changes and system outages when phasing out legacy tools, retired AI models, outdated skills, or old URLs.


🌟 The 4 Stages of Progressive Retirement (점진적 퇴장)

Abruptly deleting code or switching AI models causes catastrophic failures across automated pipelines. @oiyonet/lifecycle-guard formalizes a safe 4-stage lifecycle:

[1. ACTIVE] ──► [2. DEPRECATED] ──► [3. FALLBACK] ──► [4. SUNSET]
 Production       Emits Warning       Transparent       Permanent Tombstone
   Default        & Target Date       Auto-Reroute       Safe for Purge
  1. ACTIVE: Full production support.
  2. DEPRECATED: Operational, but logs structured deprecation warnings (Caller, replacementId, sunsetAt).
  3. FALLBACK: The legacy implementation is retired, but calls are transparently intercepted and redirected to the modern replacement without throwing or breaking callers.
  4. SUNSET: Permanently retired. Returns structured Tombstone metadata with migration guides.

📦 Installation

# Global CLI
npm install -g @oiyonet/lifecycle-guard

# Or run instantly via npx
npx @oiyonet/lifecycle-guard audit

🚀 CLI Commands

1. Register an Item into Lifecycle Management

lifecycle-guard register --id legacy-auth-token --type api --stage ACTIVE

2. Deprecate with Sunset Deadline & Replacement Target

lifecycle-guard deprecate --id legacy-auth-token --replace modern-jwt-session --sunset 2026-12-31 --reason "Migrating to stateless JWT"

3. Transition to Fallback (Transparent Proxying)

lifecycle-guard fallback --id legacy-auth-token --replace modern-jwt-session --reason "Rerouting legacy API requests"

4. Permanently Sunset

lifecycle-guard sunset --id legacy-auth-token --reason "All clients migrated"

5. Audit Impending Sunsets & Safe-to-Purge Code

lifecycle-guard audit

Output:

📊 Lifecycle Audit Report:
   • Total Items: 12
   • Active: 🟢 8
   • Deprecated: 🟡 2
   • Fallback: 🟠 1
   • Sunset: 🔴 1

⚠️ Impending Sunsets (<30 days):
   • legacy-auth-token (Sunset Date: 2026-12-31) -> migrate to modern-jwt-session

🧹 Safe to Purge from Codebase (Sunset + 0 calls):
   • old-hermes-feed (All clients migrated)

💻 Programmatic TypeScript API (Graceful Adapters)

import { LifecycleGuard } from '@oiyonet/lifecycle-guard';

const guard = new LifecycleGuard();

// Automatically wrap a function to handle deprecation, fallback, and sunsetting seamlessly:
const getUser = guard.wrapFunction(
  'api:get-user-v1',
  (id) => fetchLegacyUser(id), // executed during ACTIVE / DEPRECATED
  (id) => fetchModernUser(id)  // transparently executed during FALLBACK
);

// Callers don't break even when the underlying implementation shifts!
const user = getUser(101);

🌐 Powered by OIYO Lab

@oiyonet/lifecycle-guard is an open-source tool developed and maintained by OIYO Lab. Explore our companion developer tools at tools.oiyo.net and deep technical engineering articles on blog.oiyo.net.

License

MIT © OIYO Lab