@puzzle-js/core
<p align="center"> <img src="https://image.ibb.co/jM29on/puzzlelogo.png" alt="PuzzleJs Logo" width="300" /> </p>
Last updated a month ago by acanguven .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @puzzle-js/core 
SYNC missed versions from official npm registry.

PuzzleJs Logo

PuzzleJs Framework

Micro frontend framework for scalable and blazing fast websites.

CircleCI npm npm Known Vulnerabilities codecov

New documentation and demo is under development

Live Demo - Repository

PuzzleJs makes it easy to create gateways and storefront projects that talk each other. It is inspired by Facebook's BigPipe, developed with lots of great features and passion.

Why?

The traditional model is very inefficient for modern websites.

  • Multiple teams working on the same code make everything harder to manage.
  • Time to first byte is as fast as the slowest api.
  • While backend is collecting data, user browser is wasting time waiting for first byte.
  • Features can't be online as soon as it is fully developed and tested, because other teams' features are not ready yet.
  • You can't use different technologies except from the existing one.
  • You can't scale specific process, because you are dependent to whole system.

Features

  • First Time To Byte PuzzleJs compiles html template into javascript function on compile time. This operation is fully independent from the request, so PuzzleJs can send the first chunk using this function.
  • Seo Friendly PuzzleJs is fully SEO friendly, as everything is prepared and rendered on server side.
  • Extensibility It is easy to extend PuzzleJs with your custom functions.
  • Easy You can easily create a gateway or storefront and connect them by providing a configuration file.
  • Independent You can use any technology on your gateways, PuzzleJs is fully independent from your technologies. ReactJs, Vue or anything else.
  • Scalable PuzzleJs can create storefront and gateways independent from each other. So you can easily scale single project on Dockerized environments.
  • Fail-Safe When your api required by a fragment is down, PuzzleJs guarantees other page fragments will be still working.

Getting Started

Checkout quick start guide for fastest implementation.

  1. Create one or more gateway projects.
  2. Create fragments and api on gateway projects.
  3. Create a storefront project and connect gateways with a config file.
  4. Create pages on storefront project and provide html files with desired fragments.

Please check the guide for full documentation.

How PuzzleJs works?

Compile time

  1. Gateways start exposing their fragments, api and gateway information.
  2. Storefront fetches registered gateways' information.
  3. Storefront downloads and caches required fragments, dependencies and assets.
  4. Storefront compiles html into in memory javascript function for fastest template rendering.

On Request

  1. Storefront sends a chunked response with the compiled function but doesn't close the connection. Users are now able to see your website with static contents and placeholders. It also sends backend requests to gateways to recieve rendered fragments.
  2. After any fragment is recieved from gateway, it sends it to browser as a chunk and replaces previously sended placeholder with the content.
  3. When all fragments are sent, PuzzleJs closes connection.

Documentation

Read the guide to familiarize yourself with how PuzzleJs works.

Changelog

Showcase

Contributions

Feel free to contribute to PuzzleJs, please read Contributions for detailed information.

Current Tags

  • 2.7.3                                ...           latest (a month ago)

55 Versions

  • 2.7.3                                ...           a month ago
  • 2.7.2                                ...           2 months ago
  • 2.7.1                                ...           4 months ago
  • 2.6.7                                ...           6 months ago
  • 2.6.6                                ...           6 months ago
  • 2.6.4                                ...           6 months ago
  • 2.6.3                                ...           7 months ago
  • 2.6.2                                ...           7 months ago
  • 2.6.1                                ...           7 months ago
  • 2.6.0                                ...           7 months ago
  • 2.4.2                                ...           7 months ago
  • 2.4.1                                ...           7 months ago
  • 2.4.0                                ...           7 months ago
  • 2.3.6                                ...           7 months ago
  • 2.3.5                                ...           7 months ago
  • 2.3.4                                ...           7 months ago
  • 2.3.3                                ...           7 months ago
  • 2.3.2                                ...           7 months ago
  • 2.3.1                                ...           7 months ago
  • 2.3.0                                ...           7 months ago
  • 2.2.2                                ...           8 months ago
  • 2.2.1                                ...           8 months ago
  • 2.2.0                                ...           8 months ago
  • 2.1.0                                ...           8 months ago
  • 2.0.3                                ...           8 months ago
  • 2.0.2                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.1.7                                ...           9 months ago
  • 1.1.6                                ...           9 months ago
  • 1.1.5                                ...           9 months ago
  • 1.1.4                                ...           9 months ago
  • 1.1.3                                ...           9 months ago
  • 1.1.2                                ...           9 months ago
  • 1.1.0                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0-beta.21                                ...           9 months ago
  • 1.0.0-beta.20                                ...           9 months ago
  • 1.0.0-beta.19                                ...           9 months ago
  • 1.0.0-beta.18                                ...           9 months ago
  • 1.0.0-beta.17                                ...           9 months ago
  • 1.0.0-beta.16                                ...           9 months ago
  • 1.0.0-beta.15                                ...           9 months ago
  • 1.0.0-beta.14                                ...           9 months ago
  • 1.0.0-beta.12                                ...           9 months ago
  • 1.0.0-beta.11                                ...           9 months ago
  • 1.0.0-beta.10                                ...           9 months ago
  • 1.0.0-beta.9                                ...           9 months ago
  • 1.0.0-beta.8                                ...           9 months ago
  • 1.0.0-beta.7                                ...           9 months ago
  • 1.0.0-beta.6                                ...           9 months ago
  • 1.0.0-beta.5                                ...           9 months ago
  • 1.0.0-beta.4                                ...           9 months ago
  • 1.0.0-nr.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (28)
Dev Dependencies (39)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |