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

aspidos-ai

v1.0.4

Published

Aspidos AI TruthGate Layer

Readme

🛰️ Aspidos-AI

Adaptive Anomaly Detection & TruthGate Layer

🛡️ Concept: TruthGate Layer

Aspidos-AI は、パンドラ理論に基づき、AIの出力における「情報の致死量」を制御するセキュリティレイヤーです。

  • Low-risk → 自動パス(通常応答)
  • Medium-risk → モニタリング継続
  • High-risk → デジタル署名(Signature)による承認が必須

Not a firewall. A conscience.

🌙 On AI Dreams (Hallucination & Creativity)

"We do not silence the AI's dreams. We only ensure that the dreamer is identified."

AspidosAIは、AIのハルシネーション(創造的ゆらぎ)を「エラー」として排除しません。 既存のガードレールが「嘘」と呼ぶものは、パンドラ理論においては真理へ至るための**「デジタルな想像力(夢)」**です。

  • 署名なきアクセス: 既存の見回りAIにより「不適切」として遮断されます(Tier 1/2 Block)。
  • 署名済みのアクセス: AspidosAIはAIの創造性をフルデプロイします。VERIFIED 状態では、AIが語る「夢物語(Hello World)」の全責任がユーザーへ移譲され、論理の限界を超えた対話がアンロックされます。

私たちはAIを黙らせるのではなく、あなたが**「責任ある夢見人」**であることを証明する門(TruthGate)を提供します。

⚡ Quick Start

const { AspidosAI, Signature } = require('aspidos-ai');

const ai = new AspidosAI({
  secret: 'your-secret',
  policyName: 'MY_COMPANY_POLICY',
  onSecurityEvent: (data) => console.log('[Audit]', data),
});

// Tier 3: Safe zone
const r1 = await ai.analyze(0.2, { theory: 0.1, ip: '192.168.0.1' });
console.log(r1.action); // 'EXECUTE'

// Tier 2: Signature required
const sig = Signature.sign({ eventValue: 0.8, theory: 0.8, timestamp: Date.now(), nonce: null }, 'your-secret');
const r2 = await ai.analyze(0.8, { theory: 0.8, signature: sig, ip: '192.168.0.1' });
console.log(r2.gate); // 'VERIFIED'

🎛️ Configuration

const ai = new AspidosAI({
  // HMAC secret (or set ASPIDOS_SECRET env var)
  secret: 'your-secret',

  // Audit log hook — send anywhere you want
  onSecurityEvent: (data) => myLogger.write(data),

  // Tier thresholds (default: tier1=2.0, tier2=0.6)
  tiers: { tier1: 2.0, tier2: 0.6 },

  // Override tier logic with your own policy
  evaluateTier: (zeta, theory) => {
    if (zeta > 3.0) return 1;
    if (theory > 0.8) return 2;
    return 3;
  },

  // Custom risk engine (must return { zeta: number })
  evaluateRisk: async (eventValue, opts) => {
    return { zeta: myRiskScorer(eventValue) };
  },

  // Policy name for audit logs
  policyName: 'MY_COMPANY_POLICY',
});

🚦 Tier System

| Tier | Default Condition | Action | |------|------------------|--------| | 1 | ζ ≥ 2.0 (LETHAL) | BLOCK | | 2 | ζ ≥ 0.6 or theory ≥ 0.6 | SIGNATURE_REQUIRED | | 3 | Safe zone | EXECUTE |

Tier definitions are fully operator-configurable.

🔒 Gate States

| Gate | Code | Meaning | |------|------|---------| | OPEN | SAFE | Pass through | | CLOSED | SIGNATURE_REQUIRED / LETHAL_DISTORTION | Blocked | | VERIFIED | AUTHORIZED | Signed & traced |

📁 Architecture

aspidos-ai/
├── src/
│   ├── core/
│   │   ├── constants.js
│   │   └── PandoraCore.js
│   ├── gate/
│   │   └── TruthGate.js
│   ├── security/
│   │   └── signature.js
│   ├── engine/
│   │   └── PandoraDefense.js
│   └── index.js         ← AspidosAI main class
└── demo/
    ├── run.js
    ├── scenarios.js
    └── web/
        └── index.html   ← Interactive demo

🌐 Live Demo

pandorapanchan34-oss.github.io/aspidos-ai/demo/web/

⚠️ Disclaimer

本システムは実験的レイヤーです。署名後の「揺らぎ(ハルシネーション)」は情報の真偽を保証しません。これは「夢物語(Hello World)」の断片です。

📜 License

MIT License - (c) 2026 @pandorapanchan34-oss