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

reoil

v0.0.32

Published

🧡Reoil is a low-level react original component library which can be used as wapper to replace '<div>' '<img>' etc, also can be wrapper for any other components.

Downloads

4

Readme

reoil

🧡Reoil is a low-level react original component library which can be used as wapper to replace <div> <img> etc, also can be wrapper for any other components."

Offical Website is designing, coming soon ...

Usage

We will release clear official documents in the coming months ...

Components

  • Box
  • Avatar
  • Image
  • Copy
  • Meta

Example usage:

Center all child elements

<Box center>...</Box>

Right bottom all child elements

<Box right bottom>...</Box>

Draw a button with Box

<Box padding={12} borderRadius={8} bg='blue' color='white' pointer>Click Me</Box>

Customize a button component with Box

const MyButton = ({children})=>{
  return <Box padding={12} borderRadius={8} bg='blue' color='white' pointer>{children}</Box>
}

Random or specify Avatar

<Avatar src='random' />
// or specify src
<Avatar src='someurl' />

Image

<Image src='random' width={200} height={100} fit='contain' /> 

Some behavior components:

Click to Copy

<Copy>some text</Copy>
// 'some text' will copy
<Copy>
  <h1>Hello world</h1>
  <p>Nice to meet you</p>
</Copy>
/* 
  'Hello world
  Nice to meet you' will copy
*/

Set title and favicon

<Meta title='Home Page' favicon='some.png' />

Development Build

If you are interested in this library, you are welcome to build it together.

Source Code https://github.com/reoilteam/reoil.

1. Clone or Download

git clone [email protected]:reoilteam/reoil.git

2. Yarn or Npm install packages

yarn install

3. Scripts

  • build:ts - build and export into /dist (not recommend)
  • build:types - build and export *.d.ts declaration files into /dist only
  • build:babel - build and export separated .ts files into /dist (without export declaration files)
  • build - build and export declaration files and separated files info /dist
  • build:rollup - build and export declaration files and one single bundled index.js (recommend)
  • start - watch build in babel way
  • start:rollup - watch build in rollup way (recommend)

I would use:

yarn start:rollup

4. Local Register

In order to use this library in local, register it in local(current path at reoil) :

yarn link

5. Demo & Local Import

In order to develop with acctual demo, you can create an React demo with CRA at any place:

yarn create create-react-app reoil-demo

Then link the local library which registered before:

yarn link reoil

Delete react folder in node_modules handly(important):

🍺 Now, you are good to go!