• Stars
    star
    5,438
  • Rank 7,561 (Top 0.2 %)
  • Language
    JavaScript
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A very intelligent browser based Webpack dashboard


About the Project

J.A.R.V.I.S. (Just A Rather Very Intelligent System) will put in your browser all the relevant information you need from your webpack build whether in dev or in prod.

Tons of features are on the roadmap but still, this beta version will improve the way you look at webpack-dev-server or webpack production build bundle, chunks and other output assets.

It is hugely inspired by other webpack dashboards and the core idea is not original, but here are some features:

Original Features:

  • Shows you the count of ES Harmony module imports which can be treeshakable and the CJS ones which are not.
  • Shows you how well your assets perform in 12 different connection types.
  • Google or Stackoverflow Search for programming errors in 1 button click.

Other Features:

  • Runs in the browser.
  • Beautified errors output.
  • Easy way figure out total assets size and individual bundles and chunks.
  • It's very beautiful.

Tech Stack:

  • Preact with Sass pre-processor.
  • Socket IO.
  • Polka Server.

Screenshot:

Installation

$ npm i -D webpack-jarvis

In your webpack config file:

const Jarvis = require("webpack-jarvis");

/* the rest of your webpack configs */

plugins: [
  new Jarvis({
    port: 1337 // optional: set a port
  })
];

In your browser open:

localhost:1337

and you are all set!

Options

Options are (optionally) passed in to the constructor

new Jarvis(options);

options.port

Type: Number
Default: 1337

The Jarvis dashboard will open on a localhost server at this port.

options.host

Type: String
Default: localhost

The Jarvis dashboard will attach to this host, e.g. 0.0.0.0.

options.watchOnly

Type: Boolean
Default: true

If set to false, then Jarvis will also run for non-watch builds, and keep running after the build completes.

options.packageJsonPath

Type: String
Default: process.cwd()

Jarvis will look inside this directory for your package.json.

Help & Contribute

Setting up the dev environment

Install Dependencies:

$ npm install

Run Jarvis in your browser, Jarvis root:

$ npm run watch

Finally, open a browser to http://localhost:1337!

On the roadmap:

  • Cleanup the hacky code in the client app, it's embarassing, I'm sorry!
  • Enforce best practices, structure and higher code quality standards.
  • Bundle size analyzer like feature in the table.
  • Build snippets page.
  • Build Oppurtunities Section to suggest loaders, plugins, etc. that can improve your build and bundle.

Note:

I am not entirely sure how many bugs you will catch while it's in beta, but what I know for sure is the whole app, especially the client Preact app can be dramatically improved, JS & CSS and structure wise as the whole thing has been built in a rush in a very hacky way.

Contributors

Thanks goes to these wonderful people (emoji key):


Zouhir ⚡️

💻 🤔

Luke Edwards

💻

Ari Picker

💻

Marius Niveri

💻

Gagan

📖

石发磊

📖

ZiYingMai

💻

rachmulvey

💻

Stephan Schneider

📖

Christopher Peng

💻

Francesco Soncina

💻

Jeremy Monson

💻

Gusten

💻

Tamas Sule

💻

remmy hume

💻

Michael Persson

📖

Zach Gawlik

💻 📖

Khachatur

💻

Timo M. Staudinger

💻

This project follows the all-contributors specification. Contributions of any kind are welcome!

Credits

License

MIT © Zouhir

More Repositories

1

lqip-loader

Low Quality Image Placeholders (LQIP) for Webpack
JavaScript
1,210
star
2

preact-habitat

Zero configuration Preact widgets renderer in any host DOM
JavaScript
518
star
3

lqip

Low Quality Image Placeholders (LQIP) Module for Node
JavaScript
433
star
4

preact-phiber

The 3kb alternative to React Fiber with the same API
CSS
30
star
5

lqip-cli

Node CLI for Low Quality Image Placeholders (LQIP)
JavaScript
26
star
6

preact-widgets-boilerplate

A boilerplate for creating portable Preact widgets that can be plugged into any web page!
JavaScript
26
star
7

browser-media-support

Your browser's container formats and codecs support in your pocket.
JavaScript
25
star
8

eslint-config-standard-preact

JavaScript
22
star
9

lqip-loader-example

JavaScript
14
star
10

express-es6-basic-auth-rest-api

JavaScript
13
star
11

matrix-hackernews-client

Preact HN with canvas background rendered off the main thread in a web worker
JavaScript
7
star
12

mojical

JavaScript
6
star
13

mediarecorder-polyfill

JavaScript
4
star
14

pull-to-refresh

JavaScript
4
star
15

blog2

JavaScript
2
star
16

widget-template

JavaScript
2
star
17

devfeeds

JavaScript, Frontend and Engineering Blogs I daily read 📖 ☕
2
star
18

vscode-northem-dark-theme

A north-bluish, dark clean and elegant syntax theme for VS Code
2
star
19

ai-tv

JavaScript
1
star
20

twitter-interactive

CSS
1
star
21

contoso-drive

Responsive dual-screen APIs demo
CSS
1
star
22

preact-widget-scripts

JavaScript
1
star
23

payment-request-demo

Preact \React app demonstrating Web Payments.
JavaScript
1
star
24

http-server-bench

Rust
1
star
25

preact-habitat-youtube

preact-habitat example and demo
JavaScript
1
star