Filling PDF forms with AI using client-side tool calling

Hey HN!I built SimplePDF Copilot: an AI assistant that can interact with the PDF editor. It fills fields, answers questions, focuses on a specific field, adds fields, deletes pages, and so on.It's built on top of SimplePDF that I started 7 years ago, pioneering privacy-respecting client-side pdf editing, now used monthly by 200k+ people.As for the privacy model: the PDF itself never leaves the browser. Parsing, rendering, and field detection all run client-side.The text the model needs (and your messages) goes to whatever LLM you point at. By default that's our demo proxy (DeepSeek V4 Flash, rate-capped), but you can BYOK and point it at any cloud provider, or go fully local (I've been testing with LM Studio).Unlike the existing "Chat with PDF" tools that only retrieve the text/OCR layer, Copilot can act on the PDF: filling fields, adding fields (detected client-side using CommonForms by Joe Barrow [1], jbarrow on HN with some post-processing heuristics I added on top), focusing on fields, deleting pages, and so on.I built this because SimplePDF is mostly used by healthcare customers where document privacy is paramount, and I wanted an AI experience that didn't require shipping PII to a third party. Stack is pretty standard:- Tanstack Start- AI SDK from Vercel- Tailwind (I personally prefer CSS modules, I'm old-school but the goal since I open source it, I figured that Tailwind would be a better fit)The more interesting part is the client-side tool calling: events are passed back and forth via iframe postMessage.If you're not familiar with "tool calling" and "client-side tool calling", a quick primer:Tool calling is what LLMs use to take actions. When Claude runs grep or ls, or hits an MCP server, those are tool calls.Client-side tool calling means the intent to call a tool comes from the LLM, but the execution happens in the browser.That matters for: speed, you can't go faster than client-to-clie

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

Privacy-first AI copilot for PDF form filling that keeps sensitive data client-side, targeting healthcare and regulated industries.

The pain

Organizations handling sensitive documents (healthcare, legal, finance) need AI assistance with form filling but cannot send PII to third-party LLM providers due to compliance requirements (HIPAA, GDPR, etc.). Existing 'Chat with PDF' tools require uploading documents to cloud servers.

The gap

No existing solution combines (1) client-side PDF manipulation with (2) AI-powered form filling with (3) flexible LLM provider choice (BYOK, local, or proxy). Current tools force a choice between privacy and AI capability.

Build angle

Leverage 7-year-old SimplePDF foundation (200k+ monthly users, proven product-market fit in healthcare) to add AI layer without compromising the privacy moat that attracted those users. Position as 'enterprise-grade AI assistant' rather than consumer productivity tool.

Strengths

  • Existing user base (200k+ monthly) with proven trust in privacy model
  • Technical differentiation: client-side tool calling via iframe postMessage is elegant and defensible
  • Regulatory tailwind: HIPAA, GDPR, AI Act creating compliance demand
  • Flexible LLM architecture (BYOK, local, proxy) future-proofs against model changes
  • Healthcare vertical already warm to SimplePDF; natural upsell
  • Open-source potential increases adoption and credibility

Risks

  • Market size unclear: how many of 200k SimplePDF users need AI? Conversion risk is real.
  • LLM quality dependency: form-filling accuracy depends on model capability; DeepSeek V4 Flash may not be reliable enough for critical forms
  • Competitive response: Anthropic, OpenAI, and specialized form-filling startups could add privacy modes quickly
  • Sales complexity: enterprise deals require compliance certifications, SOC 2, BAAs, high friction
  • Field detection heuristics may be brittle across diverse form types; maintenance burden
  • Monetization unclear: freemium model with rate-capped proxy won't sustain; enterprise pricing requires sales infrastructure
  • Integration friction: users must choose/configure LLM provider; reduces ease-of-use vs. all-in-one competitors

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Filling PDF forms with AI using client-side tool calling”.

Open FlyBot