WebF presents a high-performance, cutting-edge web rendering engine built on top of Flutter, empowering web applications to operate natively within the Flutter ecosystem.
-
Adherence to W3C Standards: By leveraging HTML/CSS and JavaScript, WebF renders content on Flutter, ensuring impeccable alignment with standard browser rendering.
-
Compatible with Leading Front-End Frameworks: Given its compliance with W3C standards, WebF seamlessly integrates with popular front-end frameworks, including React and Vue.
-
Amplify Your Web Applications with Flutter: WebF's adaptability shines through its customization capabilities. Craft bespoke HTML elements using Flutter Widgets or enhance your application by integrating a JavaScript API sourced from any Dart library on the
pub.dev
registry. -
Authentic Web Development Environment: Experience a traditional web development setting with WebF. It facilitates DOM structure inspection, CSS style evaluations, and JavaScript debugging via Chrome DevTools.
-
Craft Once, Deploy Everywhere: Harness the versatility of WebF to design your web application and launch it across any Flutter-compatible device. What's more, maintain the flexibility to execute your apps within Node.js or web browsers, all from a unified codebase.
We envision providing web developers with an innovative web rendering engine, surpassing WebView in performance and adaptability across both mobile and desktop platforms.
WebF's journey is ambitious and enduring. We believe in the strength of collective effort. If you share our dream of a superior alternative to WebView for the future, your expertise could be invaluable to us.
Further, financial contributions can pave the way for erstwhile members of the Kraken team to rejoin our mission, bolstering our developmental pace and potential.
If you or your team are interested in supporting us, please contact @andycall on our Discord channel.
Each version of WebF will be maintained for the lifespan of three minor WebF releases. For instance, WebF 0.15.0 was released to be compatible with Flutter 3.10.x. Its support will conclude once WebF 0.18.0 is introduced. Any updates applied to versions 0.16.x and 0.17.x will be cherry-picked for the subsequent update of 0.15.x.
This ensures that users can reliably receive updates for three minor WebF versions without the necessity to upgrade the Flutter version in their app.
WebF | Flutter |
---|---|
>= 0.12.0 < 0.14.0 |
3.0.5 |
>= 0.14.0 < 0.15.0 |
3.3.10 and 3.7.3 |
>= 0.15.0 < 0.16.0 |
3.10.x |
>= 0.16.0 < 0.17.0 |
3.13.x and 3.16.x and 3.19.x and 3.22.x |
![image](https://private-user-images.githubusercontent.com/4409743/271213445-2d5cf5a1-e670-424b-8766-324f475bbc0a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1Mzc3OTYsIm5iZiI6MTcyMzUzNzQ5NiwicGF0aCI6Ii80NDA5NzQzLzI3MTIxMzQ0NS0yZDVjZjVhMS1lNjcwLTQyNGItODc2Ni0zMjRmNDc1YmJjMGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTNUMDgyNDU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWU5M2YyNDk4N2FjOWI4YWM3MWE4ODhlOGQ3ODc5MDFiOGYwMjdkN2ExY2ZhZjEyYWZkZWQzNWZiMDFlODU2OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.tC0qytfa2TIHpP9PAAYD0PIbj-PLE-JvodE0HSDw8oY)
Below is the relationship between the various Flutter and WebF versions:
![image](https://private-user-images.githubusercontent.com/4409743/274202351-8cace8da-ac97-4908-b970-6b52450cb4cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1Mzc3OTYsIm5iZiI6MTcyMzUzNzQ5NiwicGF0aCI6Ii80NDA5NzQzLzI3NDIwMjM1MS04Y2FjZThkYS1hYzk3LTQ5MDgtYjk3MC02YjUyNDUwY2I0Y2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTNUMDgyNDU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzU1NzgxNjM0YTVkODQyYmZhMmRhMTVlNDViMThkODBlNDU2ZGExYTNhN2E4OWM3YTNhMmRlM2E3YzU4OTJlMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Iz2OVAuisY303l-4vycwDp_MOfC6_N8hj5xziUUcN7c)
All front-end frameworks based on the WhatWG DOM standard are supported; this time, we are using Vue as an example.
ES6 modules are not supported yet, so Vite is not supported.
vue create app
cd app
npm run serve
And the Vue development server will be hosted at http://<yourip>:8080/
.
packages.yaml
dependencies:
webf: <lastest version>
import
import 'package:webf/webf.dart';
import 'package:webf/devtools.dart';
init
void main() {
runApp(MyApp());
}
@override
Widget build(BuildContext context) {
final MediaQueryData queryData = MediaQuery.of(context);
final Size viewportSize = queryData.size;
return Scaffold(
body: Center(
child: Column(
children: [
WebF(
devToolsService: ChromeDevToolsService(), // Enable Chrome DevTools Services
viewportWidth: viewportSize.width - queryData.padding.horizontal, // Adjust the viewportWidth
viewportHeight: viewportSize.height - queryData.padding.vertical, // Adjust the viewportHeight
bundle: WebFBundle.fromUrl('http://<yourip>:8080/'), // The page entry point
),
],
),
));
}
flutter run
WebF provides a rendering engine which follows the W3C standards like web browsers do. It can render HTML/CSS and execute JavaScript. It's built on top of the flutter rendering pipelines and implements its own layout and painting algorithms.
With WebF, Web Apps and Flutter Apps share the same rendering context. It means that you can use Flutter Widgets to define your HTML elements and embed your Web App as a Flutter Widget in your flutter apps.
By contributing to WebF, you agree that your contributions will be licensed under its Apache-2.0 License.
Read our contributing guide and let's build a better WebF project together.
Thank you to all the people who already contributed to OpenWebF and OpenKraken!
Copyright (c) 2022-present, The OpenWebF authors.