Saturday, November 21, 2026

AI protein folding: Fold.id => AlphaFold

as described in excellent book "Infinity Machine"

Fold.it

is used for self-training of 

AlphaFold — Google DeepMind

that lead to Nobel-prize winning breakthroughs and huge contribution to science an society

Some "games" could be very useful!

Web Push API

 Push API

The Push API is a W3C specification that allows application servers to send asynchronous, encrypted messages to web applications via a push service. These messages are delivered directly to a Service Worker running in the background of the user agent (browser), enabling the web application to handle updates, sync state, or display notifications even when the web application or browser window is closed or inactive.

Purpose

  • Asynchronous Communication: Enables servers to reach out to a user agent with time-sensitive data when it becomes available, rather than forcing the browser to constantly poll the server.

  • Background Engagement: Allows web applications to wake up via a Service Worker in response to external events (such as an incoming call or message), bridging the gap between web apps and native app capabilities.

  • Offline Resilience: If a user is temporarily offline, the push service securely holds and queues messages until the user agent becomes reachable again.

Key Functionality Described

  • PushManager Interface: Provides methods to interact with the push service:

    • subscribe(options): Requests permission and creates a new push subscription.

    • getSubscription(): Retrieves an existing active push subscription.

    • permissionState(options): Checks the current permission state for push notifications.

  • PushSubscription Interface: Represents an active subscription context, exposing properties like the push endpoint URL, expiration time, and cryptographic keys (p256dh and auth) used via getKey() for message encryption (RFC8291).

  • Service Worker Events (onpush & onpushsubscriptionchange):

    • push: Fired on the ServiceWorkerGlobalScope when a push message arrives, providing access to payload data through the PushMessageData interface (text(), json(), arrayBuffer(), etc.).

    • pushsubscriptionchange: Handles instances where a subscription expires, is revoked, or is refreshed outside of the application's immediate control.

  • Declarative Push Messages: Supports parsing specific JSON structures (web_push: 8030) that allow user agents to display notifications natively without needing to spin up or involve a service worker script.