Cloudflare to Introduce Apps with Workers

Beta test of Apps and Workers joint usage by Cloudflare had begun 
19 November 2018   1800

Cloudflare talked about the start of beta testing of Cloudflare Workers embedded scripts in web applications using Cloudflare Apps tools. The created solutions can be placed in the Cloudflare Marketplace store, where they will be moderated and a security check.

Application developers used Cloudflare Apps to integrate JavaScript, HTML, CSS, and modifications of Cloudflare settings such as DNS to websites. With the start of beta testing, they got the opportunity to experiment with personalization, A / B testing, security, content checking and localization.

To add code to the application, simply place the link to the script in the install.json file:

{
	"resources": [...],
	"hooks": [...],
	"workers": [{
		"src": "./worker.js"
	}]
}

The introduction of variables is also available with a link in the Workers script. They may contain the tokens necessary for installing the application.

// inside src/worker.js
addEventListener('fetch', event => {
  event.respondWith(workerFn(event.request))
  let someOptionFromInstall = INSTALL_OPTIONS.UserAgents // UserAgents was selected by siteowner in previewer
})

Cloudflare unveiled a stable version of Workers for cloud administration of web applications in JavaScript in mid-March 2018. The service allows you to deploy JS-scripts on the company's cloud network within 30 seconds. At the end of September 2018, Cloudflare launched the “key-value” repository of Workers KV. Cloudflare experts claim that Workers provides low latency data reading and allows you to create applications that are comparable in performance to content delivery networks (CDNs).

Frontend News Digest 1 - 7.02

How to Create a WP Site with JAMstack, formatting dates in JS with Intl.DateTimeFormat, Edge DevTools now supports more languages and more
07 February 2020   432

Greetings! I hope your week went great! Here's new frontend technologies news digest.

Check the MongoDB One-to-Many Relationship tutorial with Mongoose examples, the CO2 emission of the websites new NodeJS update and other interesting things

Guides

  • How To Create A Headless WordPress Site On The JAMstack

Tutorial on simple way to create a WordPress site

  • MongoDB One-to-Many Relationship tutorial with Mongoose examples

Guide about Mongoose - the most popular way to use MongoDB from Node.js.

  • Formatting dates in JavaScript with Intl.DateTimeFormat

Check the modern way to format dates in a region friendly way using native APIs, as now supported all major browsers and both Node

Articles

  • CO2 emissions on the web

Learn the lever of CO2 emissions websites produce by consuming a lot of energy for its activity

  • Bringing the Microsoft Edge DevTools to more languages

Now Edge's DevTools support more languages

Video

  • Chrome 80 - What’s New in DevTools

Updates

  • massCode

Snippets manager for developers

  • micro-jaymock

Tiny API mocking microservice for generating fake JSON data

  • Node v13.8.0 (Current)

Another update of popular solution

  • Electron 8.0.0

Major release of popular JS based solution