Hacker News new | ask | show | jobs
Show HN: Surfgram – A 0-dep Telegram SDK with types generated from official docs (github.com)
1 points by anybodyy 165 days ago
I built surfgram because I was tired of heavy Telegram libraries and inconsistent types

Key technical decisions: — Zero Dependencies: No node-fetch, no axios, just native calls — Source of Truth: Instead of manual typing, I wrote a generator that scrapes the official Telegram Bot API docs — Type Safety: Focus on strict null checks to avoid undefined at runtime.

The repo is here: https://github.com/surfgram/surfgram I’d love to hear your feedback on the code generation logic and the API design