openwebf/webf

Bring JavaScript and Web Dev to Flutter

2.3K stars154 forksUpdated Jan 26, 2026
npx skills add openwebf/webf

README

OpenWebF

Bring JavaScript and Web Dev to Flutter

Learn WebF | Developer Guide | Add WebF to Flutter

What is WebF?

WebF is a W3C/WHATWG-compliant web runtime for Flutter that implements HTML, CSS, and the DOM, running JavaScript in a browser-like environment. It's not a browserโ€”it's an application runtime optimized for building native apps using web technologies.

Unlike traditional WebViews, WebF features:

  • A custom Flutter-based rendering engine rather than relying on system browsers
  • Direct JavaScript-to-native communication without traditional bridge limitations
  • Ability to embed Flutter widgets as HTML elements within the app UI
  • An application-first design with a persistent JavaScript context

Why WebF?

Build Fast. Ship Fast. Run Fast.

WebF seamlessly glues Web, Flutter, and Native platforms together, enabling you to:

  • ๐Ÿš€ Build Fast: Develop with React, Vue, Svelte, Solid + TailwindCSS, build with Vite or Webpack, and leverage the entire npm ecosystem - it all just works in WebF
  • ๐Ÿ“ฆ Ship Fast: Deploy once across all Flutter-supported platforms (iOS, Android, Windows, macOS, Linux) from a single codebase
  • โšก Run Fast: Experience native-like performance with sub-100ms cold starts and 60fps animations that outpaces traditional WebView solutions

Key Features

Web Standards Compliance

  • ๐Ÿ”ท Modern JavaScript (ES6+) - QuickJS runtime with async/await, Promises, modules, optional chaining, and template literals
  • ๐Ÿ”ท Essential DOM APIs - Element creation/manipulation, event listeners (capture/bubble), query selectors, classList, custom elements, MutationObserver
  • ๐Ÿ”ท Comprehensive CSS Support - Flexbox layouts, positioned layouts (absolute/relative/fixed/sticky), flow layouts, colors, gradients, transforms (2D/3D), transitions, animations, CSS variables, media queries, pseudo-classes
  • ๐Ÿ”ท Web APIs - fetch, XMLHttpRequest, WebSockets, localStorage, sessionStorage, Canvas 2D, SVG, URL parsing, timers

Framework & Tooling Compatibility

  • โš›๏ธ Frameworks: React, Vue, Svelte, Preact, Solid, Qwik - your existing components and hooks work without modification
  • ๐Ÿ› ๏ธ Build Tools: Vite (recommended), Webpack, esbuild, Rollup, Parcel - HMR, tree-shaking, code splitting all supported
  • ๐ŸŽจ Styling: Tailwind CSS v3, Sass/SCSS, PostCSS, CSS Modules, Styled Components, Emotion
  • ๐Ÿ“ฆ npm Ecosystem: Access to thousands of npm packages and the entire JavaScript ecosystem

Flutter Integration

  • ๐Ÿ”— Hybrid UI - Embed Flutter widgets as HTML custom elements with native performance and platform-appropriate appearance
  • ๐ŸŽฏ Advanced Gestures - Handle complex touch interactions with native precision via FlutterGestureDetector
  • ๐Ÿ“ฑ Native Plugins - Access Flutter plugins (Share, Deep linking, and more) as npm packages
  • ๐Ÿ—๏ธ Cupertino Components - iOS-style native components without CSS emulation

Developer Experience

  • ๐Ÿ” Chrome DevTools - Console, DOM inspection, and network monitoring
  • ๐Ÿ“Š In-App DevTools - FPS, frame timing, and memory monitoring
  • ๐Ÿ”ฅ Hot Module Replacement - Full HMR support that preserves state across updates
  • โšก Async Rendering - Batched DOM updates that are 20x cheaper than browser implementations

Deployment & Performance

  • ๐Ÿš€ Over-the-Air Updates - Deploy instantly via CDN without app store reviews (compliant with Apple App Store and Google Play Store policies)
  • โšก Fast Startup - Production cold start < 100ms, development 200-300ms
  • ๐ŸŽฎ Smooth Animations - 60fps/120fps CSS transform animations with hardware acceleration
  • ๐Ÿ’พ Optimized Memory - Typical 10-30MB JavaScript heap with shared rendering context
  • ๐Ÿ”’ Security - Application sandbox, keychain/keystore encrypted storage with biometric protection, HTTPS enforcement

How It Works

Architecture Overview

WebF combines two complementary layers to deliver a complete web runtime:

1. Web Standards Layer

  • **Qu

...

Read full README

Publisher

openwebfopenwebf

Statistics

Stars2.3K
Forks154
Open Issues13
LicenseGNU General Public License v3.0
CreatedJul 19, 2022