/matrix-hackernews-client

Preact HN with canvas background rendered off the main thread in a web worker

Primary LanguageJavaScript

Matrix Hackernews Client

HN Demo app renders 2D canvas in web worker - https://digital-rain-hn.zouhir.codes

About

This is a personal experiment to render canvas animation off the main thread using Web Workers and transferControlToOffscreen

This spec is fairly new and not widely supported yet, more info on MDN

Tech Stack & Credits

  • This app uses ⚛️ Preact via preact-cli
  • HN API hosted on firebase by some awesome person
  • Inspired by a conversation with my awesome work colleague Bo Cupp
  • Canvas animation is from this Codepen by Ebram Marzouk.