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

zwui

v0.0.19

Published

This is `ZWUI`, a collection of React.js components to simplify user interface development at Zeilenwerk. It's very much a work in progress.

Downloads

12

Readme

# Abstract

This is ZWUI, a collection of React.js components to simplify user interface development at Zeilenwerk. It's very much a work in progress.

(!) This is an internal project and package of Zeilenwerk. You're welcome to use and re-use it, but it comes without warranty or support.

Using ZWUI

In your React app, install the npm package zwui to get started (beware that this may not reflect the latest changes in the repository):

npm install zwui --save

Then import and use the components you want:

import React, {Component} from 'react'
import {
  Button
} from 'zwui'

export default class Demo extends Component {
  render(){
    return <Button label="Click me!" onClick={() => console.log("Button was clicked")} />
  }
}

Documentation

The documentation for the components are baked into the project itself, which is a regular React app. Clone the repository, install all the dependencies and run the app to see examples and the documentation:

npm install
npm start

Developing

The guiding principles of ZWUI are the following:

  • Make components that save time: We don't try to reinvent the wheel, but provide our future selves with easy solutions to everyday problems. We don't need to create a Button component in every project when we can create it here.
  • Make components that feel natural: Try to follow the conventions of Zeilenwerk and the larger React community when designing and naming components and their props. A Button just naturally has a onClick handler. Good (component) design is invisible.
  • Make components that just work: The components should be usable without having to use a whole ecosystem of other components: Plug and play / import and use. Do one thing only, and do that well.
  • Make components that are universally adaptable: Only add components and behaviours that are abstract enough to be re-used. If you want a component to behave in a way that only benefits a project-specific use case, copy the component into your project and edit it there. But remember to think your use case through; maybe a more abstract implementation of the behaviour may benefit your project and other use cases.

Publishing a new package version

To publish a new version to npm, you'll need to do the following:

  • Increase the version number in package.json
  • Run the prepared task yarn package to create the needed files in dist/
  • Commit the generated files and push them
  • Upload the package to npm with npm publish