Skip to content

CodeEditorLand/Worker

Worker

🍩

+

🏞️


Worker 🍩

Web applications that lose authentication state on network drops force users to re-authenticate. Tokens stored in plaintext are accessible to any script running on the page.

"Offline-capable. Auth tokens encrypted. Auto-refreshed."

License: CC0-1.0 TypeScriptNPM Version

The editor shell stays functional and authenticated even when the network drops. Auth tokens are AES-GCM encrypted, requests are HMAC-signed, and tokens refresh automatically without user action. Caching, offline support, and dynamic CSS imports all managed through the Service Worker layer.


What It Does 🔐

  • AES-GCM encrypted auth. Tokens stored with hardware-backed encryption, not plaintext.
  • HMAC-signed requests. Every request to backend Workers is cryptographically signed.
  • Auto token refresh. Tokens refresh automatically without user interaction.
  • Offline support. The editor shell works without a network connection.

In the Ecosystem 🍩 + 🏞️

graph LR
classDef worker fill:#f9f,stroke:#333,stroke-width:2px;
classDef client fill:#9cf,stroke:#333,stroke-width:2px;
classDef cache fill:#cfc,stroke:#333,stroke-width:1px;

subgraph "Client (Browser)"
Client["Client Application"]:::client
end

subgraph "Service Worker"
SW["Service Worker"]:::worker
CoreCache["CACHE_CORE"]:::cache
AssetCache["CACHE_ASSET"]:::cache
end

Client -- Fetch /Application/ --> SW
SW -- Network-first --> CoreCache
CoreCache -- Return cached or network --> SW

Client -- Import *.css --> SW
SW -- JS module response --> Client
Client -- Create <link> --> Client
Client -- Fetch CSS --> SW
SW -- Cache-first --> AssetCache
AssetCache -- Return CSS --> SW
SW -- CSS applied --> Client
Loading

Development 🛠️

Worker is a component of the Land workspace. Follow the Land Repository instructions to build and run.


License ⚖️

CC0 1.0 Universal. Public domain. No restrictions. LICENSE


See Also

Funding & Acknowledgements 🙏🏻

Code Editor Land is funded through the NGI0 Commons Fund, established by NLnet with financial support from the European Commission's Next Generation Internet programme, under grant agreement No. 101135429.

The project is operated by PlayForm, based in Sofia, Bulgaria.

PlayForm acts as the open-source steward for Code Editor Land under the NGI0 Commons Fund grant.

Land PlayForm NLnet NGI0 Commons Fund
Land PlayForm NLnet NGI0 Commons Fund

Project Maintainers: Source Open (Source/Open@Editor.Land) | GitHub Repository | Report an Issue | Security Policy

About

Worker 🍩 + Land 🏞️

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors