Inspiration
Reading a long web page is still painful: cookie banners, popups, tracking pixels. I wanted a tool that turns any URL into clean, readable text in one call — and into an AI summary when I only want the gist.
What it does
WebReader is a small web app with a REST API behind it. Paste a URL and get:
- clean extracted article text (title, word count, top links)
- an AI summary in crisp bullet points
- a one-click PDF export of the clean text
- a /search endpoint for quick web lookups
The endpoints (/read, /search, /summarize, /pdf) are simple JSON, so the same backend also powers a Telegram bot — the app started life as a Telegram web-reader bot and got hardened into a hosted web app for this hackathon.
How I built it
Python 3 on the standard library HTTP server (no framework), trafilatura + BeautifulSoup for extraction, Cohere's API for bullet summaries with a local fallback if the LLM call fails, ReportLab for the PDF export, everything Dockerized and deployed free on Render.
Challenges I ran into
The first Render deploy crashed because requirements.txt was missing two modules, so I pinned the real dependency list and it went green. The UI initially called /api/* paths while the server exposed /read and friends, so buttons 404'd until the fetch paths matched. The free tier cold-start adds about 50 seconds to the first request — I documented it instead of pretending it isn't there.
What I learned
Hidden dependencies are the number one killer of container deploys, and matching client and server route paths matters more than any clever code.
What's next for WebReader
A send-to-Telegram button, an offline PDF library, and multi-page search aggregation.