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

basic-computer

v1.1.4

Published

<h1 align="center">basic-computer</h1>

Readme

An implementation of John C. Scotts 8-bit computer written in typescript.

Specs

  • Memory: 256 bytes
  • 4x general purpose registers
  • 8-bit word-size

Install

npm install

Usage

npm run start

Run tests

npm run test

Instructions

| instruction code | shorthand | description | | :--------------: | :-------: | --------------------------------------------------------------------------------------------------------------- | | 1000 rarb | ADD | Adds contents of ra and rb together, then places result into rb. | | 1001 rarb | SHR | Shifts contents of ra to the right by one bit, then places result the into rb. | | 1010 rarb | SHL | shifts contents of ra to the left by one bit, then places the result into rb. | | 1011 rarb | NOT | Performs a NOT operation between the bytes stored in ra and rb, then places the result into rb. | | 1100 rarb | AND | Performs a AND operation between the bytes stored in ra and rb, then places the result into rb. | | 1101 rarb | OR | Performs a OR operation between the bytes stored in ra and rb, then places the result into rb. | | 1110 rarb | XOR | Performs a XOR operation between the bytes stored in ra and rb, then places the result into rb. | | 1111 rarb | CMP | Compares the bytes stored in ra and rb, discards output byte, places result of comparison in flag register. | | 0000 rarb | LD | Loads contents of ram address stored from ra into rb. | | 0001 rarb | ST | Stores contents of rb into ram address from ra. | | 0010 00rb | DATA | Loads the byte following this instruction into rb. | | 0011 00rb | JMPR | Jump to the address stored in rb. | | 0100 0000 | JMP | Jump to the address indicated in the byte following this instruction. | | 0101 caez | JCAEZ | Jump if any tested flag is on using JMP, else move IAR forward two bytes. | | 0110 0000 | CLF | Clears the flag register. |

Cpu methods

License

This project is MIT licensed.