🇳🇵 Programming from Nepal

NepaliCode

A modern, simple programming language that makes programming and automation easy to understand

Programming should be simple enough that a Nepali beginner can understand what the code is doing.

50+
Examples
10+
Libraries
100%
Open Source
hello.np
# Hello World in NepaliCode
kaam greet(name):
    firta f"Namaste, {name}!"

yedi age >= 18:
    print("Adult")
natra:
    print("Minor")

greet("Nepal")

Why NepaliCode?

Simple, Expressive, Nepali

Simple & Fast

Easy to learn and write with Python-like syntax. Get started in minutes, not hours.

Nepali Keywords

Native Nepali keywords like yedi (if), kaam (def), firta (return).

Full Unicode

Complete Unicode support for Nepali text, identifiers, and mixed scripts.

Professional

Production-ready with bytecode VM, module system, and comprehensive standard library.

Community

Open source with MIT license. Join our growing community of Nepali developers.

Developer Tools

VS Code extension, CLI, REPL, and comprehensive development tools included.

Simple Syntax

Python-like with Nepali identity

Variables
name = "Diwas"
age = 21
is_student = sacho
Conditions
yedi age >= 18:
    print("Adult")
natra:
    print("Minor")
Loops
ko_lagi item ma items:
    print(item)
Functions
kaam add(a, b):
    firta a + b
Classes
kakshya Person:
    kaam __init__(self, name):
        self.name = name
Modules
lyau ganit
print(ganit.jod(5, 3))

50+ Examples

From basics to advanced topics

01

Hello World

Your first NepaliCode program

02

Variables & Types

Understanding data types

08

Conditions

If/elif/else statements

16

Classes

Object-oriented programming

26

Modules

Import system

31

Math Library

Mathematical operations

36

JSON Library

Data manipulation

50

Complete Summary

Full language overview

Get Started

Install NepaliCode in minutes

Using Python

git clone https://github.com/NepaliSource/NepaliLang.git
cd NepaliLang
python main.py examples/01_hello_world.np

Standalone Executable

# Download nepali.exe from releases
nepali.exe examples/01_hello_world.np

VS Code Extension

# Install from VS Code Marketplace
# Search "NepaliCode" and install

Documentation

Everything you need to know