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

@chrisheninger/saxi

v0.15.1

Published

Drive the AxiDraw pen plotter

Downloads

5

Readme

saxi

make plot good

saxi is a tool for interacting with the AxiDraw drawing machine by Evil Mad Scientist. It comes with an easy-to-use interface, and is exactingly precise.

  • automatically scales & centers your drawing to fit on the paper
  • minimizes pen-up travel time by reordering & reversing paths
  • uses a custom motion planning algorithm (inspired by axi) that's smooth & fast
  • automatically splits apart layers based on SVG stroke colors or group IDs
  • has a web-based UI, so there's no need to muck around with installing X11 and Inkscape
  • can run on a Raspberry Pi or similar, so you don't need to be tethered to your plotter while it plots

a screenshot of the saxi user interface

Usage

$ npm i -g saxi
$ saxi
Server listening on http://0.0.0.0:9080
Connecting to EBB on /dev/tty.usbmodem1461

If you encounter an EACCES error when installing the package globally, see Resolving EACCES permissions errors when installing packages globally.

Raspberry Pi

To install saxi on a Raspberry Pi, first install node.js if you haven't already:

$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt-get install -y nodejs

and then proceed as above :) If you connect to the raspberry pi over ssh, you might want to run the saxi server inside a tmux or screen session to have it stay running even if your ssh session disconnects.

CORS

If you want to connect to saxi from a web page that isn't served by saxi itself, you'll need to enable CORS, otherwise GET/POST requests will be denied by the browser. CORS is disabled by default as a security precaution, but if you need it it's available. Just launch saxi with the --enable-cors flag.

Info

saxi makes use of the low-level LM command introduced in EBB firmware version 2.5.3 to carry out highly accurate constant-acceleration motion plans. If your AxiDraw is running an older version of the firmware, saxi will fall back to the less-accurate (but still pretty accurate) XM command.

To check what version of the EBB firmware your AxiDraw is running, run saxi --firmware-version:

$ saxi --firmware-version
EBBv13_and_above EB Firmware Version 2.5.3

To upgrade your AxiDraw's firmware, see here.

Developing

To work on saxi, you can clone this repo and then run npm start:

$ git clone https://github.com/nornagon/saxi
$ cd saxi
$ npm run dev

This will watch local files for changes. If you change the server code, you'll need to restart manually.

Credits

saxi's motion planning algorithm is heavily inspired by Michael Fogleman's axi project.

saxi's UI would be an ugly mess if it weren't for @kylestetz's discerning eye.

Thanks to Evil Mad Scientist for designing and building such a lovely machine!


Made with saxi

These images were plotted by folks using saxi. If you'd like to add something you've made here, shoot me an email!