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

kang2

v1.3.8

Published

![Kang2 Logo](./logo.png)

Readme

The Kang2 Programming Language

Kang2 Logo

https://achodev.me/kang2

Kang2 is a free, open source and easy to use programming language, mainly for terminal applications.

Documentation

See documentation.md for more info

Installing

  • Run npm i -g kang2
  • Run kang2 [script file]

Changelog

Update 1.1

  • Structs

    struct House {
        var name = "House"
        var color = "Red"
        var size = 100
    
        func getname() {
            return name
        }
    
        func getcolor() {
            return color
        }
    }
    
    var house = House()
    
    log house.getname()
  • Better syntax errors

    var name = "Acho"
    var name = "acho"
    
    /* console
    Syntax error on line 2
    "name" is already defined
    
    2  |  var name = "acho"
              ~~~~
    */
  • Fixes various bugs

Update 1.2

  • comments

    // this is a comment
  • += -= *= /= ++ syntax sugar

    var variable = 10
    
    variable++
    
    variable += 1
    variable -= 2
    variable *= 2
    variable /= 4
  • Static functions

    struct SoundManager {
        static var volume = 10
        static var sounds = [
            Sound()
            Sound()
            Sound()
        ]
    
        static var playSound(index) {
            SoundManager.sounds[index].play()
        }
    }
    
    SoundManager.playSound(2)
  • Changed 'input' to 'prompt'

    prompt "what's your name"
  • Modules and importing

    // io.kg
    // ---------------------------
    func print(value) {
        log value
    }
    
    func input(q) {
        var result
        prompt q -> result
        return result
    }
    // ---------------------------
    
    // test.kg
    // ---------------------------
    import io
    
    var name = io.input("what's your name? ")
    io.print("hello, " + name + "!")
    // ---------------------------
    
    /* console
    what's your name? acho
    hello, acho!
    */
  • Better execution of kang2 scripts

    • node app.js <your kang2 script>.kg
  • Visual Studio Code extension

    • Get decent syntax highlighting and icons by downloading the Kang2 VSC extension from the extension store!

Update 1.3

  • Primitive types

    • Every variable has a type with standard functions (std folder)
    var string = "hey"
    log string.split()
    
    func log_char(char) {
        log char
    }
    
    string.split().foreach(log_char)
  • Active references

    • Reference values with &, which will bind the reference to the original variable, making changing one, reflect the changes on both
    • Unreferencing values with @, to get the actual value and change it unrelated to the original variable
    var value = 10
    var ref = &value
    
    value = 20
    log @ref
    
    ref = 30
    log value
    
    log @ref + 10
    [console]
    20
    30
    40
  • Advanced loop

    • More advanced loops
    loop var i = 0, i < 10, i++ {
        log i
    }
  • Fixed a bunch of problems with the syntax highlighting

  • Fixed lots of bugs, making the language more stable

  • Made a small std library for most types