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

@aura-labs.ai/sdk-common

v0.1.0

Published

Shared utilities for AURA SDKs — storage adapters for Ed25519 key persistence

Downloads

47

Readme

@aura-labs.ai/sdk-common

Shared utilities for AURA SDKs — storage adapters for Ed25519 key persistence.

Storage Adapters

All adapters implement the same async interface:

interface StorageAdapter {
  get(key: string): Promise<string | null>;
  set(key: string, value: string): Promise<void>;
  remove(key: string): Promise<void>;
}

MemoryStorage

In-memory Map. Keys lost on process exit. Use for testing and short-lived processes.

import { MemoryStorage } from '@aura-labs.ai/sdk-common';
const storage = new MemoryStorage();

FileStorage

Persists to a JSON file on disk. Default path: ~/.aura/keys.json (configurable via AURA_KEY_PATH env var). File permissions: 0600 (owner read/write only). Directory permissions: 0700.

import { FileStorage } from '@aura-labs.ai/sdk-common';
const storage = new FileStorage();           // ~/.aura/keys.json
const storage = new FileStorage('/custom/path/keys.json');

KeychainStorage

macOS Keychain via the security CLI. Keys are encrypted at rest by the OS — hardware-backed on Apple Silicon via the Secure Enclave. Zero native Node.js dependencies.

macOS only — constructor throws on other platforms.

import { KeychainStorage } from '@aura-labs.ai/sdk-common';
const storage = new KeychainStorage();                                    // service: com.aura-labs.agent
const storage = new KeychainStorage({ serviceName: 'com.myapp.agent' }); // custom service

createStorage() Factory

Auto-detects the best adapter for the current platform:

  • macOSKeychainStorage (hardware-backed encryption)
  • Linux / WindowsFileStorage (0600 permissions)
import { createStorage } from '@aura-labs.ai/sdk-common';

const storage = createStorage();                    // Auto-detect
const storage = createStorage({ type: 'memory' });  // Force MemoryStorage
const storage = createStorage({ type: 'file' });    // Force FileStorage
const storage = createStorage({ type: 'keychain' }); // Force KeychainStorage (macOS only)

Usage with Scout SDK

import { createScout, createStorage } from '@aura-labs.ai/scout';

const scout = createScout({
  storage: createStorage(),  // Keychain on macOS, File elsewhere
});
await scout.ready();

Usage with Beacon SDK

import { createBeacon, createStorage, KeyManager } from '@aura-labs.ai/beacon';

const keyManager = new KeyManager({ storage: createStorage() });
const beacon = createBeacon({ ... });
beacon.setKeyManager(keyManager, agentId);

Security

  • KeychainStorage: Keys encrypted at rest by macOS. Login keychain unlocks with system login — no passphrase prompt for generic passwords created by the same user.
  • FileStorage: Keys stored as plaintext JSON with 0600 permissions (owner-only). Same model as SSH keys.
  • MemoryStorage: Keys exist only in process memory. Lost on exit.
  • No shell injection: KeychainStorage uses execFile (array args), never exec (shell string).

License

Business Source License 1.1 — See LICENSE for details.