Write JavaScript using the Igbo Language
Ime koodu n'asụsụ Igbo | Code in the Igbo Language
Igboscript is a lightweight programming language that allows developers to write JavaScript using Igbo syntax and keywords. It compiles cleanly to JavaScript, enabling you to build modern applications while celebrating the Igbo language and culture.
The goal of Igboscript is to explore how programming can work using African languages, while remaining fully compatible with the JavaScript ecosystem.
Install globally using npm:
npm install -g igboscriptOr install locally inside a project:
npm install igboscriptIgboscript is a JavaScript superset.
If you already know JavaScript, you already know most of Igboscript.
It simply maps Igbo keywords to JavaScript equivalents, allowing you to write code in a more expressive and culturally familiar way.
JavaScript:
console.log("Hello World");Igboscript:
pụta("Ndeewo Ụwa!");Both produce the same output.
Create your first Igboscript file:
hello.is
pụta("Ndeewo Ụwa!");
ka ọnụọgụ = 10;
ka aha = "Chioma";
ọ bụrụ (ọnụọgụ > 5) {
pụta(aha + ", ọnụọgụ gị dị elu!");
}Run it from your terminal:
igboscript hello.isOutput:
Ndeewo Ụwa!
Chioma, ọnụọgụ gị dị elu!
You can integrate Igboscript directly into existing Node.js applications.
npm install igboscriptAdd this to the top of your entry file:
require("igboscript/src/loader");require("./routes/user.is");Node.js will automatically compile and execute the Igboscript file.
Igboscript works with popular JavaScript frameworks.
nwetakwa ngwaExpress na "express";
ka ngwa = ngwaExpress();
ngwa.ụzọGet("/", (arịrịọ, nzipụta) => {
nzipụta.json({ ozi: "Ndeewo n'ụlọ ọrụ Igbo!" });
});
ngwa.ṅaa(3000, () => {
pụta("Ngwa na-arụ ọrụ na port 3000");
});Component.is
nwetakwa React na "react";
nwetakwa { jiSteeti } na "react";
ọrụ NwaAkwụkwọ({ iberibe }) {
ka [aha, setAha] = jiSteeti("");
laghachi (
<div>
<input
onChange={(e) => setAha(e.target.value)}
placeholder="Tinye aha gị"
value={aha}
/>
<p>Ndeewo, {aha}!</p>
</div>
);
}# Run a single file
igboscript app.is
# Watch for changes
igboscript src/ --watch
# Debug mode (shows translated JavaScript)
igboscript app.is --debug
# Build project to dist folder
igboscript src/ --build --out-dir=dist/
# Show help
igboscript --helpIgboscript translates Igbo syntax into JavaScript before execution.
Workflow:
Igboscript (.is) → Translator → JavaScript → Executed by Node.js
Example:
Igboscript:
pụta("Ndeewo Ụwa")Generated JavaScript:
console.log("Ndeewo Ụwa")Nnoo! (Welcome!) Contributions are welcome.
- Fork the repository
- Create a branch
<!-- -->
git checkout -b new-feature
- Commit changes
<!-- -->
git commit -m "Add new feature"
- Push
<!-- -->
git push origin new-feature
- Open a Pull Request
Okolo Kamdilichukwu Samuel (Kamdi)
GitHub: https://github.com/boi-network12\ Portfolio: https://kamdidev.vercel.app
MIT License
- Core Igbo keyword translations
- CLI build and watch mode
- Express.js support
- React support
- VS Code syntax highlighting
- Online playground
- More framework integrations
Code in your native language.