@covai/decant
v1.10.0
Published
Clean, privacy-first web & AI chat content extraction engine and exporter.
Maintainers
Readme
@covai/decant 🍷
Clean, privacy-first web & AI chat content extraction engine and exporter.
@covai/decant provides shared detection, article extraction, and chat parsing across major AI platforms and web articles, converting messy DOMs and content into clean, structured Markdown.
It is the unified entry point for the Decant ecosystem powered by decant-core.
Installation
npm install @covai/decantQuick Start
AI Chat Detection & Parsing
import { detectPlatform, parsers } from "@covai/decant";
// Detect platform from URL or DOM
const platform = detectPlatform(window.location.href);
if (platform && parsers[platform]) {
const parser = new parsers[platform]();
const chatData = await parser.parse();
console.log(chatData.title, chatData.messages);
}Web Article Extraction
import { extractArticle } from "@covai/decant/article";
const article = await extractArticle(document);
console.log(article.title, article.markdown);Supported Platforms
- ChatGPT
- Claude
- Gemini
- Microsoft Copilot
- DeepSeek
- Perplexity
- Mistral / Le Chat
- Meta AI
- NotebookLM
- Google AI Studio
- Qwen
- And arbitrary web articles via smart Readability/Defuddle fallback!
Ecosystem
- Engine / Core:
decant-core - Browser Extension:
decant
License
GNU Affero General Public License v3.0 (AGPL-3.0-only).
