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

sprator

v0.1.9

Published

8bit sprite generator invented by torin

Downloads

12

Readme

Sprator

npm latest version semantic-release

This is a TypeScript implementation of Sprator (original is C++).

Sprator is a npm package to generate sprites using cellular automaton. Generated sprites is given as Buffer object in Node.js.

This image is from original Sprator repo.

Installation

You can install this package via npm.

npm install sprator

Requirement

Node.js v10 or higher.

Sprator Server

Deploy

This package includes simple server using express. You can use it locally by following command.

npm start

Then the server is on http://localhost:3000

The server responds to GET request with any URL and accepts by following queries.

Query

Example

e.g. http://localhost:3000?seed=1d14f&dot=8&ppd=8&fill=palegreen&border=forestgreen&background=rgba(128,128,128,0.8)

https://sprator.herokuapp.com/?seed=1d14c&dot=8&ppd=8&fill=palegreen&border=darkolivegreen&background=rgba(225,225,225,0.8)

seed

Random string represents seed of generation.

Default: empty string

dot

Number of dots in an edge. 6 or more (must be even)

Default: 10

ppd

Numbrer of pixels in a dot. e.g. If dot=10 and ppd=4, the image pattern size is 40x40, and output image size is 64x64 (includes 12px margin).

Default: 10

fill

Fill color can be used on the Canvas.

You must encode # (%23) on URL.

Default: #228b22

border

Border color can be used on the Canvas.

Default: #2f4f4f

background

Background color can be used on the Canvas.

Default: #000000

Usage

以前作ったアイコン生成ソフトをリメイクした - 屋根裏

License

Sprator is licensed under the MIT license. See the LICENSE for more information.