• This repository has been archived on 28/Feb/2018
  • Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    JavaScript
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

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

Repository Details

[Deprecated]. Please move to codesandbox.io.

Webpackbin has been deprecated

Instead of working on two similar services Codesandbox.io creator and me are putting our efforts into one project. Please move on to Codesandbox.io for a much better experience than Webpackbin. Very sorry if this makes you sad, but promise that you will feel better when you move on :-)

The domain of http://webpackbin.com has expired, sorry about that, but was too much money to pay for keeping it up for another week. If you need your bin code, you can go to: https://webpackbin-prod.firebaseapp.com/ for now. Move it to http://codesandbox.io :-)


webpackbin

A service to share and teach code, using webpack to bundle the code

Architecture

Webpackbin depends on three separate parts.

The webpack-dll service receives a request for one or multiple packages that should be bundled together into a Webpack DLL. A CDN will hold on to the manifest.json and dll.js files created.

The webpack-sandbox service creates a webpack session based on your current webpackbin session. It is what bundles your actual bin code together. It will fetch the manifest.json file to produce references to the external packages code. This service also runs the result of your BIN code, presented in an iFrame on Webpackbin. Any updates of the BIN goes to this service and then Webpackbin refreshes the iFrame. The bundled BIN code injects a script to the dll.js file.

The Webpackbin client connects to Firebase to create new bins, update current state of bins, run LIVE sessions etc. It connects to webpack-sandbox to run the code.

How to run the project

webpack-dll

  1. git clone https://github.com/cerebral/webpack-dll.git
  2. npm install
  3. npm start
  4. Runs service on localhost:5000

This will run the service in DEBUG mode. You will be able to open localhost:5000 in the browser to see a list of bundled DLLs and investigate their manifests.

webpack-sandbox

  1. git clone https://github.com/cerebral/webpack-sandbox.git
  2. npm install
  3. npm start
  4. Runs service on localhost:4000

The sandbox does not have any dashboard, it just needs to run in the background.

webpackbin

  1. git clone https://github.com/cerebral/webpackbin.git
  2. npm install
  3. npm start
  4. Runs client on localhost:3000

How to contribute

Webpackbin is built using the upcoming cerebral 2 framework, using Inferno as the view layer. It is a framework that handles the complexities of application like Webpackbin very well.

The client is built using Webpack and it will lazy load the correct client (desktop or mobile) when it loads. The components folder does not have any business logic. The components are focused on only rendering the application and each component connects to any state or signals it needs. There is almost no props passing.

The modules folder holds the business logic, contained in signals, actions, chains and factories. Cerebral 2 is a highly composable framework and can describe most of its side effects and state changes in a declarative manner.

More Repositories

1

cerebral

Declarative state and side effects management for popular JavaScript frameworks
JavaScript
1,988
star
2

overmind

Overmind - Frictionless state management
TypeScript
1,576
star
3

classy-ui

An automatically optimized design system
TypeScript
176
star
4

urlon

JSON-like object notation that can be embedded in URLs
JavaScript
125
star
5

addressbar

Makes the addressbar of the browser work just like a normal input
JavaScript
84
star
6

webpack-packager

A service that packages DLL bundles and manifests
JavaScript
59
star
7

webpack-dll

A service that converts a package into a DLL and manifest
JavaScript
49
star
8

url-mapper

Take a URL and map to functions, parsing params
JavaScript
42
star
9

overmind-website

The Overmind website
37
star
10

cerebral-debugger

Debugger for Cerebral
JavaScript
33
star
11

enhanced-react-style

Split dynamic and static styles
TypeScript
13
star
12

repo-cooker

JavaScript
12
star
13

webpack-sandbox

A service that takes code and DLL manifests and produces a server side bundling process
JavaScript
10
star
14

jsblog

secret
JavaScript
6
star
15

cerebral-todomvc

Classic todomvc demo application powered with cerebral
5
star
16

firebase-functions-mock

Work locally with firebase functions
JavaScript
5
star
17

firebase-functions-boilerplate

A boilerplate to work with firebase-functions locally
JavaScript
4
star
18

new-api-pattern-demo

Just a repo to show off next API and pattern
JavaScript
4
star
19

project-x

Experimenting with mobx and chained API for full type safety
TypeScript
3
star
20

classy-ui-demo-library

A demo library using classy-ui
TypeScript
2
star
21

tutorial

The Cerebral tutorial application
JavaScript
1
star