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

betascript

v2.0.0

Published

Bahasa pemrograman berbasis Betawi - Ngoding rasa Betawi, kagak ribet!

Readme

BetaScript 1.1.0

Bahasa pemrograman berbasis Betawi. Ngoding rasa Betawi, kagak ribet.

BetaScript adalah bahasa pemrograman yang ditulis dengan kosakata Betawi dan dikompilasi ke JavaScript. File BetaScript memakai ekstensi .beta, bisa dijalankan di Node.js, Termux, Acode, VS Code, dan Web IDE.

Quick Start

npm install -g betascript
betascript --version

Jalankan file .beta:

betascript run hello.beta

Compile ke JavaScript:

betascript compile hello.beta

Hello World

teriak("Woy, ape kabar bang!");

ane nama = "Bang Azmi";
tetep versi = "1.1.0";

teriak(`Halo ${nama}, ini BetaScript ${versi}`);

Syntax Utama

| BetaScript | JavaScript | Arti | |---|---|---| | ane | let | variabel | | tetep | const | konstanta | | betoel | true | benar | | kaga | false | salah | | kosong | null | nilai kosong | | entah | undefined | belum diketahui | | kalo | if | percabangan | | kagaknye | else if | percabangan lanjutan | | udah_gituh | else | selain itu | | selagi | while | while loop | | itung | for | for loop | | saban | for...of | loop tiap item | | dah | break | berhenti | | lanjut | continue | lanjut loop | | bikin | function | fungsi | | kasoh | return / export | return/export | | nanti | async | async function | | tungguin | await | await | | cetak | class | class | | turun | extends | inheritance | | mula | constructor | constructor | | gua | this | instance saat ini | | punye | . | akses member | | babang | super | parent class | | anyar | new | object baru | | cobi | try | try | | tangkep | catch | catch | | akhirnye | finally | finally | | lempar | throw | throw |

BetaScript 1.1.0 tetap menerima beberapa alias lama supaya tutorial lama tidak langsung rusak, misalnya cetakan, tetap, warisan, ini, baru, balikin, asinkron, dan tunggu. Gaya yang disarankan tetap keyword Betawi final di tabel atas.

Contoh Fungsi

bikin fibonacci(n: angka): angka {
  kalo (n <= 1) {
    kasoh n;
  }
  kasoh fibonacci(n - 1) + fibonacci(n - 2);
}

ane hasil = fibonacci(10);
teriak("Fibonacci(10) =", hasil);

Async/Await

nanti bikin ambil_data() {
  teriak("Sabar ya, ambil data...");
  tungguin tidur(500);
  kasoh "data selesai";
}

nanti bikin main() {
  ane hasil = tungguin ambil_data();
  teriak(hasil);
}

main();

OOP

cetak Binatang {
  mula(ente nama) {
    gua punye nama = nama;
  }

  bikin suara() {
    teriak("Suara binatang");
  }
}

cetak Kucing turun Binatang {
  mula(ente nama) {
    babang(nama);
  }

  bikin suara() {
    teriak(gua punye nama + ": Miaw miaw!");
  }
}

ane kucing = anyar Kucing("Kitty");
kucing punye suara();

Fitur Modern

mode ketat;

ane orang = { nama: "Ali", umur: 20 };
ane {nama, umur} = orang;

ane daftar = deret[1, 2, 3];

bikin gabung(...isi) {
  kasoh isi;
}

ane hasil = gabung(0, ...daftar);
ane judul = `Halo ${nama}`;
ane pola = /Ali/i;
ane aman = orang?.alamat ?? "Jakarta";

teriak(judul, teks punye cocok(judul, pola)[0], aman, hasil punye sebrapa);

Fitur yang didukung:

  • Destructuring object dan array
  • Rest/spread operator
  • Optional chaining ?.
  • Nullish coalescing ??
  • Template literal
  • Regex literal
  • Type annotation opsional
  • Generic annotation yang diabaikan saat emit JavaScript
  • mode ketat sebagai directive best-practice

Standard Library

| Namespace / Fungsi | Isi | |---|---| | teriak | print ke console | | bisik | tulis output tanpa newline | | dengerin | input async | | tidur(ms) | sleep promise | | semua([...]) | Promise.all | | balap([...]) | Promise.race | | peta | Map | | himpunan | Set | | peta_lemah | WeakMap | | himpunan_lemah | WeakSet | | http | ambil, kirim | | file | baca, tulis, ada | | matematika | pi, akar, acak, bulat, lantai, atap | | teks | gede, kecil, pisah, ganti, cocok | | deret | petakan, saring, kurangi, urutin, gabung | | waktu | sekarang, format, tahun, bulan, tanggal | | json | parse, stringify |

Contoh:

ane nama = "azmi";
teriak(teks punye gede(nama));

ane angka = deret[1, 2, 3];
teriak(angka punye sebrapa);

ane tahunIni = waktu punye tahun(waktu punye sekarang());
teriak(tahunIni);

CLI 1.1.0

betascript run file.beta
betascript run file.beta --watch
betascript run file.beta --debug
betascript compile file.beta
betascript compile file.beta --debug
betascript repl
betascript format file.beta
betascript lint file.beta
betascript install nama-package

Package manager BetaScript memakai prefix beta-. Contoh:

betascript install http

akan menjalankan:

npm install beta-http

Editor dan Mobile

Editor integration dipisah ke repo sendiri supaya core BetaScript tidak berantakan.

| Platform | Repo | |---|---| | Acode Android | https://github.com/Ryekagosaki/Betascript-Acode | | VS Code | https://github.com/Ryekagosaki/Betascript-VSCode | | Web IDE | folder web-ide/ di repo core |

Plugin Source URL Acode:

https://raw.githubusercontent.com/Ryekagosaki/Betascript-Acode/main/acode-plugin-source.json

Ciri Khas BetaScript

BetaScript bukan cuma JavaScript yang diganti nama keyword. BetaScript punya rasa sendiri:

  • Kosakata Betawi sebagai identitas bahasa.
  • punye sebagai operator member access yang terasa alami.
  • gua, babang, anyar, mula untuk OOP dengan gaya percakapan Betawi.
  • Runtime helper seperti teriak, dengerin, sebrapa, omongan, itungan, dan tidur.
  • Ekosistem package komunitas dengan prefix beta-*.
  • Target ramah Termux/Acode supaya bisa belajar dan ngoding dari Android.

Roadmap 1.x

  • [x] Lexer, parser, semantic analyzer
  • [x] Transpiler ke JavaScript
  • [x] CLI run/compile/repl/watch/debug/format/lint/install
  • [x] OOP, async/await, module import/export
  • [x] Standard library array/string/time/json/http/file/promise
  • [x] Acode plugin repo terpisah
  • [x] VS Code extension repo terpisah
  • [x] Web IDE dasar
  • [x] Dokumentasi lengkap di PANDUAN_BETASCRIPT.md
  • [ ] Submit Acode plugin ke official Acode Store
  • [ ] Tutorial interaktif web bertahap
  • [ ] Mobile learning mini app berbasis WebView/Acode guide
  • [ ] Registry komunitas package beta-*
  • [ ] Source map yang lebih presisi untuk error runtime
  • [ ] Debugger interaktif step-by-step

Dokumentasi Lengkap

Baca panduan lengkap:

PANDUAN_BETASCRIPT.md

Lisensi

MIT License.

Copyright (c) 2026 Azmi Hail