Skip to content

mvrxapp/aecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AECS logo

AECS

CI npm License: MIT Spec: CC0

AECS-1 (AI Email Consumption Specification) is an open standard for deterministically normalizing raw RFC 5322/MIME email into AI-ready JSON — the schema, the threading algorithm, and the six content levels. It is published under CC0 1.0 (public domain): implement it in any language, without asking permission.

@mvrx/aecs is the framework-agnostic, zero-infrastructure-dependency MIT reference implementation of that spec: parsing, content cleaning, threading, and message normalization, with no Cloudflare or storage assumptions baked in.

Install

npm install @mvrx/aecs

Usage

import { parse } from "@mvrx/aecs";

const email = await parse(rawRfc5322Message);

console.log(email.messageId);       // normalized Message-ID
console.log(email.threadId);        // deterministic thread identifier
console.log(email.content.clean);   // quote-stripped, signature-stripped body
console.log(email.content.forAI);   // wrapped, AI-ready representation

parse() accepts a raw message as a string, ArrayBuffer, Uint8Array, or a ReadableStream<Uint8Array>.

License

MIT. See LICENSE.

About

AECS-1: an open standard (CC0) for normalizing raw RFC 5322/MIME email into AI-ready NormalizedEmail JSON. @mvrx/aecs is the MIT reference implementation.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors