2.6.1 • Published 6 years ago

ty-puzzlejs v2.6.1

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

npm version Build Status

PuzzleJs Framework

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?

Traditional models are not enough because of lacking independence, performance and limitations.

  • Multiple teams working on same code makes everything harder to manage.
  • Slowest service defines the page speed always.
  • When backend is collecting data user browser is wasting time waiting for it.
  • Features can't be online as soon as it is fully developed and tested because of other teams futures are not ready yet.
  • You can't use different technologies expect 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 when it is starting for the first 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 being prepared and rendered on serverside.
  • Extensibility It is easy to extend PuzzleJs and your custom features to the framework.
  • Easy PuzzleJs makes it simple to build a gateway and storefront project.
  • Independent You can use any technology on your gateways, PuzzleJs is fully indepented from your technologies.
  • Scalable You can scale specific gateway when you need.
  • Fail-Safe You can still show your page to your users if any fragments fails to load.

Getting Started

Please check the guide for full documentation.

  1. Install Puzzlejs yarn add ty-puzzlejs

How PuzzleJs works?

Before request 1. Gateways start and exposes their fragments and gateway information from desired routes. 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 not closes the connection. Users are now able to see your website with static contents and placeholders. It also sends backend requests to gateways ti recieve rendered fragments. 2. When any fragment 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

Contributions

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

2.6.1

6 years ago

2.6.0

6 years ago

2.5.5

6 years ago

2.5.4

6 years ago

2.5.3

6 years ago

2.5.2

6 years ago

2.5.1

6 years ago

2.5.0

6 years ago

2.4.8

6 years ago

2.4.7

6 years ago

2.4.6

6 years ago

2.4.5

6 years ago

2.4.4

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.5

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.20

6 years ago

2.1.19

6 years ago

2.1.18

6 years ago

2.1.17

6 years ago

2.1.16

6 years ago

2.1.15

6 years ago

2.1.14

6 years ago

2.1.13

6 years ago

2.1.12

6 years ago

2.1.11

6 years ago

2.1.10

6 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0-beta.3

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

2.0.0

6 years ago

0.6.8

6 years ago

0.6.7

6 years ago

0.6.6

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1-yarn-fix

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago