"Agents, machines, humans — we get each other."
ADN (Agent Data Notation) is an AI-native Intermediate Representation (Agent IR) designed for token efficiency, multi-dimensional latent structures, and structural integrity.
npm install @pakakas/markzero
# or using bun
bun add @pakakas/markzeroimport { encode, decode } from "@pakakas/markzero/adn";
const payload = { os: "win32", arch: "x64" };
const encoded = encode(payload);
const decoded = decode(encoded);import { encode, decode, ENC_VALUES, ENC_INTERN_ALL } from "@pakakas/markzero";
// 1. Encoding data to pure ADN format
const payload = { os: "win32", arch: "x64" };
const encoded = encode(payload);
// 2. Decoding payload
const decoded = decode(encoded);
// 3. Smart Token Interning Modes
const poolValuesOnly = encode(payload, ENC_VALUES);
const poolEverything = encode(payload, ENC_INTERN_ALL);encode(input: any, encodingMode?: number): string- Encodes any JavaScript object/array to a pure ADN string.decode(payload: string): any- Decodes a pure ADN string back into its original structures.ENC_VALUES- Encoding mode where only data values are interned if mathematically profitable.ENC_INTERN_ALL- Encoding mode where both keys and values are interned if mathematically profitable.