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

@algolia/ui-library-future

v10.0.0-beta.93

Published

[![Build Status](https://travis-ci.com/algolia/ui-library.svg?token=xHy4ydCZHetFCp5sscyv&branch=develop)](https://travis-ci.com/algolia/ui-library)

Downloads

784

Readme

Algolia UI library

Build Status

A set of shareable, reusable UI components for Algolia interfaces, built in React. Complete list available here: https://algolia-ui-library.netlify.com/.

Purpose

The goal of this library is to provide a set of React UI components that can be easily integrated into any Algolia project.

The design of these components is identical to the design found on algolia.com. The styles are using Algolia's custom version of Fragments.js.

Usage

  1. Run one of the following commands in your project, depending on your package manager:
npm install @algolia/ui-library --save

yarn add @algolia/ui-library
  1. Use the UI components like this:
import React from 'react';
import { Button, Text } from '@algolia/ui-library';

const MyComponent = () => (
  <div>
    <Text>This is some text</Text>
    <Button>This is a button</Button>
  </div>
);

export default MyComponent;

Specific case: CodeSample component

For the CodeSample component (located at src/components/CodeSample), you'll need to generate static JSON files located at src/components/CodeSample/generatedHtml in order to make it work with the smallest possible footprint: the library that handles syntax highlighting is heavy, that's why generating static JSON files prevents the client build from being too big.

To generate the static files, run:

yarn generate:codesample

Contributing

If you want to contribute to this project:

  • Clone the repository
  • Install all dependencies: yarn or npm install
  • Launch Storybook: yarn storybook or npm run storybook

Releases

Once you consider that the develop branch holds enough changes to release a new version, here are the 5 steps to follow:

  1. make sure you're releasing the correct version:
  • Breaking change, bump the first number (1.2.3 -> 2.0.0) - Major
  • New feature, bump the second number (1.2.3 -> 1.3.0) - Minor
  • Bug fixing, bump the third number (1.2.3 -> 1.2.4) - Patch
  • Unsure? Check SEMVER
  1. run npm version [your_version]. This will automatically:
  • checkout develop
  • create a branch named with the version number
  • update the version number
  • push it to GitHub
  1. have a look at the auto-generated CHANGELOG.md. Update some information manually if needed, commit and push it

  2. create two PRs:

  • one to merge [your_version] into develop (this will update the package.json version)
  • the other one to merge [your_version] into master (this will update the Storybook).
  1. run npm run deploy to push the new release to npm.

Important: don't delete your branch once merged. This will help keeping a clear history of previous changes.

Beta releases

Once you consider that the beta-vx branch holds enough changes to release a new version, here are the 2 steps to follow:

  1. bump the package.json version (last number)

  2. run npm run version-beta. This will automatically:

  • checkout beta-vx ( x being your version number )
  • commit any change
  • tag a new version
  • push it to GitHub
  • publish it to NPM