Blog

Sathi โ€” A Nepali-Inspired Programming Language Built with Love ๐Ÿ’ป๐Ÿ‡ณ๐Ÿ‡ต

Featured image for Sathi โ€” A Nepali-Inspired Programming Language Built with Love ๐Ÿ’ป๐Ÿ‡ณ๐Ÿ‡ต

๐Ÿ‡ณ๐Ÿ‡ต Sathi: The Nepali-Inspired Programming Language

"Sathi" (เคธเคพเคฅเฅ€) โ€” Meaning "Friend" in Nepali. Sathi is a human-friendly, open-source programming language designed to make coding feel natural, expressive, and approachable for Nepali speakers. By using Romanized Nepali syntax, Sathi removes the language barrier for beginners while maintaining a fully functional, ASCII-compatible environment.


๐Ÿš€ Quick Links

Resource Link
๐ŸŒ Website nirajang.com.np
๐Ÿ“ฆ PyPI pip install sathi-lang
๐Ÿ’ป VS Code Sathi Language Extension
๐Ÿงฉ GitHub nirajang20/Sathi-Language

๐Ÿ”  Syntax at a Glance

Sathi uses familiar Nepali keywords to handle logic. Here is a look at the "Sathi-way" of coding:

sathi yo ho naam = "Nirajan"
sathi bhana "Namaste, " + naam

sathi bhane naam == "Nirajan"
  sathi bhana "Sathi is ready!"
sathi natra
  sathi bhana "Try again!"
sathi sakyo

sathi dohorau 3 choti
  sathi bhana "Coding is fun!"
sathi sakyo

Core Keywords

English Meaning Sathi Keyword Description
Print bhana Output text to the console
Variable yo ho Declare a new variable
If / Else bhane / natra Conditional logic blocks
Loop dohorau ... choti Iterative execution
End Block sakyo Closes a logic block
Function kam gar / gara Define and call functions

โš™๏ธ Getting Started

1. Installation

Sathi is hosted on PyPI. You can install the interpreter globally using pip:

pip install sathi-lang

2. Run Your First Program

Create a file named namaste.sathi:

sathi bhana "Namaste, Sathi!"

Execute it via the CLI:

sathi namaste.sathi

3. Developer Tooling

For the best experience, install the Sathi Language Extension in VS Code to get:

  • โœจ Syntax Highlighting
  • โŒจ๏ธ Code Snippets
  • ๐Ÿ› ๏ธ IntelliSense Support

๐Ÿง  The Engineering Behind Sathi

The Sathi interpreter is built in Pure Python, focusing on a clean Tokenizer-Parser architecture:

  • CLI Interpreter: Robust error handling and multi-platform support (Windows, macOS, Linux).
  • Scope Management: Supports local/global variable scoping and function stacks.
  • Logic Engine: Handles complex expressions, nested math, and iterative loops.

๐Ÿ”ฎ Roadmap & Future Milestones

The journey doesn't stop here. Future releases (v1.2+) will include:

  • Nested Loops: Support for multi-level logic chaining.
  • Online Playground: A browser-based IDE to run Sathi code without installation.
  • Standard Library: Built-in modules for advanced math, string manipulation, and file I/O.
  • Community Docs: An interactive guide at nirajang.com.np/sathi.

๐Ÿ™Œ Connect & Contribute

Creating Sathi has been a journey of blending culture with technology. If this project inspires you, Iโ€™d love to collaborate!


Contact

Let us build something useful

Based in Brookings, SD. Open to internships in backend, data engineering, and AI/ML. I respond within a few days.

Find me here