Logo

dev-resources.site

for different kinds of informations.

Hacking WKWebview and WebContainers // or WebContainers are we there yet?

Published at
11/1/2024
Categories
javascript
rust
macos
webassembly
Author
jswhisperer
Categories
4 categories in total
javascript
open
rust
open
macos
open
webassembly
open
Author
11 person written this
jswhisperer
open
Hacking WKWebview and WebContainers // or WebContainers are we there yet?

I started writing about the shiny new wasm-y not quite open source tech called webcontainers by stackblitz, but having hacked the crap out them I reckon right now they aren't quite mature enough for production use.

Here's some of the rough edges you might hit...

  • They are on a private server, your project, firewall or company might block this hard depencie *.webcontainers.io and https://nr.staticblitz.com to name a couple I see.
  • For all the hype they do not seem able to actually listen to any request outside the webpage like a POST (more in a sec)
  • They are behind AWS Cloudfront (fine) but you can't edit the headers or CORs policies at all
  • they work around iframes which can be a basket of worms with permissions and policies like CSP.

and lastly I think it's worth having a look at the open issues of any library or project; that alone isn't the end all and be all of decision making. It is expected a new library get a surge of issues that need to be triaged.

Image description

The last indicator this isn't ready for prime time is if they are ignoring or don't have capacity to review PRs they might not be fully invested. Of course it's my duty to open PR's and contribute where I can.

Image description

I had a whole doc around embedded webview in a Rust lang context and my coo workaround. To summarise it was how WKWebview does not at all support navigator.credentials web api or the shiny new "Passkeys" not so quick read if you got a weekend to play here

macos Article's
30 articles in total
Favicon
Building a BLE Real-Time macOS Menu Bar App
Favicon
From Core Audio to LLMs: Native macOS Audio Capture for AI-Powered Tools
Favicon
New version for my osxiec project
Favicon
Setting Up NeoVim + LazyVim on My New Mac Mini M4 đŸ’ģ✨
Favicon
Mixing Objective-C and C++ in macOS to Build a Camera-Based Barcode Scanner
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Fixing docker's malware warning on macOS Sequoia
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Developing on MacOS - Best practices
Favicon
How to Transfer PostgreSQL Database from Local to Supabase on macOS
Favicon
Customize iTerm
Favicon
Using Vim Navigation (h, j, k, l) as Arrow Keys on Mac with Karabiner-Elements
Favicon
How to Run Safari Browser without CORS Restriction
Favicon
A python script to uninstall pkg on MacOS
Favicon
Synchronized 变量在不同操äŊœįŗģįģŸįš„ä¸åŒčĄŒä¸ē
Favicon
How to Build a macOS Barcode Scanner App Using SwiftUI and C++ Barcode SDK from Scratch
Favicon
Transform Your Terminal with eza: The Upgrade ls Deserved
Favicon
The Ultimate Hack to Simplify Ctrl and Cmd Shortcuts Between Windows and Mac
Favicon
ā¸­ā¸ąā¸žāš€ā¸”ā¸—āš€ā¸§ā¸­ā¸ŖāšŒā¸Šā¸ąāšˆā¸™ Container runtime Colima
Favicon
Resolving MongoDB Error When Starting with Homebrew on macOS
Favicon
Allowing any app on macOS
Favicon
Installing Go on Windows 11 in One Command
Favicon
How to Run Google Chrome without CORS Error
Favicon
Hot Keys on Mac
Favicon
Must-have apps and services in 2024
Favicon
App Permissions on macOS Sequoia
Favicon
Proxy macOS traffic + spoofDPI of direct connections
Favicon
Hacking WKWebview and WebContainers // or WebContainers are we there yet?
Favicon
How to Fix MySQL Not Running on macOS Sequoia 15.0
Favicon
How to Set Up MySQL to Autostart on macOS: A Step-by-Step Guide for Developers

Featured ones: