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

shashx

v1.0.3

Published

A beginner-friendly interpreted programming language built for learning and fun πŸš€

Readme


πŸ“– What is shashx?

shashx is a custom-designed, educational programming language developed by Shashwat Singh, focusing on simplicity, clean syntax, and powerful learning potential.

  • πŸ”€ Inspired by modern scripting languages
  • 🧠 Created to understand how interpreters, tokenizers, and parsers work
  • πŸ§ͺ Perfect for experimenting with language design

✨ Features

  • βœ… Dynamically typed
  • βœ… Interpreted (no compilation needed)
  • βœ… Custom clean syntax
  • βœ… Supports variables, loops, conditionals, and print statements
  • βœ… Built with JavaScript (Node.js)
  • βœ… CLI-based execution
  • βœ… VS Code syntax highlighting extension

πŸ“¦ Installation

1. Install via NPM (Recommended)

npm install -g shashx

This will globally install the shashx CLI.


πŸƒ How to Run a .sx File

  1. Create a file with the .sx extension, e.g., hello.sx
  2. Run it using the CLI:
shashx path/to/hello.sx

🧠 Syntax Guide

βž• Print Statement

pf("Hello, World!")

πŸ“¦ Variable Declaration

@x = 10
@y = 20
pf(>x)
pf(>y)

πŸ” Loops

➰ For Loop (flp)

flp @i = 0 to 3{
  pf("flp i = " >i);
}

πŸ” While Loop (wlp)

@j = 0;
wlp j < 2 {
  pf("wlp j = " > j);
  j = j + 1;
}

πŸ” Do-While Loop (dlp)

@k = 0;
dlp {
  pf("dlp k = " > k);
  k = k + 1;
} wlp k < 2;

πŸ”‚ Conditional Statements

@x = 10
if x > 5
  pf("Greater than 5")
elf x == 5
  pf("Equals 5")
el
  pf("Less than 5")

🧩 VS Code Extension Support

Want syntax highlighting in Visual Studio Code?

πŸ”Œ Install from Marketplace

You can get the extension here:
πŸ‘‰ shashx-lang on Visual Studio Marketplace

🎨 Features

  • Syntax highlighting
  • File recognition (.sx)
  • Friendly editing experience

πŸ“ Project Structure

shashx-lang/
β”œβ”€β”€ bin/
β”‚   └── shashx.bat         # CLI batch file
β”œβ”€β”€ examples/
β”‚   └── loop.sx            # Sample code files
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ lexer.js
β”‚   β”œβ”€β”€ parser.js
β”‚   └── interpreter.js
β”œβ”€β”€ main.js                # Entry point
β”œβ”€β”€ package.json
└── README.md

πŸ“’ Contribution

Want to improve shashx?

  1. 🍴 Fork the repo
  2. πŸ› οΈ Make changes
  3. πŸ“© Open a PR

Bug reports, ideas, and suggestions are always welcome!


πŸ“¬ Contact

Have questions, ideas, or feedback?

Shashwat Singh
πŸ“§ Email: [email protected]
🌐 GitHub: github.com/shashwat-singh-01
πŸ”— LinkedIn: linkedin.com/in/shashwat-singh-200495248


πŸ“ License

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