frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Filling PDF forms with AI using client-side tool calling

https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228e6ff7b11eb3f2d945b6175913e87898ec96ca8076&form=w9&lang=en
6•nip•1h ago
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-client operations and also gives you the ability to limit the data you expose to the LLM. For the demo I do feed the content of the document to the LLM, but that connection could be severed as simply as removing the tool that exposes the content data.

The demo is fully open source, available on Github [2] and the demo is the same as the link of this post [3]

What's not open source is SimplePDF itself (loaded as the iframe).

I could talk on and on about this, let me know if you have any questions, anything goes!

[1] https://github.com/jbarrow/commonforms

[2] https://github.com/SimplePDF/simplepdf-embed/tree/main/copil...

[3] https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228...

Comments

nip•1h ago
Just to be clear, this is a technical demo showing what's possible with client-side tool calling + local models: LLM-assisted form filling where no document data has to leave the user's machine.

Use cases range from:

- Filling foreign-language forms

- Navigating a contract before signing: "can I trust ALL the clauses here?"

- Pre-filling repetitive forms from existing data sources (CRM, EHR, etc. via MCP/RAG)

Copilot is designed to be embedded; our customers ship it white-labeled inside their own products.

Bit: An LLM in the browser that only answers yes or no

https://bit.simone.computer
1•syx•42s ago•0 comments

45800 tech employees laid off in March 2026 alone

https://layoffs.fyi/
3•rachid_O•1m ago•0 comments

The Triumph of the Data Raccoons

https://muddy.jprs.me/posts/2026-04-03-the-triumph-of-the-data-raccoons/
1•jprs•1m ago•0 comments

Social Media Cheet Sheet

https://www.branding5.com/tools/social-media-cheat-sheet
1•mnewme•1m ago•0 comments

Show HN: Apollo Data Auditor – GDPR/CCPA scanner, breach SIM, remediation

https://apollo.aiia-tech.com/en/
1•ggabriel2025•2m ago•0 comments

CodeThis – paste bin with Markdown, password, MCP, and code-to-image

https://codethis.dev/
1•Patrity•3m ago•0 comments

The Edge of Galaxy

https://planetos.substack.com/p/the-edge-of-galaxy-past-all-frontiers
1•deze333•4m ago•0 comments

Show HN: My retired dad and I made a daily, somewhat difficult, quiz

https://kviss.eu/
1•steinvakt2•8m ago•0 comments

AI Agents Know About Supabase. They Don't Always Use It Right

https://supabase.com/blog/supabase-agent-skills
1•andrewstetsenko•9m ago•0 comments

Show HN: Harness – Manage parallel Claude Code agents across Git worktrees

https://github.com/frenchie4111/harness
2•frenchie4111•10m ago•0 comments

Mesa: a versioned filesystem for agents

https://www.mesa.dev/blog/introducing-mesa-filesystem-for-agents
2•Anon84•10m ago•0 comments

Cordouan Lighthouse

https://en.wikipedia.org/wiki/Cordouan_Lighthouse
2•Petiver•12m ago•0 comments

Facebook Has a Health Scam Problem

https://www.nytimes.com/2026/04/27/well/facebook-supplements-health.html
2•cainxinth•12m ago•0 comments

Nvidia exec: 'The cost of compute is far beyond the costs of my employees'

https://fortune.com/2026/04/28/nvidia-executive-cost-of-ai-is-greater-than-cost-of-employees/
4•david-gpu•13m ago•1 comments

Premature Coherence

https://creader.io/publish/timtimtim/article/ten-years-toward-a-better-way-to-create
1•timothyshen123•16m ago•0 comments

Show HN: fixiproject.org – minimalist web tools

https://fixiproject.org
2•recursivedoubts•16m ago•0 comments

For the first time, more Americans are moving to Europe than vice-versa

https://xcancel.com/benbawan/status/2049303326999609846
3•vrganj•17m ago•0 comments

The Bloomberg Terminal Is Getting an AI Makeover

https://www.wired.com/story/the-bloomberg-terminal-is-getting-an-ai-makeover-like-it-or-not/
1•andsoitis•18m ago•0 comments

Photoshopping the Package

https://seths.blog/2026/04/photoshopping-the-package/
1•speckx•19m ago•1 comments

Cybersecurity in the Intelligence Age

https://openai.com/index/cybersecurity-in-the-intelligence-age/
1•Brajeshwar•20m ago•0 comments

Show HN: Chuchu – an Android SSH Client powered by libghostty

https://github.com/jossephus/chuchu
2•jossephus01•20m ago•0 comments

Open Slopware

https://codeberg.org/small-hack/open-slopware
1•jllyhill•20m ago•1 comments

War Thunder is stealing your files [video]

https://www.youtube.com/watch?v=pO-g-1MH7oM
1•LorenDB•21m ago•0 comments

Gea-Embedded – JSX and CSS in ESP32

https://github.com/dashersw/gea-embedded
1•arbayi•22m ago•0 comments

Wintering

https://www.joanwestenberg.com/on-wintering/
1•rossdavidh•22m ago•0 comments

We Run iSCSI over the Internet

https://scsipub.com/blog/how-we-run-iscsi-over-the-internet
2•qdotme•22m ago•3 comments

Just Stop Communicating

https://nataliercargill.substack.com/p/just-stop-communicating
1•jger15•22m ago•0 comments

Show HN: Transly – Cache-driven incremental translation

https://github.com/translate-tools/transly
1•vitonsky•22m ago•0 comments

Show HN: AI tools index with free LLM latency and cost calculators

https://www.openaitoolshub.org
1•jimliu_oath•23m ago•0 comments

Roboticist-Turned-Teacher Built a Life-Size Replica of Eniac

https://spectrum.ieee.org/roboticist-turned-teacher-eniac-replica
1•oldnetguy•23m ago•0 comments