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

pwc-arena

v0.0.6

Published

A UX platform built on aurelia

Downloads

2

Readme

Rin 4

A lean, gulp-based HTML & SASS boilerplate for better front-end coding.

http://sanographix.github.io/rin/

Getting Started

Required Components

Set Up

1) Install gulp:

Note: If you have already installed gulp, skip this section.

$ npm install -g gulp

2) Clone Rin:

$ git clone [email protected]:sanographix/rin.git test-repo
$ cd test-repo
$ npm install

3) Run gulp:

$ gulp

4) :tada:

Directory

While you are running Rin, It is watching directories under templates/, sass/, js/, images/. Put your project’s templates(ejs), scss, js, images files in it.

templates/, sass/, js/, images/ files will compile and output to build/.

rin/
┣┳ templates/
┃┣ sass/
┃┣ js/
┃┗ images/
┃
┗┳ build/
 ┗┳ index.html
  ┣ css/
  ┣ js/
  ┗ images/

Templates

Rin supports EJS template. When you edit and save .ejs files under templates/ directory, they will output as .html to build/ directory.

Template tags

site.json

Put variables which use for every pages.

Example:

{
  "siteName": "Example Site",
 "siteRootUrl": "http://example.com/",
 "ogImageUrl": "http://example.com/images/og-image.jpg",
 "fbAppId": "000000000",
 "twitterSite": "@sanographix",
 "googleAnalyticsId": "UA-00000000-1"
}

index.ejs

If you want to use variables for particular single page, put variables into <% var %> at each page.

Example:

<% var
pageTitle = "Toppage";
pageDescription = "Example site";
%>
<head>
	<title><%= pageTitle %> - <%= siteName %></title>
	<meta property="og:description" content="<%= pageDescription %>" />
</head>

Result

<head>
	<title>Toppage - Example Site</title>
	<meta property="og:description" content="Example site" />
</head>

Images

Rin optimizes gif, jpg, png, svg images automatically using gulp-imagemin. Each files will output to build/.

CSS

Rin supports scss.

sass
┣ style.scss // It imports under /lib files
┗ lib
   ┣ _core.scss // Edit this files mostly
   ┣ _button.scss // Buttons
   ┣ _common.scss // Common components like `body` or `a` etc
   ┣ _grid.scss // Responsive grid system
   ┣ _normalize.scss // Normalize
   ┗ _variable.scss // Color variables

_normalize.scss

-> normalize.css

_grid.scss

It helps you make simple grid system. Like this:

3-column

<div class="l-container">
  <div class="l-row">
    <div class="l-span4">
      Column A
    </div>
    <div class="l-span4">
      Column B
    </div>
    <div class="l-span4">
      Column C
    </div>
  </div>
</div>

2-column

<div class="l-container">
  <div class="l-row">
    <div class="l-span6">
      Column A
    </div>
    <div class="l-span6">
      Column B
    </div>
  </div>
</div>

_button.scss

Example:

<a class="btn">Normal button</a>
<a class="btn btn-light">Light color button</a>
<a class="btn btn-primary">Primary button!</a>
<a class="btn btn-large">Large button!!</a>

_variable.scss

Color variables and breakpoints of browser window width.

Media queries breakpoints

  • mq-lg
    • Large display (>1240px)
  • mq-md
    • Tablet display (<1024px)
  • mq-sm
    • Small tablet & Smartphone (<767px)
  • mq-xs
    • Smartphone (<480px)

Example:

header h1 {
    font-size: 200%;
    @media #{$mq-lg} {
        font-size: 300%;
    }
    @media #{$mq-sm} {
        font-size: 100%;
    }
    @media #{$mq-xs} {
        font-size: 80%;
    }
}

at2x

Variables for retina devices.

  • at2x
    • All retina devices
  • at2x-tablet
    • Retina devices (larger than iPad display)
  • at2x-pc
    • Retina devices larger than PC display (1025px)
    • Use this variables when you need to load too large file size images.

Example:

header h1 {
    background: url("images/title.png");
    @media #{$at2x} {
        background: url("images/[email protected]");
    }
}

JS

js files under js/ will output to build/js/scripts.js with concatenated and compressed.

Local Server

Rin runs local server by using BrowserSync. Its default URL is http://localhost:3000/. It reloads your browser automatically when you update a file that gulp is watching.

Deploy to gh-pages branch

Run git subtree command.

git subtree push --prefix build/ origin gh-pages

Author

Showkaku Sano (sanographix)

Graphic designer from Kyoto.

License

Major components:

  • Normalize.css: Public Domain
  • html5shiv: MIT/GPL license
  • gulp: MIT license