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 🙏

© 2025 – Pkg Stats / Ryan Hefner

flat-palettes

v0.1.0

Published

Need color inspiration? No problem! Have some fantastic random color palettes.

Downloads

19

Readme

Table of Contents

Installation

Node

$ npm install --save flat-palettes

CLI

$ npm install -g flat-palettes

Usage

Node

const colors = require('flat-palettes');

colors(3);
//=> ['#f7a61b', '#7cbf42', '#eb4a24']

colors(5);
//=> ['#1f518b', '#1488c8', '#f7e041', '#e2413e', '#e91222']

API

colors(numberOfColors)
numberOfColors

Type: Number

Range: 1 - 5

Description: How many colors do you want in your flat palette?

Example: 3

CLI

All you got to do is:

$ flat-palettes <numberOfColors>

Where <numberOfColors> is the same described here.

GIFs <3

The commands above (in the GIF) gave you the following palettes:

And:

Pretty eye candy, huh?

Options

| Option | Description | |-------------|----------------------------------------------| | --help | Shows project description and how to use it. | | --version | Displays the current version. |

Development

All the tasks needed for development automation are defined in the package.json scripts property and can be run via:

npm run <command>

Here is a summary of all the commands:

| Command | Description | |---------------|-------------------------------------------------| | compile | Runs the Livescript compiler on the source. | | test | Runs Mocha in BDD mode. | | build | Runs both compile and test commands. |

Contributing

Contributions are very welcome! If you'd like to contribute, these guidelines may help you.

Motivation

Finding - or thinking of - a beautiful color palette to use in your next project is such a complicated - and important - task: sometimes you've just lost all your creativity or sometimes you just can't get the right inspiration.

Then you go search through flat colors websites and get tons of those - but you still can't combine them in a beautiful palette.

Then you find lots of those most-wanted inspirational palettes in cool sites. But you still can't help yourself in choosing one amongst 2000+ options.

Then you get to my problem: choosing a random color palette which I know I'm probably going to appreciate - and use in my project - in 5- minutes. Luckily you also get to the solution: flat-palettes.

License

flat-palettes is distributed under the MIT License, available in this repository. All contributions are assumed to be also licensed under the MIT License.

Credits

Most of the color palettes used in this project come from flatcolors.net.