npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

arabic-social

v0.1.0

Published

Caption helpers for Arabic creators: Arabic hashtags, per-platform limits (Instagram, TikTok, YouTube, X weighted count, LinkedIn…), "…more" previews, hidden-character cleanup and Instagram line breaks. Zero dependencies.

Readme

arabic-social

Caption helpers for Arabic creators and the apps they use. Turn phrases into Arabic hashtags that actually work, check a caption against each platform's limits (including X's weighted count), see what shows before "…more", strip hidden characters from copy-paste, and keep blank lines in Instagram captions. Zero dependencies.

أدوات للكابشن: هاشتاقات عربية صحيحة، فحص طول النص لكل منصة، شو بيبيّن قبل «المزيد»، تنظيف الرموز المخفية، والحفاظ على الأسطر الفاضية بانستقرام.

npm install arabic-social

Usage

import { hashtag, hashtags, checkPost, cleanCaption, keepLineBreaks } from "arabic-social";

hashtag("سيارات كهربائية!");     // "#سيارات_كهربائية"
hashtag("صُنّاع المحتوى ٢٠٢٦"); // "#صناع_المحتوى_2026"

hashtags(["دبي", "#دبى", "سيارة كهربائية", "سياره كهربائيه", "BYD", "byd", "ريلز", "محتوى", "تقنية"]);
// ["#دبي", "#سيارة_كهربائية", "#BYD", "#ريلز", "#محتوى"]  (deduplicated, capped at Instagram's 5)

checkPost(caption, "instagram");
// { length: 812, limit: 2200, remaining: 1388, ok: true, hashtags: [...], preview: "first line people see", problems: [] }

checkPost(tweet, "x"); // uses X's weighted count: URLs = 23, emoji = 2, Arabic = 1

keepLineBreaks("السطر الأول\n\nالسطر الثاني"); // blank lines survive on Instagram
cleanCaption(textFromChatGPT);                 // removes zero-width and direction characters

Limits

| Platform | Caption | Other | | --- | --- | --- | | Instagram | 2,200 | 5 hashtags, 20 mentions, bio 150 | | TikTok | 2,200 | | | YouTube / Shorts | 5,000 | title 100 | | X | 280 (weighted) | | | Threads | 500 | | | LinkedIn | 3,000 | headline 220 | | Facebook | 63,206 | | | Snapchat Spotlight | 500 | | | Pinterest | 800 | title 100 |

Checked in 2026 against platform documentation and scheduling tools. Platforms change these numbers; if one is out of date, open an issue or a pull request against PLATFORMS. The "…more" preview lengths are approximate because apps vary by screen size.

License

MIT © Eng. Moath Alherani