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

gyaanscript

v1.0.3

Published

Dynamic Hindi scripting with wisdom and sims

Readme

GyaanScript

Unlock the Wisdom of Code in Hindi

GyaanScript is a dynamic, Hindi-based scripting language designed with simplicity and elegance. Write code that feels like poetry, blending logic with the charm of Hindi syntax. Whether you're crunching numbers, managing lists, or looping with purpose, GyaanScript brings a fresh vibe to programming.


✨ Features

  • Variables: Declare with soch—think it, and it’s real.
  • Math: Add (badha), subtract (ghata), multiply (guna), divide (bhag)—easy as breathing.
  • Lists: Manage collections with sankhya and jod.
  • Sets: Unique values via samuh—no duplicates, pure clarity.
  • Conditionals: Decide with agar and nahi to—wisdom in choices.
  • Loops: Repeat with jab tak—power in persistence.

🚀 Installation

Get started in seconds with npm:

npm install gyaanscript

🛠️ Usage

Import GyaanScript, create an instance, and run your Hindi code.

Basic Example

const GyanScript = require('gyaanscript').default;
const gs = new GyanScript();

const code = `
  soch x hai 5
  bata x
`;
console.log(gs.run(code)); // Outputs: 5

Full Power Demo

const GyanScript = require('gyaanscript').default;
const gs = new GyanScript();

const code = `
  soch x hai 0
  jab tak x chhota hai 3
    badha x se 1
    bata x
  khatam gyan
`;
console.log(gs.run(code)); // Outputs:
// 1
// 2

📘 Documentation

Variables

  • Syntax:
    soch <var> hai <value>
  • Example:
    soch num hai 42
    bata num  // 42

Math Operations

  • Addition:
    badha <var> se <value>
  • Subtraction:
    ghata <var> se <value>
  • Multiplication:
    guna <var> se <value>
  • Division:
    bhag <var> se <value>
  • Example:
    soch x hai 5
    badha x se 3  // x = 8
    ghata x se 2  // x = 6
    guna x se 2   // x = 12
    bhag x se 3   // x = 4
    bata x        // 4

Lists

  • Declare:
    sankhya <name> hai [<values>]
  • Add:
    jod <list> mein <value>
  • Get Item:
    bata sankhya <list> ka <index>
  • Example:
    sankhya nums hai [1, 2, 3]
    jod nums mein 4
    bata sankhya nums ka 0  // 1
    bata sankhya nums ka 3  // 4

Sets

  • Declare:
    samuh <name> hai {<values>}
  • Add Item:
    jod <set> mein <value>
  • Check Item:
    hai <value> samuh <name> mein
  • Example:
    samuh unique hai {1, 2, 2}
    jod unique mein 3
    hai 2 samuh unique mein  // hai
    hai 5 samuh unique mein  // nahi

Conditionals

  • Syntax:
    agar <var> bada hai <value> ... nahi to ...
  • Example:
    soch x hai 10
    agar x bada hai 7
      bata "Yes"
    nahi to
      bata "No"
    // Yes

Loops

  • Syntax:
    jab tak <var> chhota hai <value> ... khatam gyan
  • Example:
    soch x hai 0
    jab tak x chhota hai 3
      badha x se 1
      bata x
    khatam gyan
    // 1
    // 2

Output

  • Variable:
    bata <var>
  • String:
    bata "<text>"
  • Example:
    soch x hai 7
    bata x        // 7
    bata "Hello"  // Hello

🌟 Examples

Counting Up

soch count hai 1
jab tak count chhota hai 5
  bata count
  badha count se 1
khatam gyan
// 1
// 2
// 3
// 4

List Manipulation

sankhya fruits hai ["seb", "kela"]
jod fruits mein "am"
bata sankhya fruits ka 0  // seb
bata sankhya fruits ka 2  // am

Set Check

samuh numbers hai {1, 2, 3}
jod numbers mein 2
hai 2 samuh numbers mein  // hai
hai 4 samuh numbers mein  // nahi

Math Fun

soch x hai 10
badha x se 5   // x = 15
guna x se 2    // x = 30
bhag x se 3    // x = 10
bata x         // 10

📜 License

All Rights Reserved © 2025 Ayush Panigrahi
Unauthorized copying, distribution, or modification of this software is prohibited. Use it, love it, but don’t steal it!


🤝 Contributing

Got ideas? Want to add more Hindi flair? Reach out to me directly—this is a passion project, not an open-source free-for-all (yet!).


🎉 Get Started

Install it, play with it, and let the wisdom of GyaanScript flow through your code. Questions? Hit me up!