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-hooks

v0.1.0

Published

Arabic + English video hooks for Reels, TikTok and Shorts: a curated dataset, fill-in templates and a hook scorer. Zero dependencies.

Readme

arabic-hooks

Arabic + English opening lines ("hooks") for Reels, TikTok and YouTube Shorts: a curated dataset, fill-in templates and a transparent hook scorer. Zero dependencies, works in Node and the browser.

هوكس عربية وإنجليزية جاهزة لبداية الريلز والتيك توك والشورتس، مع قوالب تعبّيها بنفسك وأداة بتقيّم الهوك تبعك.

npm install arabic-hooks
# or try it without installing
npx arabic-hooks
npx arabic-hooks score "جرّبت هالشي 30 يوم… والنتيجة صدمتني"

Usage

import { getHooks, randomHook, templates, fillTemplate, scoreHook } from "arabic-hooks";

randomHook({ category: "curiosity" }).ar;
// "الفرق بين مليون مشاهدة و100 مشاهدة… جملة وحدة."

getHooks({ category: "story", dialect: "jo" }); // filter by category and dialect
getHooks({ search: "خوارزمية" });               // Arabic-aware search (ignores tashkeel, أ/إ/ا, ة/ه)

const t = templates.find((t) => t.id === "t-days");
fillTemplate(t, { thing: "الصيام المتقطع", days: 30 });
// "جرّبت الصيام المتقطع لمدة 30 يوم… والنتيجة صدمتني."
fillTemplate(t, { thing: "cold showers", days: 7 }, "en");

scoreHook("مرحبا يا جماعة اليوم رح نحكي عن موضوع");
// { score: 30, words: 8, tips: [{ ar: "ابدأ بالفكرة مباشرة…", en: "Start with the idea…" }, …] }

Endings that ask for one thing / خاتمة الفيديو

import { getCtas, fillTemplate } from "arabic-hooks";

getCtas({ intent: "save" })[0].ar; // "احفظ الفيديو عشان ترجعله وقت ما تحتاجه."
fillTemplate(getCtas({ intent: "comment" })[0], { keyword: "دليل", gift: "الملف" });
// "اكتب «دليل» بالتعليقات وببعتلك الملف."

Intents: save, comment, share, follow, link, dm, try. There are 30 hook templates and 14 call-to-action lines, all in Arabic and English.

Categories / الأنواع

| key | عربي | When to use | | --- | --- | --- | | shock | صدمة | Break a belief the viewer holds | | curiosity | فضول | Open a gap they need closed | | promise | وعد | Promise a concrete result fast | | challenge | تحدّي | Call out the viewer directly | | story | قصة | Start in the middle of a real moment |

Data shape

{ "id": "shock-001", "category": "shock", "dialect": "jo", "ar": "…", "en": "…" }

The raw dataset is also available as import data from "arabic-hooks/data".

How scoreHook works

It is a heuristic, not a prediction. It starts at 40 and checks: length (12 words or fewer), a weak opener (greetings, "in this video"), whether it talks to the viewer, a concrete number, and tension (a question, an ellipsis or a contrast). Every point it takes away comes with a tip in Arabic and English.

Contribute a dialect / ساهم بلهجتك

The first 50 hooks are Jordanian (jo). We want Egyptian, Gulf, Syrian, Maghrebi and Fusha versions. Open a pull request that adds entries to src/hooks-data.js with your dialect code. See CONTRIBUTING.

بدنا هوكس باللهجة المصرية والخليجية والسورية والمغاربية والفصحى. افتح Pull Request وضيف هوكس بلهجتك.

License

MIT © Eng. Moath Alherani