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

properscript

v1.0.5

Published

JavaScript, but proper.

Readme


Installation

Install ProperScript globally via npm:

npm install -g properscript

Quick Start

  1. Create a file hello.ps:
changeable message = "Hello, ProperScript!";
announce(message);

Visual Studio Code Extension

We have a Visual Studio Code extension to give you ProperScript IntelliSense. Check it out here.

  1. Compile it:
proper compile hello.ps
  1. Run the compiled JavaScript:
node hello.js

Syntax

Keyword Reference

| ProperScript | JavaScript | Description | |--------------|------------|-------------| | changeable | let | Mutable variable | | persistent | const | Immutable variable | | announce | console.log | Print to console | | inform | console.warn | Print warning | | blunder | error | Print error | | sorry | error | Error | | terribly sorry | fatal error | Fatal error message | | queue | await | Async await | | please | then | Promise then | | correct | true | Boolean true | | mistaken | false | Boolean false | | acquire | import | Import modules | | whether | if | Conditional statement | | period | while | While loop | | heretofore | while(true) | Infinite loop | | changeover | switch | Switch statement | | goback | return | Return statement | | visit | goto | Goto statement |

For complete documentation, see docs/.

Examples

Hello World

ProperScript (hello.ps):

persistent greeting = "Hello, World!";
announce(greeting);

Compiles to (hello.js):

const greeting = "Hello, World!";
console.log(greeting);

Counter with Loop

ProperScript (counter.ps):

persistent stopNum = 10;
changeable count = 0;

heretofore {
  whether (count === stopNum) {
    goback;
  }
  
  announce('Current count:', count);
  count++;
}

Compiles to (counter.js):

const stopNum = 10;
let count = 0;

while(true) {
  if (count === stopNum) {
    return;
  }
  
  console.log('Current count:', count);
  count++;
}

Async/Await

ProperScript (async.ps):

async function fetchData() {
  changeable response = queue fetch('https://api.example.com/data');
  changeable data = queue response.json();
  goback data;
}

fetchData()
  .please(data => announce('Received:', data))
  .catch(sorry => announce('terribly sorry:', sorry));

Compiles to (async.js):

async function fetchData() {
  let response = await fetch('https://api.example.com/data');
  let data = await response.json();
  return data;
}

fetchData()
  .then(data => console.log('Received:', data))
  .catch(error => console.log('fatal error:', error));

Error Handling

ProperScript (errors.ps):

try {
  throw new Error("terribly sorry");
} catch (blunder) {
  inform("A blunder occurred:", blunder.message);
}

Compiles to (errors.js):

try {
  throw new Error("fatal error");
} catch (error) {
  console.warn("A error occurred:", error.message);
}

More examples in examples/.

CLI Usage

# Compile a single file
proper compile file.ps

# Compile multiple files
proper compile file1.ps file2.ps file3.ps

# Show version
proper --version

# Show help
proper --help

Contributing

We welcome contributions! Here's how to get started:

  1. Fork and clone the repository:
git clone https://github.com/ingStudiosOfficial/properscript.git
cd properscript
  1. Install dependencies:
npm install
  1. Make your changes and test:
node packages/cli/index.cjs compile examples/hello.ps
  1. Submit a pull request

See CONTRIBUTING for more details.

License

Licensed under Apache-2.0. See LICENSE for details.

Credits

Made with 💖 by (ing) Studios and Ethan Lee

Original idea from a r/programmingmemes comment