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 🙏

© 2024 – Pkg Stats / Ryan Hefner

zxlab-api

v1.7.0

Published

The wrapper to access ZXLab API

Downloads

30

Readme

ZXLab API Wrapper

This is a Javascript library that provides an access to ZXLab API. You can include it to your pure js application.

To use this wrapper with React, please use npm install or yarn add (see below).

Installation

You can connect this ZXLab API Wrapper to your browser using direct URL

<script src="https://zxlab.org/zxlab-api/zxlab_api.js"></script>

In case you're using React-based app, use

npm install zxlab-api -s

or

yarn add zxlab-api

Usage

Examples

First, please check /examples directory

Use setMemoryBlocks directly from browser: https://www.youtube.com/watch?v=ikF-R_oMlnk

Use blitMemoryBlocks https://www.youtube.com/watch?v=YjT6NEdG9og

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

I the middle of 2020 I realized that the development of games (in particular, ZX Spectrum games) should be started from a minimal working prototype (MVP). Most of the programmers making this is still using Delphi, Python, and even pure C++!

As a rule, these people start by writing their own "Spectrum Emulator", because the source codes of the existing ones seem difficult to learn or does "not fit" for them being written with another programming language.

As a Nodejs, React, and Javascript lover, I decided to make a more or less universal solution that can help enthusiasts over the world developing mock-ups and prototypes of ZX Spectrum games. First of all, you don't need to develop your own ZX Spectrum emulator anymore. ZXLab Emulator is a standalone WASM-based application that can be run into a separate IFRAME and can be deeply controlled via ZXLab API.

I called it ZXLab because it allows to use virtual ZX Spectrum machine to be a "Guinea pig" so you can control it completely. You can stop and start the CPU at any moment, put and read any blocks of RAM, draw on its screen directly, run Z80 code and javascript code at the same time, and many more.

The main idea was the possibility of a smooth transition from the prototype to the real z80 code by sequentially rewriting the algorithms from javascript to z80 ASM until all the game code will be written in z80 ASM and be capable to run under real ZX Spectrum hardware.

Credits

As far as I know, only I am developing this package at the moment. Do not worry, you can participate!

License

MIT