Skip to content
allmd

AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.

NPM Package

Programmatic API for Node.js with full TypeScript support.

Basic Usage

import { convertWeb, convertPdf, convertYoutube } from "allmd";

const result = await convertWeb("https://example.com");
console.log(result.markdown);

Available Converters

FunctionInput
convertWebURL
convertYoutubeYouTube URL
convertPdfPDF file path
convertGdocGoogle Docs URL
convertVideoVideo/audio file path
convertImageImage file path
convertDocxWord document path
convertEpubEPUB file path
convertCsvCSV/TSV file path
convertPptxPowerPoint file path
convertTweetTweet URL
convertRssRSS/Atom feed URL

ConversionResult

Every converter returns a ConversionResult:

interface ConversionResult {
  markdown: string;
  title?: string;
  metadata?: Record<string, unknown>;
}

Options

Pass options as the second argument:

const result = await convertVideo("meeting.mp4", {
  frontmatter: true,
  verbose: false,
  diarize: true,
  speakers: ["Alice", "Bob"],
});