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

@ied/dashboard

v1.0.0-beta.8

Published

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Downloads

8

Readme

styled with prettier

This project was bootstrapped with Create React App.

How to initialize a new project ?

1. Clone this repository

git clone [email protected]:inextensodigital/react-boilerplate.git my-project

2. Switch the remote to your new project repository

git remote remove origin
git remote add origin [email protected]:inextensodigital/my-project.git

3. Create and protect dev and master branches

4. Edit pusher.json config to match your project infos

{
  "type": "front-end",
  "domain": "inextenso.io",
  "appName": "react-boilerplate",
  "env": ["fr", "dk"]
}

Sentry

If you're using this boilerplate you just need to update the config url from step 3, if you want to add Sentry to your project follow this guide.

How to ?

  1. Add Raven to your project index.html, it's our client for sending reports to Sentry
+ <script src="https://cdn.ravenjs.com/3.18.1/console/raven.min.js" crossorigin="anonymous"></script>
  1. Add Raven global to your .eslintrc
+ "globals": {
+   "Raven": true
+ }
  1. Initialize Raven in your root index.js with the correct project url
+ if (process.env.NODE_ENV === 'production') {
+   const options = {
+     release: process.env.REACT_APP_RELEASE,
+     tags: {
+       'app.env': process.env.REACT_APP_ENV,
+       'app.release': process.env.REACT_APP_RELEASE,
+     },
+   }
+   Raven.config(
+     'https://[email protected]/226827',
+     options,
+   ).install()
+ }
  1. Use componentDidCatch at the root component it will catch any error in the components tree
+ componentDidCatch = (error, info) => {
+   Raven.captureException(error, {
+     extra: info,
+   })
+   console.error(error, info)
+ }

Redux

If you're using Redux on your project you can add a middleware to get more insight.

Code styling

We follow the javascript rules published by airbnb with some adjustments you can explore here.

CI/CD

In order to have a good continuous integration we aim to follow A successful Git branching model, by Vincent Driessen.

All branches on the upstream will be tested and deployed to an S3 bucket automatically in order to provide a testable version of the work in progress at any time.

Infrastructure

S3

All versions of an application are deployed to the same AWS S3 bucket at different paths.

my-bucket/master/FR
my-bucket/master/DK
my-bucket/dev/FR
my-bucket/dev/DK

Cloudfront

Cloudfront is responsible to expose the application to the web, each applications as its own distribution.

Libraries

A non exhaustive list of libraries we love, and we have crash tested.

Client

  • redux Predictable state container for JavaScript apps
  • react-relay: Relay is a JavaScript framework for building data-driven React applications
  • react-transition-group: An easy way to perform animations when a React component enters or leaves the DOM
  • react-router-dom: Declarative routing for React
  • styled-components: Visual primitives for the component age 💅
  • material-components: Modular and customizable Material Design UI components for the web
  • date-fns: Modern JavaScript date utility library
  • marked: A markdown parser and compiler. Built for speed

Server

  • express: Fast, unopinionated, minimalist web framework for node
  • graphql-tools: Build and mock your GraphQL.js schema using the schema language

Both

  • faker: Generate massive amounts of fake data in Node.js and the browser
  • query-string: Parse and stringify URL query strings