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

fityme

v1.1.1

Published

A Stylus library to generate skeleton screens, through svg placeholder as data URI background in order to help you improve the perceived loading time of your apps.

Downloads

4

Readme

FITYME

FITYME stands for "Fake it til you make it"

A Stylus library to generate skeleton screens, through svg placeholder as data URI background.

It will help you improve the perceived loading time of your apps.


Usage

npm install --save-dev fityme

Alt text

The above card can be easily generated with the following code:

@require './node_modules/fityme'

body
    background #eee url(
        fityme(318, 198, 
            rect(100%, 100%, 0, 8, #ffffff), 
            rect(200, 120, center, 16, #ccc, 5, true),
            rect(270, 16, center, 148, #eee), 
            rect(220, 16, center, 168, #eee)
        )
    );

CHECKOUT MORE DEMOS

No matter what impossible situation you are dealing with, you might always FITIMY.


Helper classes

ft-x

Define the number of times a card can be repeated based on a 8 columns grid. You can even combine some classes, to dictate how the cards will be rendered o different screen sizes.

To repeat the card created before (.ft-products) 3 times do the following:

<ul class="ft-products ft-3"></ul>

If you want to change how many times the card will show on extra small screens:

<ul class="ft-products ft-3 ft-xs-1"></ul>

All options available:

| Repeat-(n) | Extra Small Screen | Small screen | Medium screens | Large screens |
| -----------| ------------------ |------------- |--------------- |-------------- | | .ft-1 | .ft-xs-1 | .ft-sm-1 | .ft-md-1 | .ft-lg-1 | | .ft-2 | .ft-xs-2 | .ft-sm-2 | .ft-md-2 | .ft-lg-2 | | .ft-3 | .ft-xs-3 | .ft-sm-3 | .ft-md-3 | .ft-lg-3 | | .ft-4 | .ft-xs-4 | .ft-sm-4 | .ft-md-4 | .ft-lg-4 | | .ft-5 | .ft-xs-5 | .ft-sm-5 | .ft-md-5 | .ft-lg-5 | | .ft-6 | .ft-xs-6 | .ft-sm-6 | .ft-md-6 | .ft-lg-6 | | .ft-7 | .ft-xs-7 | .ft-sm-7 | .ft-md-7 | .ft-lg-7 | | .ft-8 | .ft-xs-8 | .ft-sm-8 | .ft-md-8 | .ft-lg-8 |

.ft-single

Restrict the the num of cards to only one.

<!-- Only one card no matter what screen size --> 
<ul class="ft-products ft-single"></ul>

.ft-single-row

Allow only a single row of cards.

<ul class="ft-products ft-single-row"></ul>

.ft-single-column

Allow only a single column of cards.

<ul class="ft-products ft-ingle-column"></ul>

.ft-full

Makes one only card to extend itself until it fit the entire block.

<ul class="ft-products ft-full"></ul>

API

fityme(x, y, content)

Generates the card canvas.

fityme(318, 198, ...content)

rect(wdth = 100%, hght = auto, x = 0, y = 0, fill = #ccc, radius = 0, anim = false)

Draw a rectangle

rect(200, 120, center, 16, #ccc, 5, true),

sqr(size, x, y)

Draw a square

square(200, ...)

crc(size, x, y)

Draw a circle

circle(200, ...)

Contribute

Please let me know of the bugs you find. Don't like Stylus? fell free to port it to your favorite stylesheet processing language, mas let me know so I can improve this project by learn from your proccess.