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

@foxlin_industries/aegir-security

v0.1.0-Beta.1

Published

Aegir Security Phase 1 TypeScript client for identity graphing, exposure analysis, and reversible security actions.

Downloads

131

Readme

Aegir Security NPM Package

@foxlin_industries/aegir-security is the Phase 1 TypeScript client for Aegir Security.

It currently provides a typed client for:

  • identity scanning
  • identity graph retrieval
  • deterministic graph JSON retrieval
  • exposure summary retrieval
  • reversible action execution
  • action reversal
  • action history lookup

Install

npm install @foxlin_industries/aegir-security

Example

import {
  AegirSecurityClient,
  type PerformIdentityActionRequest
} from "@foxlin_industries/aegir-security";

const client = new AegirSecurityClient({
  baseUrl: "https://systems.foxlinindustries.cloud/apis",
  configKey: process.env.AEGIR_CONFIG_KEY,
  developerKey: process.env.AEGIR_DEVELOPER_KEY
});

const scan = await client.scanIdentity("developer:dev_123");
const exposure = await client.getExposureSummary("developer:dev_123");

const actionRequest: PerformIdentityActionRequest = {
  subjectId: "developer:dev_123",
  actionType: "LockIdentity",
  reason: "Manual containment review."
};

const action = await client.performAction(actionRequest);
const reversed = await client.reverseAction(action.actionId, "Validation complete.");
const history = await client.getActionHistory("developer:dev_123");

Current Beta-1 Surface

Primary package-facing class:

  • AegirSecurityClient

Core methods:

  • scanIdentity(subjectId)
  • getIdentityGraph(subjectId)
  • getIdentityGraphJson(subjectId)
  • getExposureSummary(subjectId)
  • performAction(request)
  • reverseAction(actionId, reason?)
  • getActionHistory(subjectId)

Error model:

  • unsuccessful responses throw AegirSecurityError
  • AegirSecurityError.status contains the HTTP status
  • AegirSecurityError.code contains the canonical Aegir error code
  • AegirSecurityError.correlationId contains the response correlation id when present
  • AegirSecurityError.body contains the parsed JSON body when possible

Diagnostics Hooks

AegirSecurityClient accepts diagnosticsHooks with:

  • log(entry)
  • metric(event)
  • trace(event)

Safe Envelopes

The NPM package includes the Beta-1 portable safe-envelope helpers:

  • createSafeEnvelope(payloadType, canonicalPayload, signatureEnvelope?)
  • validateSafeEnvelope(envelope)
  • SafeEnvelopeRecord
  • SafeEnvelopeValidationResult
  • TrustCoreSignatureEnvelope

Trust-Core Signatures

The NPM package includes the Beta-1 hybrid trust-core helper surface:

  • signChallengePayload(payload)
  • verifyChallengePayload(payload, signature)
  • signProofReceiptPayload(payload)
  • verifyProofReceiptPayload(payload, signature)
  • signIdentityTokenPayload(payload)
  • verifyIdentityTokenPayload(payload, signature)

Agent-to-Agent Protocol

The NPM package includes the same minimal Beta-1 A2A runtime shape:

  • InMemoryAgentToAgentProtocol
  • send(...)
  • getInbox(...)
  • receive(...)

The NPM A2A path returns the same Beta-1 validation reasons:

  • accepted
  • message_not_found
  • payload_hash_mismatch
  • signature_missing

Budget Envelopes

The NPM package includes the same Beta-1 in-memory budgeting shape:

  • InMemoryBudgetEnvelopeService
  • BudgetEnvelope
  • BudgetExhaustedError

Local Validation

Current local package validation uses:

  • package tests in src/Foxlin.Aegir.Npm/tests/client.test.mjs
  • the local tarball output from npm run pack:local
  • the runnable sample in samples/NpmConsumer

Typical local validation flow:

npm test
npm run pack:local
npm --prefix ../../samples/NpmConsumer install
npm --prefix ../../samples/NpmConsumer run start

Phase 1 Notes

  • This package targets the Aegir Phase 1 internal security API surface.
  • It can attach X-Aegir-Config-Key and X-Aegir-Developer-Key headers when provided.
  • The local consumer sample executes mocked calls through the packaged client surface.
  • Additional package ecosystems are tracked in Docs/package-ecosystem-matrix.md.
  • The NPM package is an active Phase 1 deliverable.