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

kamamana

v0.0.4

Published

Higher Order Custom HTML React Components, useful for personal projects

Downloads

10

Readme

Kamamana - Designed ReactJS Components

npm version install size code style: prettier linting: eslint type-check: flow

Designed ReactJS Components for personal use.

Set of High-Order HTML Elements as React Components, with default theme set for them, which can also be customized to any extent required, keeping the bundle size for the project using this library small.

  • All the current up-to-date list of supported components can be found here in ./src/components

Main purpose of this library is to use latest CSS properties (like flex box etc.), without the thought of supporting old browsers, removing use of browser prefixes, thus keeping library (with current set of components) size small.

I am hoping to keep it under 15Kb - 20Kb at-max with all basic components and dependencies included. Currently it has it's own icons present for testing, will later on remove them to reduce the size even more.

📦 Dependencies:

Just one small CSS-to-JS dependency, for creating components:

PROS:

  • Small and flexible 5th gen CSS-to-JS module.
  • Allows addons to levitate, various features of CSS-to-JS
  • Helps in keeping our own libraries using it, small and precise, with help of some modules.

CONS:

  • This library is very new in terms of other, so no gaurantee when the dev might stop working on it
  • Could have used styled-jsx(5kb at-max), but it was a real pain to make it work with storybook.

🖥 Environment Support

  • Mordern Brower support only.

📦 Installation

npm install kamamana --save

🔨 Usage

import { Button, Card, Flexbox, KamamanaProvider } from 'kamamana';

/* ... */

// Wrap your React App with KamamanaProvider for custom theme
const App = props => <KamamanaProvider kTheme={theme}>{/* App Children */}</KamamanaProvider>;

// Else, Use App as is, to use the default theme...
const App = props => {
  /* App Render */
};

This library also exposes the internal nano-css css-in-js engine (only used addons and nano, for now it's just jsx, rule), for custom use, which helps in re-using the library, whitout any custom css-in-js dependency, making overall parent project bundle size small (if used)...

import { nano, rule, jsx } from 'kamamana';

For details on jsx addon usage, check out Addon JSX

⌨️ Development

Uses storybook for development

$ git clone [email protected]:willofindie/kamamana.git
$ cd kamamana
$ npm install
$ npm run storybook

Open your browser and visit http://127.0.0.1:9001