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

kiss-vm-lint

v0.4.1

Published

Static analyzer and linter for Minima KISS VM smart contract scripts

Readme

kiss-vm-lint

Static analyzer and linter for Minima KISS VM smart contract scripts.

Catches errors before you deploy — without running the contract.


Install

npm install -g kiss-vm-lint

Usage

# Lint a file
kiss-vm-lint my-contract.kvm

# Lint multiple files
kiss-vm-lint contracts/*.kvm

# Pipe from stdin
echo "RETURN SIGNEDBY(0xaabb)" | kiss-vm-lint

# JSON output (for editors/CI)
kiss-vm-lint --json contract.kvm

# Strict mode: fail on warnings too
kiss-vm-lint --strict contract.kvm

# Hide info messages
kiss-vm-lint --no-info contract.kvm

What it catches

Errors (block deployment)

| Code | Description | |------|-------------| | E001 | Unterminated string literal | | E002 | Invalid hex literal (0x without digits) | | E003 | Unknown character | | E010 | Instruction limit exceeded (> 1024) | | E011 | Script has no RETURN statement | | E020 | Expected statement keyword | | E021 | Function used as statement | | E030 | LET requires a variable name | | E040-E042 | IF/THEN/ENDIF structure errors | | E050-E051 | WHILE/DO/ENDWHILE structure errors | | E060 | Division by zero | | E070-E083 | Expression / function call errors (arity, missing parens) |

Warnings (potential issues)

| Code | Description | |------|-------------| | W010 | Variable assigned but never used | | W030 | Deeply nested WHILE loop | | W040 | Dead code after RETURN | | W050 | Use EQ instead of = for equality | | W060 | Unknown global variable | | W070 | Variable used before LET | | W080 | Infinite WHILE TRUE loop detected | | W090 | No authorization check — coin can be spent by anyone | | W091 | MULTISIG(n, ...) impossible — n exceeds number of keys provided |

Info (security hints)

| Code | Description | |------|-------------| | I001 | EXEC with dynamic code — static analysis limited | | I002 | MAST by hash — ensure hash is audited | | I010 | STATE() — port number consistency | | I011 | PREVSTATE() — pair with SAMESTATE() if needed | | I012 | VERIFYOUT() — validate both amount AND address |

Programmatic API

const { analyze } = require('kiss-vm-lint');

const result = analyze(`
  LET lockBlock = 1000
  IF @BLOCK LT lockBlock THEN
    RETURN FALSE
  ENDIF
  RETURN SIGNEDBY(0xYOUR_PUBLIC_KEY)
`);

console.log(result.summary);
// { errors: 0, warnings: 0, infos: 0, instructionEstimate: 4 }

if (result.errors.length > 0) {
  result.errors.forEach(e => console.log(`[${e.code}] ${e.message}`));
}

KISS VM Quick Reference

KISS VM is Minima's scripting language for UTxO smart contracts. Every coin has a script that must return TRUE to be spent.

/* Time lock + signature */
LET lockBlock = 1000
IF @BLOCK LT lockBlock THEN
  RETURN FALSE
ENDIF
RETURN SIGNEDBY(0xYOUR_KEY)

/* 2-of-3 multisig */
RETURN MULTISIG(2, 0xKEY1, 0xKEY2, 0xKEY3)

/* Atomic swap */
RETURN VERIFYOUT(0, 100, 0xRECIPIENT_ADDR, 0x00)

Known limitations

  • CHECKSIG is not validated (requires live node)
  • PROOF (MMR) is not validated (requires live node)
  • EXEC with dynamic scripts cannot be statically analyzed

License

MIT