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

bayda-maghreb

v2.1.2

Published

A programming language for North African dialects — transpiles to JavaScript & Python.

Downloads

3,013

Readme

Bayda Maghreb 🌙

A programming language for North African dialects. لغة برمجة بلهجات شمال إفريقيا.

Write code in your own dialect. Transpile to JavaScript & Python. اكتب كود بلهجتك. تحول إلى JavaScript و Python.


Features /

  • 7 Supported Dialects / 7 لهجات مدعومة: Tunisian, Algerian, Libyan, Mauritanian, Kabyle (Latin/Tifinagh), and Shilha. تونسي، جزائري، ليبي، موريتاني، قبائلي (لاتيني/تيفيناغ)، وتشلحيت.
  • Multi-Target Transpiler / مترجم متعدد الأهداف: Transpiles to JavaScript and Python. يحول إلى JavaScript و Python.
  • Smart Lexer / محلل لغوي ذكي: Handles Franco-Arabic digits (e.g., 5ayb, 3lik) as letters, not numbers. يتعامل مع أرقام الفرانكو (مثل 5ayb، 3lik) كحروف، وليس كأرقام.
  • Fully Tested / مختبر بالكامل: 87 unit tests ensuring core stability. أكثر من 87 اختباراً لضمان استقرار النواة.

Supported Dialects / اللهجات المدعومة

| Dialect | Code | Script | | :--- | :--- | :--- | | Tunisian | tn-latn | Franco | | Algerian | dz-latn | Franco | | Libyan | ly-latn | Franco | | Mauritanian | mr-latn | Franco | | Kabyle | kab-latn | Latin | | Kabyle | kab-tifinagh | Tifinagh | | Shilha | shi-latn | Latin |


Install & Usage / التثبيت والاستخدام

Install globally: npm i -g bayda-maghreb

Create a file hello.tn-latn.bayda: ktab("salam") idha (haqq) { ktab("Hello World") }

Run it (Default: JavaScript): bayda hello.tn-latn.bayda

Transpile to Python: bayda hello.tn-latn.bayda --py


Library API / واجهة المكتبة

import { translate, translateDialect, listDialects, getDialectInfo } from "bayda-maghreb";

// 1) ترجمة خالصة (تعمل في Node والمتصفح) — تمرّر خريطة كلمات اللهجة بنفسك
translate('goul("salam")', { keywords: { goul: "print" }, target: "js" }).code;
// => 'console.log("salam");'

// 2) ترجمة عبر تحميل اللهجة من القرص (Node)
translateDialect('idha (s7i7) { goul("a") }', { dialect: "tn-latn", target: "py" }).code;

// 3) سرد اللهجات (مصدر الحقيقة الواحد)
listDialects();          // [{ id, name, script, keywordCount, ... }, ...]
getDialectInfo("tn-latn"); // { id, manifest, keywords, vocabulary }

كل المسار يمرّ عبر translate(): packages/*.json → loader → lexer → normalizer → program.ts → writers. راجع ARCHITECTURE.md للتفاصيل.


Legal & License / قانوني والترخيص

This project is 100% legal and ethical. هذا المشروع قانوني وأخلاقي 100%.

  • No copied content: Built on linguistic observation.
  • No personal data: We do not scrape or store user data.
  • License: AGPL-3.0.

Commercial Use: If you wish to use this project in a closed-source commercial product, you must contact the author for a separate commercial license. This protects the project from exploitation.

الاستخدام التجاري: إذا كنت ترغب في استخدام هذا المشروع في منتج تجاري مغلق المصدر، يجب عليك التواصل مع المؤلف للحصول على ترخيص تجاري منفصل. هذا يحمي المشروع من الاستغلال.


Contributing / المساهمة

We welcome linguistic observations and code improvements. نرحب بالملاحظات اللغوية والتحسينات البرمجية.

  1. Issues: Report bugs or suggest new dialects.
  2. Pull Requests: Submit improvements. Note: All contributions require requiresConsent: true.

Please read docs/SOURCES.md before contributing.


Copyright (c) 2026 ajilisaifeddine-lab. Built for the next generation of North African developers.