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

swsui

v0.2.10-SNAPSHOT.479

Published

React UI for [Kiali](https://github.com/kiali/swscore).

Downloads

25

Readme

:toc: macro :toc-title:

toc::[] = SWS UI image:https://coveralls.io/repos/github/swift-sunshine/swsui/badge.svg?branch=master[Coverage Status, link=https://coveralls.io/github/swift-sunshine/swsui?branch=master]

== Introduction

A UI for the Swift-Sunshine Istio Observability Project

== Technologies

  • React.js
  • TBD

== Quick Start [source,shell]

npm install npm start

A new browser window should automatically open. But, if it doesn't then use: http://localhost:3000

This launches a development environment that instantly reloads any changes to the browser for rapid development.

== Developing

When developing, is usual to run this application outside of https://github.com/swift-sunshine/swscore[swscore].

Is possible to proxy the API requests without having to push the changes to swscore. Add the https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#proxying-api-requests-in-development[proxy] property to package.json with the url of the swscore. [source, json]

{ "name": "swsui", "version": "0.2.1", "proxy": "http://sws-istio-system.127.0.0.1.nip.io", "bugs": { ...

Run npm start and try it! [source, bash]

$ curl -u jdoe:password http://localhost:3000/api Namespaces: [default istio-system kube-public kube-system myproject openshift openshift-infra openshift-node]

Namespace: default Services [docker-registry kubernetes router]

Service Name: docker-registry Service Labels: docker-registry = default Type: ClusterIP ...

WARNING: The proxy will only serve requests without the text/html accept header, using the browser directly won't work.

== Production Builds Use npm run build which will bundle the build artifacts using webpack into the build directory.

== Directory Structure

  • src : Source and test code
  • src/assets : Images and other assets
  • src/components : Stateless components (pure functions)
  • src/pages : Top level pages and nested components
  • stories: Storybook files
  • build: Production build output
  • public: home of index.html

== Styling PatternFly is the main UI components framework. It defines style based on SASS preprocessor. All Patternfly build assets are copied to src. The App.scss file will include all PatternFly Sass along with PatternFly React Sass extensions. Once Sass compiles, the resulting CSS can be found in src/css/App.css.

Note: Only static assets which are import 'ed into your application will be included in your resulting build output.

== Testing To run the tests: [source,shell]

npm test

Note: for OS/X users testing requires watchman to be installed [source,shell]

brew install watchman

== For Storybook Components [source,shell]

npm run storybook http://localhost:6006

== General

This project was bootstrapped with https://github.com/facebookincubator/create-react-app[create-react-app]

== License and Copyright See the link:./LICENSE[LICENSE file].