Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Oembed ANY URL (Slack-Like URL Previews). Fully Open Sourced. Golang (proc.link)
6 points by xytop on Sept 12, 2015 | hide | past | favorite | 2 comments



That's analog of http://embed.ly/docs/api/embed API.

I've done it in few days. Server can handle 1000s of requests. Does smart things like de-shortening urls, and fetching image sizes based on first 1024 bytes.

It doesn't need to download full URL content in order to get oembed info. For HTML pages it fetches just first 50KB of data, for binary streams - just 4KB (although 1KB should be enough too for most of data).

Also, guys, poll! Guess what hardware is powering the server? :) You'll be surprised. I'll answer in few hours in the thread!


Hehe, seems no one interested.. It's C1 server from http://scaleway.com, kind of Raspberry Pi ;)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: