Termsslug: service-worker

Service Worker

A script that runs in the background of a web application, handling asynchronous tasks independently.

Curated Intelligence

2 items · Page 1/1
Simon Willison 博客T2·Tools
62 pts
Datasette Lite Rewrite Runs Full Python App in Browser

Simon Willison has released a complete rewrite of Datasette Lite that uses service workers and Pyodide to run the full server-side Datasette Python application directly in the browser, now nearly indistinguishable from the real thing. Crafted URLs can load any SQLite, JSON, CSV or SQL data, pin a Datasette release from PyPI or a GitHub commit, tag or branch, choose from over 100 SQLite versions, and install plugins from PyPI or wheel URLs. It is especially useful for sharing serverless demo links for work-in-progress features or bug reproductions.

Hugging Face BlogT1·Tools
42 pts
Architecting Transformers.js in Chrome Extensions

Hugging Face released a tutorial on integrating Transformers.js into Chrome extensions under Manifest V3 constraints. The core architecture places model inference and state management in the background service worker, with UI and content scripts acting as lightweight clients via messaging. It replicates the design of the Gemma 4 E2B-based browser assistant, addressing challenges in model loading and runtime isolation.