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

@asmelabs/pushkin

v0.0.0-alpha.3

Published

A simple, interpreted programming language written in TypeScript

Downloads

147

Readme

CI npm version license

Pushkin

A simple, interpreted programming language written in TypeScript.

Pushkin is designed to be approachable and easy to learn, with a familiar syntax inspired by modern languages. It runs on the Bun runtime and is built from scratch — lexer, parser, and interpreter — with no external parsing libraries.

Installation

# Install globally via npm
npm install -g @asmelabs/pushkin

# Or with bun
bun add -g @asmelabs/pushkin

Quick Start

Create a file called hello.push:

new greeting = 10;
new world = 20;
new result = greeting + world;
print(result);

Run it:

pushkin hello.push

Output:

30

Language Guide

Variable Declaration

Use the new keyword to declare variables. All variables are mutable.

new x = 10;
new y = 25;

Assignment

Reassign variables by using the variable name without new.

new x = 10;
x = 50;
print(x);
// 50

Number Operations

Pushkin currently supports addition and subtraction with numbers.

new a = 10;
new b = 3;

new sum = a + b;
new diff = a - b;

print(sum);
// 13

print(diff);
// 7

Operations can be chained and used inline.

new result = 10 + 20 - 5;
print(result);
// 25

print(100 - 50 + 25);
// 75

Print

Use print() to output values to the console. You can pass variables or expressions directly.

new x = 42;
print(x);
// 42

print(10 + 20);
// 30

Comments

Single-line comments start with //.

// this is a comment
new x = 10; // inline comment

Error Handling

Pushkin provides clear error messages with line and column numbers.

new x = 10;
new x = 20;
// Error: Variable 'x' is already declared
print(y);
// Error: Variable 'y' is not declared
new a = 10
// Error: Expected Semicolon but got 'EOF' at line 1, column 11

How It Works

Pushkin processes source code in three stages:

Source Code → Lexer → Tokens → Parser → AST → Interpreter → Output

Lexer takes the raw source string and breaks it into tokens — small units like keywords, numbers, operators, and identifiers.

Parser takes the flat list of tokens and builds an Abstract Syntax Tree (AST), a tree structure that represents the program's logic and hierarchy.

Interpreter walks the AST and executes each node directly, maintaining a variable environment and producing output.

Roadmap

Pushkin is in early alpha. Here's what's planned:

  • [ ] Strings and string interpolation
  • [ ] Boolean type and null
  • [ ] Multiplication, division, and modulo operators
  • [ ] Comparison operators (==, !=, >, <, >=, <=)
  • [ ] Logical operators (&&, ||, !)
  • [ ] If/else conditionals
  • [ ] For loops and for...in loops
  • [ ] Functions with fn keyword
  • [ ] Named function arguments
  • [ ] Arrays and objects
  • [ ] REPL (interactive mode)
  • [ ] CLI for running .push files
  • [ ] Standard library

Development

# Clone the repo
git clone https://github.com/asmelabs/pushkin.git
cd pushkin

# Install dependencies
bun install

# Run the entry point
bun run src/index.ts

# Build
bun run build

# Run tests
bun test

Contributing

Pushkin uses conventional commits and changesets for versioning.

  1. Create a feature branch: git checkout -b feat/my-feature
  2. Make your changes and commit: git commit -m "feat: add my feature"
  3. Add a changeset: bunx changeset
  4. Push and open a PR

License

MIT