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

plain-lang

v1.0.1

Published

PLAIN — A programming language that reads like plain English. No brackets, no semicolons, no cryptic symbols.

Readme

PLAIN — Plain Language Programming


✨ Try it Online

→ Open the PLAIN Playground (open playground/index.html in your browser)


📦 Install the CLI

npm install -g plain-lang

🚀 Quick Start

Create a file called hello.plain:

set name to "World"
say "Hello, " + name + "!"

Run it:

plain hello.plain

Or start the interactive REPL:

plain

📖 Language Reference

Variables

set name to "Parth"
set age to 19
set price to 299.99

Output & Input

say "Hello, world!"
say "Value: " + myVar
ask "What is your name?" and store in username
say "Hi, " + username

Math

set result to 10 + 5 * 2
set area to width * height
set power to 2 ^ 10         -- 1024
set remainder to 17 % 5     -- 2
calculate 3.14 * r ^ 2 and store in circle_area

Conditions

if score >= 90 then
  say "Grade A"
otherwise if score >= 75 then
  say "Grade B"
otherwise
  say "Try again"
end

Operators: = != > < >= <= and or not

Loops

-- Repeat N times
repeat 5 times
  say "Hello!"
end

-- Counted loop
count from 1 to 10 as i
  say i
end

-- Loop over a list
for each item in myList
  say item
end

Lists

create list fruits
add "apple" to fruits
add "mango" to fruits
say count of fruits          -- 2
say item 1 in fruits         -- apple

Functions

define step greet with name
  say "Hello, " + name + "!"
end step

define step add with a, b
  give back a + b
end step

run step greet with "Parth"
set total to run step add with 10, 20
say total

Data Tables

create table students
set headers of students to "Name", "Score", "Grade"
add row "Parth", 95, "A" to students
add row "Vedant", 82, "B" to students
show table students

Web Requests

fetch "https://api.example.com/data" and store in response
say response

Other

wait 2          -- pause 2 seconds
stop            -- exit program
-- comment      -- this is a comment

🗂️ Project Structure

plain-lang/
├── playground/          # Browser-based IDE & landing page
│   ├── index.html       # Landing page + playground app
│   ├── style.css        # All styles
│   ├── interpreter.js   # Browser build of interpreter
│   └── app.js           # Playground UI logic
├── src/
│   ├── interpreter.js   # Core language runtime
│   └── cli.js           # CLI entry point (plain command)
├── examples/
│   ├── hello.plain
│   ├── calculator.plain
│   └── grades.plain
├── package.json
└── README.md

🌐 Publishing

npm

npm login
npm publish

GitHub Pages (playground)

Push the playground/ folder to a gh-pages branch:

git subtree push --prefix playground origin gh-pages

Vercel / Netlify

Set the root directory to playground/ and deploy.


💡 Roadmap

  • [ ] Syntax highlighting VS Code extension
  • [ ] File I/O (read file, write file)
  • [ ] String manipulation (length of, upper, lower)
  • [ ] Type checking (is number, is text)
  • [ ] Multi-file imports
  • [ ] WASM build for faster browser execution

🧑‍💻 Author

Made with ❤️ by Parth Pradip Bhosale


📄 License

MIT — free to use, share, and modify.