惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Show HN

GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap
GitHub - derekmpeterson/paige: A spoiler-free AI book cha...
dualarte · 2026-06-29 · via Show HN

Chat about your books without spoilers.

Paige screenshot

Paige is a web app that lets you discuss any book with AI while respecting exactly how far you've read. Upload an EPUB, set your progress by chapter, and chat freely — Paige will never reveal what happens next.

Features

  • EPUB upload & parsing — drag and drop your book to get started
  • Chapter-level progress tracking — tell Paige how far you've read
  • Spoiler-free AI chat — powered by any model on OpenRouter (or a local server), constrained to only discuss what you've already read
  • Token usage & cost tracking — see per-message and conversation-level token counts and costs
  • Responsive mobile UI — slide-in sidebar and full mobile support

How It Works

When you set your progress, Paige sends the full text of every chapter you've read directly into the LLM's context window. There's no RAG, no embeddings, no chunking — the model sees the complete, unbroken text of everything up to your current chapter.

This is an opinionated choice. The upside is that conversations are richer and more grounded, since the model has full access to every detail, callback, and nuance in what you've read. The tradeoff is that longer books use more tokens (and cost more), and very large books may approach context limits. On the cost side, because the book text is a stable prefix at the start of every request, it's compatible with prompt caching — so after the first message in a conversation, subsequent messages benefit from discounted cached token pricing. The per-message cost shown in the app is the actual amount OpenRouter charges, so that caching discount is reflected automatically (hover a reply to see its cost and how many input tokens were cached).

Getting Started

Prerequisites

  • Node.js 20.9+
  • An OpenRouter API key (or a local OpenAI-compatible server — see Using a local model)

Setup

git clone https://github.com/derekmpeterson/paige.git
cd paige
npm install

Create a .env.local file in the project root:

OPENROUTER_API_KEY=your-openrouter-api-key

Optionally configure the model (default shown):

MODEL_ID is any OpenRouter model ID (Grok is just the default). Pricing for cost tracking is fetched automatically from the OpenRouter API.

Start the dev server:

Open http://localhost:3000 in your browser.

Using a local model

Instead of OpenRouter, you can point Paige at any local OpenAI-compatible server (for example llama.cpp's llama-server). Set LLAMA_SERVER_URL and Paige will use it instead of OpenRouter — no API key required:

LLAMA_SERVER_URL=http://localhost:8080/v1
LLAMA_MODEL_ID=your-local-model-id

When LLAMA_SERVER_URL is set it takes precedence over the OpenRouter configuration. Cost tracking is OpenRouter-specific, so it is disabled for local models.

Limitations & design notes

Paige is built as a single-user, self-hosted app, and a few choices follow from that:

  • In-memory book storage. Parsed books live in server memory, not a database, so they are lost when the server restarts. Re-upload to continue.
  • No authentication or rate limiting. Run it locally or behind your own access controls; it is not hardened for exposure as a public multi-user service.
  • Approximate token counts. Counting uses the GPT-4o tokenizer (js-tiktoken) as a model-agnostic estimate, so numbers may differ slightly from a given model's exact tokenizer.

Tech Stack

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for local setup, the checks to run before opening a pull request, and project conventions. By participating you agree to abide by the Code of Conduct.

Testing

npm test          # run the unit test suite once
npm run test:watch # watch mode

License

MIT