Book Ingest Pipeline

•
1
•

Synchronizes validated MDX book content into Supabase databases using Drizzle ORM for e-reader and RAG applications.

This skill automates the ingestion phase of a digital publishing pipeline, transforming validated MDX files into a structured Supabase database schema. It handles the idempotent upserting of books and chapters while maintaining stable section anchors for user bookmarks, ensuring that re-embedding content for AI retrieval doesn't break existing user data. By tracking content hashes, it intelligently updates only modified chapters, making it an essential tool for developers building AI-powered e-readers, commerce flows, or complex documentation platforms.

Key Features

01Automated generation of stable section anchors for consistent e-reader bookmarking and deep linking.
021 GitHub stars
03Seamless integration with Supabase and Drizzle ORM for structured and type-safe data management.
04Idempotent upserting using SHA-256 drift detection to minimize unnecessary database writes.
05Maintains strict separation between display sections and regenerable RAG retrieval units.
06Automatic hand-off to chunking and embedding phases only when content changes are detected.

Use Cases

01Migrating a local collection of MDX-based books into a Supabase-backed e-reader application.
02Synchronizing digital assets between a filesystem-based content pipeline and a production database.
03Updating an existing RAG corpus with new book editions or corrections without losing user highlights.