The author grew frustrated with the difficulty of finding and using up-to-date libraries for various social media platforms like TikTok and YouTube in Node.js. Incompatibility issues between CommonJS and ES Modules further complicated the process. To address this, they developed a unified library named @heavstaltech/api. This production-ready client simplifies tasks such as social media downloading, media searching, and AI image enhancement. It is a hybrid module supporting both import and require syntaxes without requiring any configuration. The library is written in TypeScript, offering type safety and autocompletion for developers. To avoid detection and bans, it incorporates User-Agent rotation. The library is compact, weighing only 20KB, and offers features like watermark-free TikTok downloads, YouTube audio and video downloads, Instagram and Facebook content downloads, AI photo enhancement via Remini, website screenshots, lyric fetching, and Wattpad searches. Installation is straightforward using npm. The author provides code examples demonstrating how to download TikToks, search and download YouTube audio, and enhance blurry images using the Remini tool. @heavstaltech/api is part of a larger Heavstal ecosystem focused on building robust developer tools. The author encourages users to try the library and report bugs or suggest new features on GitHub.
dev.to
dev.to
Create attached notes ...
