@tn8r/core
v0.2.0
Published
Core library for [tn8r](https://github.com/tn8r/tn8r) — disposable identities for AI agents.
Readme
@tn8r/core
Core library for tn8r — disposable identities for AI agents.
Provides the Terminator class, provider adapters, identity management, policy engine, kill switch, and activity logging.
Install
npm install @tn8r/coreOr use the umbrella package tn8r which includes this plus a CLI.
Usage
import { Terminator } from "@tn8r/core";
const t = new Terminator();
const identity = await t.createIdentity({
resources: ["email", "phone", "card"],
ttlMinutes: 60,
spendLimitCents: 5000,
});
console.log(identity.email); // [email protected]
console.log(identity.phone); // +14155551234
const { emails, sms } = await t.readMessages(identity.id);
const code = await t.extractCode(identity.id);
const card = await t.getCardDetails(identity.id);
await t.killIdentity(identity.id);BYOK
No keys configured? Runs with mock providers by default. See the main repo for provider setup.
License
MIT
