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

hindimejs

v1.1.2

Published

A programming language with a desi twist. It uses commonly used hindi words for commands.🫑

Readme

HindimeJS 🫑

A tiny, fun programming language in Hindi slang β€” to test how a language parser works!

npm version License: MIT

🌟 Features

  • Hindi Slang Syntax - Write code in familiar Hindi words
  • Simple & Fun - Easy to learn, fun to use
  • Full Featured - Variables, functions, control flow, modules
  • Cross Platform - Works on Windows, Mac, and Linux
  • Lightweight - Minimal dependencies, fast execution

πŸš€ Quick Start

Installation

npm install -g hindimejs

Your First Program

Create a file called hello.hindi:

# My first HindimeJS program!
name HAI "Desi Developer"
BOLO "Namaste, " + name + "!"

Run it:

hindijs hello.hindi

Output:

Namaste, Developer!

πŸ“š Language Guide

Variables & Assignment

Use HAI for infix assignment (feels natural!):

marks HAI 95
name HAI "Bhai"
flag HAI sach     # true
empty HAI khaali  # null

Legacy syntax (still supported):

YAAR score 100

Math Operations

# Basic arithmetic
result HAI 10 + 5 * 2
BOLO result  # 20

# Power and modulo
power HAI 2 ^ 8
remainder HAI 17 % 5

Functions

Define functions with kaam and call them with kaam_karo:

kaam greet name {
    message HAI "Namaste, " + name + "!"
    lotaao message
}

kaam_karo greet "Desi Developer"

Or use parentheses syntax:

greet("World")

Capturing return values

Use lotaao inside a function to return a value, and assign it with HAI when calling via parentheses syntax.

kaam greet name {
    lotaao "Namaste, " + name + "!"
}

msg HAI greet("Mayank")
BOLO msg

Note: kaam_karo greet "Mayank" executes the function but does not return a value you can assign.

Control Flow

If-Else:

score HAI 85

agar score >= 90 {
    BOLO "Excellent!"
}
nahi_to score >= 80 {
    BOLO "Good job!"
}
warna {
    BOLO "Keep trying!"
}

Loops:

# While loop
i HAI 0
jab_tak i < 5 {
    BOLO i
    i HAI i + 1
}

# For loop
har_ek item in [1, 2, 3, 4, 5] {
    BOLO "Number: " + item
}

Arrays & Data Structures

# Create arrays
numbers HAI [1, 2, 3, 4, 5]
names HAI ["Amit", "Priya", "Raj"]

# Access elements
first HAI numbers[0]
BOLO "First number: " + first

Modules

Export from math.hindi:

PI HAI 3.14159

kaam square x {
    lotaao x * x
}

BHEJO PI
BHEJO square

Import in main.hindi:

lao "math.hindi"
BOLO "Pi is: " + PI
BOLO "Square of 5: " + square(5)

🎯 Examples

Calculator Function

kaam calculate operation a b {
    agar operation == "add" {
        lotaao a + b
    }
    nahi_to operation == "multiply" {
        lotaao a * b
    }
    warna {
        lotaao "Invalid operation"
    }
}

BOLO calculate("add", 10, 5)      # 15
BOLO calculate("multiply", 4, 6)  # 24

Simple Game

# Guess the number game
secret HAI 42
attempts HAI 0

BOLO "Guess the number between 1 and 100!"

jab_tak sach {
    attempts HAI attempts + 1
    guess HAI 50  # In real app, get user input

    agar guess == secret {
        BOLO "Correct! You took " + attempts + " attempts."
        bas_kar
    }
    nahi_to guess > secret {
        BOLO "Too high!"
    }
    warna {
        BOLO "Too low!"
    }
}

πŸ“¦ CLI Usage

# Run a program
hindijs program.hindi

# Get help
hindijs --help

# Check version
hindijs --version

πŸ› οΈ Development

Prerequisites

  • Node.js 14+
  • npm or yarn

Setup

git clone https://github.com/thisismayank/hindijs.git
cd hindijs
npm install
npm test

Project Structure

hindijs/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ lineTokeniser.js    # Tokenizes input
β”‚   β”œβ”€β”€ lineInterpreter.js  # Interprets commands
β”‚   β”œβ”€β”€ functionParser.js   # Handles functions
β”‚   └── controlParser.js    # Handles control flow
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ expressionEvaluator.js
β”‚   β”œβ”€β”€ variableResolver.js
β”‚   └── ...
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ demo.hindi
β”‚   β”œβ”€β”€ functions_demo.hindi
β”‚   └── control_flow_demo.hindi
└── hindi.js               # Main entry point

🀝 Contributing

We love contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Keep it meme-friendly and fun! πŸ˜„
  • Add Hindi comments in code
  • Write tests for new features
  • Update documentation for API changes

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Part of a learning series where I want to understand the workings of the tools I use daily.

πŸ“ž Support


Made with ❀️ for the desi developer community

"Coding kar raha hun, masti mein!" πŸš€