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

greact

v1.0.8

Published

A grid system for React

Readme

Greact

Grid systems are used for creating page layouts through a series of rows and columns that house your content. Greact has been created to render layout as easy as a pie for React users. Greact is based on flexbox and don't have any css dependencies. Keep in mind that flexbox are well supported by most of modern browsers however you can check the compatibility here

Greact in action just here

Code Example

import React from 'react';
import ReactDOM from 'react-dom';

import {Row, Col} from 'greact';

class App extends React.Component {
  render() {
    return (
      <div>
        <Row cols={12}>
          <Col xs={12} sm={4} md={2} lg={1}>{'1'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'2'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'3'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'4'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'5'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'6'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'7'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'8'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'9'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'10'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'11'}</Col>
          <Col xs={12} sm={4} md={2} lg={1}>{'12'}</Col>
        </Row>
        <Row cols={5}>
          <Col xs={5} md={1}>{'13'}</Col>
          <Col xs={5} md={1}>{'14'}</Col>
          <Col xs={5} md={1}>{'15'}</Col>
          <Col xs={5} md={1}>{'16'}</Col>
          <Col xs={5} md={1}>{'17'}</Col>
        </Row>
      </div
    );
  }
}

ReactDOM.render(<App />, document.getElementById('app'));

Installation

$ npm install --save greact

Grid System

Without any suprise greact will allow you to layout your pages through a series of rows and columns. A row can be defined as a horizontal groups of columns and content should be placed within columns (only columns may be immediate children of rows).

Row

Create a Row is super easy, so just have a look below:

    <Row>
        ...
    </Row>

Because sometimes you may want to tweek your grid, a Row can accept some extra options:

| Props | Description | Default | |:----------|:---------------------------------------|:-------------------------------------:| | cols | number of columns | 12 | | queries | an object to define new queries size | { xs : 544, sm : 768, md : 992 }|

See the example below for a better idea of how it all works.

    <Row cols={16} queries={{ xs : 500, sm : 800, md : 1000 }}>
        ...
    </Row>

Col

Create a Col is as easy as a creating a Row :

    <Row>
        <Col xs={6}>
            ...
        </Col>
        <Col xs={6}>
            ...
        </Col>
    </Row>

Let's have a look on options:

| Props | Description | Default | |:--------|:-------------------------------------------------|:---------:| | xs | space used by the column for extra small devices | 0 | | sm | space used by the column for small devices | 0 | | md | space used by the column for medium devices | 0 | | lg | space used by the column for large devices | 0 | | offset | object containing offset for all devices size | {xs:0, sm:0, md:0, lg:0 } |

Feel free to combine all these options and play with the grid, that's super easy and this is why greact exists:

    <Row>
        <Col xs={12} sm={6} md={4} lg={1}>
            ...
        </Col>
        <Col xs={12} sm={6} md={4} lg={1}>
            ...
        </Col>
    </Row>
    <Row cols={7}>
        <Col xs={6} sm={5}>
            ...
        </Col>
        <Col xs={1} sm={2}>
            ...
        </Col>
    </Row>