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

synthwave

v4.27.0

Published

Simple and beautiful synthwave background collection.

Downloads

68

Readme

synthwave

Simple and beautiful synthwave background collection.

Why?

Because there is no time to mess with gradient editors.

Demo & Example

Installation

NPM

Install Node.js and run npm i synthwave.


<link rel='stylesheet' href='node_modules/synthwave/style.css' />

ZIP

download the zip: https://github.com/fantasyui-com/synthwave/archive/master.zip unpack and put the style.css next to your HTML and simply include the file in your HTML document.


<link rel='stylesheet' href='style.css' />

RAW GIT

Use raw git for development purposes:


<link rel='stylesheet' href='https://rawgit.com/fantasyui-com/synthwave/master/style.css' />

CDN

You can use the raw git CDN for a more permanent 3rd party hosting solution:


<link rel='stylesheet' href='https://cdn.rawgit.com/fantasyui-com/synthwave/master/style.css' />

COPY & PASTE

grab the code from here https://github.com/fantasyui-com/synthwave/blob/master/style.css via copy and paste and put it into a <style></style> tag of your web page. Which pattern do you like? is it for example synthwave-m? If so then just put this in your <head> tag:


<style>
  .synthwave-m {
    background: linear-gradient(172deg, #C115D7 0%, #B510D6 4%, #540101 5%, #FCA10F 18%, #FFD82D 21%, #FCA10F 24%, #05253D 25%, #0E5BCE 35%, #3C8FCA 43%, #79BFE0 45%, #090D6D 46%, #000002 56%, #3B3FA9 60%, #2DBCFF 61%, #318AD3 73%, #13A7F7 74%, #352313 75%, #F29C5A 91%, #FC411C 92%, #F29C5A 100%);
  }
</style>

API Usage


const synthwave = require('synthwave');

// Select x CSS
synthwave.css('x')

// Select a,b,c,d CSS
synthwave.css(/[a-d]/)

// Select raw a,b,c objects
synthwave.raw(/[a-c]/)

// Render raw
let allRaw = synthwave.raw(/[cwmfjordbankglyphsvextquiz]/);
let allCss = synthwave.render(allRaw) // -> CSS

HTML Usage

Use synthwave-a-z class in a html node, for example:


<div class="synthwave-b">
  <span class="badge badge-dark">Hello World</span>
</div>

Add this to your HTML if you want to apply synthwave to HTML body.


html, body { height: 100%;}
body { background-attachment: fixed !important; }

Developer Notes

git/.config remote origin holds to ease gh-pages publication

push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master

index.src.html is compiled to index.html via PostHTML

npm run watch parcel watch index.html.src.js --out-dir . --out-file index.html.js

Terminal Setup

  1. hs -c-1 .
  2. node dev-watch.js
  3. parcel watch index.html.src.js --out-dir . --out-file index.html.js