⎇🍪️ async-cookies-api
Sketching an asynchronous JavaScript cookies API for documents and workers
At present the best starting point for understanding this API is the explainer. This API is inspired by and loosely based on the discussion at https://github.com/slightlyoff/ServiceWorker/issues/707 and elsewhere.
The document-based polyfill runs best in https page - the polyfill is also usable but some tests fail when run in http page due to its reliance on Secure cookie access.
There is also a related WICG discourse thread.