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

@abumalick/arabic-symbols

v0.1.0

Published

Render Islamic honorific abbreviations as KFGQPC Arabic Symbols glyphs (framework-agnostic + CSS/font).

Downloads

31

Readme

@abumalick/arabic-symbols

Render Islamic honorific abbreviations (عز وجل, ﷺ, رحمه الله, …) as proper single-glyph honorific symbols, using the KFGQPC Arabic Symbols 01 font.

Framework-agnostic core (no DOM) + a ready-made HTML helper + the font and CSS.

Why

Content often writes honorifics as short abbreviations in parentheses — (زج) for عز وجل, (سبح) for سبحانه وتعالى, and so on. This package turns those tokens into the calligraphic honorific glyph, rendered from the KFGQPC symbols font at its native Private-Use-Area codepoints (U+F062U+F076). Because the glyphs live in the PUA, a missing font degrades to a harmless placeholder — never a wrong letter — and no font modification is required.

Install

pnpm add @abumalick/arabic-symbols

Usage

import { symbolsToHtml, tokenizeSymbols, SYMBOLS } from "@abumalick/arabic-symbols";
import "@abumalick/arabic-symbols/style.css"; // registers @font-face + .arabic-symbol

// HTML string helper (does NOT escape surrounding text — feed it trusted HTML):
symbolsToHtml("من فضل الله (زج) العظيم");
// => 'من فضل الله <span class="arabic-symbol"></span> العظيم'

// Restrict to a specific alias set (alias -> symbol key):
symbolsToHtml("الله (زج)", { aliases: { "زج": "azzaWaJalla" } });

// Aliases can be ANY string (e.g. Latin letters for a French/AZERTY workflow),
// and the delimiter is configurable per product via `wrap` (default ["(", ")"]):
symbolsToHtml("Allah [A] great", {
  aliases: { A: "azzaWaJalla", Z: "subhanahuWaTaala" },
  wrap: ["[", "]"], // author content as [A], [Z]
});

// Framework-agnostic tokens (render however you like — Svelte, Vue, RN, …):
tokenizeSymbols("الله (زج)");
// => [{ type: "text", value: "الله " },
//     { type: "symbol", char: "", key: "azzaWaJalla", phrase: "عز وجل", match: "(زج)" }]

API

  • SYMBOLS — the canonical honorific data (readonly array of ArabicSymbol).
  • symbolChar(key) — the PUA character for a honorific key (throws if unknown).
  • symbolByAlias(alias) — resolve an abbreviation to its ArabicSymbol.
  • tokenizeSymbols(text, opts?) — segment text into text/symbol tokens.
  • replaceSymbols(text, render, opts?) — replace matched tokens with a custom string.
  • symbolsToHtml(text, opts?) — replace matched tokens with <span class="arabic-symbol">…</span>.

Options (opts):

  • aliases — an alias -> key map. When provided, only those aliases are matched; otherwise all built-in aliases are used. Aliases can be any string (Arabic tokens like زج, or Latin letters like A for non-Arabic keyboards).
  • wrap — the [open, close] delimiter pair around an alias. Defaults to ["(", ")"] (matches (زج)). Set it per product to change the authoring convention, e.g. ["[", "]"] matches [A]. Both delimiters are literal strings (regex-escaped).

Symbols

| key | codepoint | phrase | default aliases | |---|---|---|---| | azzaWaJalla | U+F062 | عز وجل | زج, عزوجل | | subhanahuWaTaala | U+F063 | سبحانه وتعالى | سبح | | jallaJalaluhu | U+F064 | جل جلاله | جج | | jallaWaAla | U+F065 | جل وعلا | جع | | tabarakaWaTaala | U+F066 | تبارك وتعالى | تب | | sallallahuAlayhiWaSallam | U+F067 | صلى الله عليه وسلم | صلعم | | radiyallahuAnhu / Anha / Anhum / Anhuma / Anhunna | U+F068–F06C | رضي الله عنه … | رضه, رضها, رضهم, رضهما, رضهن | | alayhiSalatuWasSalam | U+F06D | عليه الصلاة والسلام | عصس | | alayhiSalam / alayhimSalam / alayhimaSalam | U+F06E, F070, F071 | عليه/عليهم/عليهما السلام | عس, عهم, عهما | | rahimahullah / rahimahallah / rahimahumaAllah / rahimahumullah / rahimahunnaAllah | U+F072–F076 | رحمه الله … | رح, رحها, رحهما, رحهم, رحهن |

To verify the glyph↔phrase readings yourself: node scripts/glyph-sheet.mjs then open scripts/glyphs.html in a browser.

License

SPDX: MIT AND LicenseRef-KFGQPC-Fonts

  • Package code: MIT — see LICENSE.
  • Bundled font (font/): "KFGQPC Arabic Symbols 01", property of the King Fahd Glorious Qur'an Printing Complex, redistributed unmodified under its own license — see LICENSES/LicenseRef-KFGQPC-Fonts.txt, font/LICENSE, and NOTICE. The KFGQPC terms permit free redistribution as-is but prohibit modifying the font.