Skip to content

Releases

WebFront 1.3.0

Choose a tag to compare

@ambroise-leclerc ambroise-leclerc released this 29 Nov 03:52
0fab9f8

WebFront 1.3 ships with developer environment 1.3.0. The developer environment gains inspectors of the running application
(registered functions, browsers and tasks, watches declared with app.watch, locked packages, the bridge), which an agent can
also read through MCP; one process can serve several independent users with application spaces, under a sub-path of a site;
a plain interface directory can be embedded from CMake; and the BDD framework splits into lighter headers. It has breaking
changes: Ctrl+C in the terminal, custom frontends that prove their view, the reserved webfront.inspector. names and external
tools that write the project; each entry below gives its migration.

Breaking

  • In the developer environment's terminal, Ctrl+C no longer interrupts a command nor clears the line: press Escape (with no text selected) or the terminal's Stop button; the interruption is unchanged (exit code 130, webfront.commands.cancel, the grace period of scripts, status interrupted), its messages say interrupted (#721, docs/DEVELOPER_ENVIRONMENT.md).
  • A custom frontend whose open() takes const ViewLaunch& declares static bool providesViewProof(), true when it gives the proof to its view and false otherwise, or the developer environment no longer compiles with it: undeclared, its proven view would leave project writes and C++ commands unguarded (#680, ADR-027, docs/FRONTENDS.md).
  • cppFunction (and Space::cppFunction) refuses the names starting with webfront.inspector., reserved to the inspectors, with std::invalid_argument: rename such a function, and its webFront.cppFunction(...) calls in the page, to a name of your own (#680, ADR-027).
  • An external tool that writes the project (webfront.developer.* writes) or starts terminal commands (webfront.commands.start, cancel) through the bridge is refused with webfront.inspector.denied when the frontend proves its view: run it in that view, use MCP automation, or set trustLoopbackClients knowingly (#680, ADR-027, docs/DEVELOPER_ENVIRONMENT.md).

Added

  • Copy, paste, cut and select all in the terminal of the developer environment with the system's shortcuts, Ctrl+C/V/X/A (Cmd on macOS), on CEF, WebView2, WebKitGTK, WKWebView and a system browser: they no longer become control characters, and a paste of several lines still runs them one after the other (#721, docs/DEVELOPER_ENVIRONMENT.md).
  • Open the inspectors from the WebFront tab's menu, floating in the page or detached to a native window: Functions (TypeScript signatures, calls, failures, durations; app.registeredFunctions() in C++), Browsers and tasks, Packages (the lock as a tree with wf why chains) and Bridge (webFront.ready, pending calls, rejected Promises) (#680, #681, #683, #684, ADR-027, docs/DEVELOPER_ENVIRONMENT.md).
  • Declare watches with app.watch(name, source), whose handle removes the watch, and explore them in the Watches panel as a tree refreshed while the interface runs, by pages, with a pause and the changed values highlighted; a distribution build registers nothing (#680, #682, #723, ADR-027, docs/WATCHES.md).
  • Choose how a watch reaches its object (a visitor under your lock, a reference on its executor, a copy, a source owning its state), page a large container with inspect::PagedSource, and edit a writable watch (Visit<T>) in place, applied only if the target still shows what was displayed (#682, ADR-027, docs/WATCHES.md).
  • Let an agent read the running application through MCP with the state grant (webfront.state.*: registered functions, calls to JavaScript, browsers and tasks, watches, read-only) and the locked packages with the packages grant (list, why, info, environment 1.2.1 or later) (#685, ADR-027, docs/DEVELOPING_WITH_AGENTS.md, docs/AUTOMATION.md).
  • Embed a plain interface directory (HTML, JavaScript, CSS, vendored files) from CMake with webfront_embed_directory(app ui CLASS AppUI), without the developer environment: the build regenerates the provider when a file changes, and fs::DocumentRootFirstFSWith<AppUI> lets a development root serve in front of it (#675, docs/EMBEDDED_ASSETS.md).
  • Set from the configuration Referrer-Policy (contentPolicy.referrerPolicy: "no-referrer" forbids explicitly that a capability in your URLs leaves in Referer), X-Content-Type-Options: nosniff (noSniff) and the Cache-Control of HTML pages (htmlCacheControl), on files, route and generated replies unless a reply sets its own (#674, docs/CONTENT_POLICY.md).
  • Keep a capability carried by your URLs out of WebFront's logs with app.addSecretPrefix("/s/"): the segment after the prefix is logged as * (/s/*/index.html) for files, routes, WebSocket upgrades and their failures, whose error messages are not logged (#673, docs/HTTP_ASSETS.md).
  • Serve several independent users from one process with application spaces: app.spaces("/s/", resolver) gives each /s/<id>/ its own cppFunctions, page handlers, broadcasts and routes (WebFront::Space) and tells the application when its last page closes; ui.path() gives the path from which a browser opened its bridge (#671, #672, docs/SPACES.md).
  • Write tests with lighter headers and richer checks: <webfront/testing/bdd/Core.hpp> and only the parts a file uses, checkEqual/requireEqual reporting both operands (webfront::bdd::Printer for your types), approx(v) with .epsilon() and .margin(), and a runEnding listener called before the summary and the JUnit report (#669, docs/BDD.md).
  • The test helpers, webfront_add_jasmine_test included, export the real XDG_DATA_HOME and XDG_CACHE_HOME as WEBFRONT_TEST_REAL_XDG_DATA_HOME and WEBFRONT_TEST_REAL_XDG_CACHE_HOME, so an application under test can keep the throwaway WebKitGTK profile away from the programs it starts (#664, docs/CONSUMER_TESTING.md).

Changed

  • Detach and attach an inspector panel with small icons, a frame with an arrow leaving it or entering it, instead of the Detach and Attach words; their tooltip and accessible name say the action, and a greyed detach icon still says why (#722, docs/DEVELOPER_ENVIRONMENT.md).
  • wf test stopped at its time limit or by an interruption says how far its runner got, in its message and in the report's new stage: the last step reached, the spec in progress, and the runner files that never finished loading (#690, docs/DEVELOPER_ENVIRONMENT.md).
  • Destroying the handle of a watch (inspect::Watch) waits for an operation of the inspectors in progress on another thread: destroy it outside every lock its source takes, or declare the watch with the state it owns (#682, ADR-027, docs/WATCHES.md).
  • cppFunction and Space::cppFunction take a last, defaulted std::source_location, which the inspectors show; existing calls compile unchanged, the explicit cppFunction<R, Args...> form included (#681, ADR-027).
  • Document the security contract of the application's callbacks: one that writes the project or what the server serves, starts a process or exposes a sensitive state takes the calling UI and checks ui.isLocalClient(), since WebFront guards only its own functions (#686, ADR-027, docs/DEVELOPING_WITH_AGENTS.md).
  • WebFront.js opens its WebSocket on the directory of the page (ws://host/dir/ instead of ws://host), which tells the server a page's space (#671) and lets an application be deployed under a sub-path of a site (#672).
  • A file request whose path holds a control character (%00...) is refused with 400, as a .. already was, and a + in its path is a literal +, as for the routes, the spaces and ui.path(): /a+b.html serves a+b.html, which /a%20b.html no longer shares (#672).

Fixed

  • A client connected to the MCP listener when it closes, because the session closed or the application stopped, and completes its request within a second reads its answer (a closed session says so) instead of a connection reset; a request that arrived just before its peer's two-second deadline is served rather than reset (#720, docs/AUTOMATION.md).
  • A closed secondary window disconnects at once, its WKWebView page closed explicitly and never suspended while inactive on macOS 14+, its WebView2 page navigated to about:blank first, and a WebView2 one opened while the first starts waits for its load (#681, #702, #708, #716, docs/WKWEBVIEW.md, docs/WEBVIEW2.md).
  • A WKWebView page whose web content process ends says why: its memory or CPU limit, the application's request, or a crash of the WebKit engine, which DeveloperBrowserIntegration-jasmine met on the macOS runner while esbuild ran in its Worker, instead of only that the process terminated (#706, docs/WKWEBVIEW.md).
  • webfront.session names the native deadline that revoked a session (revocation: operation-deadline or startup-deadline, empty otherwise), and Session::revokedBy() gives it in C++: AutomationMcpWatchdog no longer fails when the window closes after the deadline, since its host recognised only a reason that the deadline never wrote (#709, docs/AUTOMATION.md).
  • An invalid content policy (an origin of bridgeAllowedOrigins or navigationAllowedOrigins, a referrerPolicy, a htmlCacheControl) throws std::invalid_argument before the server binds its port, as documented, instead of an "address already in use" error when that port is taken (#674).
  • Browser tests that a loaded runner failed: CEFLifecycle-navigation-allow-list counts only the cancellation of its own navigation (#731), WebFrontBrowserIntegration on CEF has 120 s and a wf test stopped by the driver's limit names the stage it reached (#730), and DeveloperBrowserIntegration-workspace gives the relaunched page 60 s to start and to draw its collapsed terminal's prompt (#660, #729).
  • Applications started from the terminal of a Snap-packaged editor (VSCodium) now...
Read more

WebFront developer packages 1.3.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:39

Browser-powered WebFront developer environment with Game of Life starter (the PI starter of earlier versions is retired), versioned separately from the C++ library.

Version 0.3.0 migrates the Life starter to packed Uint8Array grids: 128 bytes per generation with direct C++ bitset registration. It requires the bridge support introduced in #289. The interface retains editable patterns, playback, reset and single stepping. Version 0.3.1 makes wf install honor the installed lock: versions it records are kept and their archives must still match the recorded integrity. Published versions 0.1.0 to 0.3.0 remain available without modification.

Download through the version-pinned GitHub Pages URLs in the bootstrap configuration. SHA-512 is verified before executing the environment or creating a starter. React, React DOM and scheduler remain on npm; application developers install no JavaScript tooling. Applications using the starter can generate their own compressed header-only resources for an offline native executable.

The environment includes the terminal, npm resolver, esbuild/WASM compiler, embedding tools and dependency notices. These packages are experimental; browser packages only, without installation scripts, native modules or server-side runtime shims.

Version 0.4.0 updates the Life starter text for a developer audience. The simulation and bridge contract are unchanged.

Version 0.5.0 introduces the project manifest webfront.project.json: wf init, manifest-driven wf install (with --update), wf preview and wf embed, and a lock that records the digest of the manifest dependencies. wf install now requires a manifest. The starters ship their own manifest.

Version 0.6.0 (published as developer-v0.6.0) adds wf test (the project's Jasmine, obtained by wf install jasmine-core, runs the specs of test.specs in the browser, with a structured report and a non-interactive entry), wf build and incremental wf dev, with bounded input polling, diagnostics in the preview and Ctrl+C cancellation. A publication whose commit has completed is displayed before cancellation ends the command. DeveloperReleaseData.hpp and the bootstrap environment of the tests pin it. environment.json now declares api (the webfront.developer.* version, 1); an environment that predates the field reads as 1.

WebFront developer packages 1.2.1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Nov 07:48

Browser-powered WebFront developer environment with Game of Life starter (the PI starter of earlier versions is retired), versioned separately from the C++ library.

Version 0.3.0 migrates the Life starter to packed Uint8Array grids: 128 bytes per generation with direct C++ bitset registration. It requires the bridge support introduced in #289. The interface retains editable patterns, playback, reset and single stepping. Version 0.3.1 makes wf install honor the installed lock: versions it records are kept and their archives must still match the recorded integrity. Published versions 0.1.0 to 0.3.0 remain available without modification.

Download through the version-pinned GitHub Pages URLs in the bootstrap configuration. SHA-512 is verified before executing the environment or creating a starter. React, React DOM and scheduler remain on npm; application developers install no JavaScript tooling. Applications using the starter can generate their own compressed header-only resources for an offline native executable.

The environment includes the terminal, npm resolver, esbuild/WASM compiler, embedding tools and dependency notices. These packages are experimental; browser packages only, without installation scripts, native modules or server-side runtime shims.

Version 0.4.0 updates the Life starter text for a developer audience. The simulation and bridge contract are unchanged.

Version 0.5.0 introduces the project manifest webfront.project.json: wf init, manifest-driven wf install (with --update), wf preview and wf embed, and a lock that records the digest of the manifest dependencies. wf install now requires a manifest. The starters ship their own manifest.

Version 0.6.0 (published as developer-v0.6.0) adds wf test (the project's Jasmine, obtained by wf install jasmine-core, runs the specs of test.specs in the browser, with a structured report and a non-interactive entry), wf build and incremental wf dev, with bounded input polling, diagnostics in the preview and Ctrl+C cancellation. A publication whose commit has completed is displayed before cancellation ends the command. DeveloperReleaseData.hpp and the bootstrap environment of the tests pin it. environment.json now declares api (the webfront.developer.* version, 1); an environment that predates the field reads as 1.

WebFront 1.2.0

Choose a tag to compare

@ambroise-leclerc ambroise-leclerc released this 24 Nov 11:42
2157580

WebFront 1.2 ships with developer environment 1.2.0. The application itself becomes the MCP server that a coding agent drives
(enableAutomation), and it can open a second native window, serve HTTPS and run beside other applications on a free port.
It has breaking changes: WebView2Options becomes ViewOptions, webfront-agent is removed and the CEF profile moves; each
entry below gives its migration.

Breaking

  • WebView2Options is now ViewOptions, shared with WKWebView: userDataFolder moves after launch, so a positional initialization of WebView2Options stops compiling, and so does a designated one that writes .userDataFolder before .contentPolicy, .window, .visible or .launch (write it last) (#652, docs/FRONTENDS.md).
  • webfront/automation/Enable.hpp no longer compiles with WEBFRONT_DISTRIBUTION: gate enableAutomation out of the distribution build, as the guide already advised (#632, ADR-025).
  • webfront-agent is removed with its JSON CLI, MCP on stdio, --serve, --attach, --list and --print-mcp-config, as are WEBFRONT_BUILD_AUTOMATION, WEBFRONT_AUTOMATION_FRONTEND and webfront_add_agent(): connect the MCP client to the URL the application prints (#632, ADR-025, docs/AUTOMATION.md).
  • AutomationOptions::listen becomes directory and may stay empty (a private directory named after the session is created), Automation::endpoint() becomes directory(), and the JSON-lines attachment channel (ChannelServer, ChannelClient) is gone (#632).
  • The CEF profile is now cef_cache/<executable>, not cef_cache: an application starts with an empty profile (localStorage, cookies); to keep the data, move the old contents of cef_cache into cef_cache/<executable> once (#617, docs/HOST_INTEGRATION.md).

Added

  • Open a second native window with app.openSecondaryWindow(page, WindowOptions) (WebKitGTK, WKWebView, WebView2; elsewhere std::logic_error, which app.canShowSecondaryWindow() predicts): it shares the server, the cppFunctions, the jsFunction subscribers and the view proof of the first window; app.requestClose(page) closes it, and closing the first closes the others (#616, docs/FRONTENDS.md).
  • Write your own scenarios with the public webfront::bdd framework: <webfront/testing/Bdd.hpp>, the WebFront::Bdd target, the installable WebFrontBdd package and webfront_bdd_discover_tests() (prefix, properties, shards) replace the internal test/unit/Bdd.hpp and bdd_discover_tests, and follow WebFront's versions (#647, docs/BDD.md).
  • Configure a stable MCP port and application-supplied Bearer token, or explicitly disable authentication for trusted development (#637, ADR-026, docs/AUTOMATION.md).
  • Connect an MCP client to the application itself: enableAutomation(app, {.grants = {...}}) serves MCP over Streamable HTTP on a loopback port of its own, prints its URL and writes a private mcp.json with the URL and a session Bearer token, so several applications run side by side with no other program (#632, ADR-025, docs/AUTOMATION.md).
  • Use a custom network provider with DeveloperAppWithNetwork. The BasicDeveloperApp alias selects the existing TCP provider (#631).
  • Pass the MSVC code analysis on the automation host probe and the discovery directory of Enable.hpp (C6031, C6244), which stopped the Windows desktop job of a dispatch or pull request at its build (#638).
  • Serve HTTPS and WSS with the optional header-only TLS 1.3 listener and reload its PEM identity after renewal (#631, docs/TLS.md).
  • Start an application with no port setting when 9002 is taken: an empty WebFrontConfig::port falls back to a free port, a chosen port is never replaced, and CEF and WebKitGTK give each live instance its own profile directory (#617, docs/HOST_INTEGRATION.md).
  • Start several applications side by side: the default port follows WEBFRONT_PORT (a number from 0 to 65535, 0 asks for a free port, 9002 remains the default), the examples take --port, the server announces the port really bound, and a failed bind names the address, the port and the cause (#617, docs/HOST_INTEGRATION.md).

Fixed

  • Check the leftover STA of a WebView2 window only after a page that ran to its end, not after one that closes the window on a load failure: the runtime can keep a COM initialization of its own then, in about one show() in 500 under load, and the limit is documented with its measurements (#638, docs/PROJECT_STATUS.md).
  • Refuse every Sec-Fetch-* request header on the MCP listener, including Sec-Fetch-Dest, in both authenticated and unauthenticated modes (#637).

WebFront developer packages 1.2.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:32

Browser-powered WebFront developer environment with Game of Life starter (the PI starter of earlier versions is retired), versioned separately from the C++ library.

Version 0.3.0 migrates the Life starter to packed Uint8Array grids: 128 bytes per generation with direct C++ bitset registration. It requires the bridge support introduced in #289. The interface retains editable patterns, playback, reset and single stepping. Version 0.3.1 makes wf install honor the installed lock: versions it records are kept and their archives must still match the recorded integrity. Published versions 0.1.0 to 0.3.0 remain available without modification.

Download through the version-pinned GitHub Pages URLs in the bootstrap configuration. SHA-512 is verified before executing the environment or creating a starter. React, React DOM and scheduler remain on npm; application developers install no JavaScript tooling. Applications using the starter can generate their own compressed header-only resources for an offline native executable.

The environment includes the terminal, npm resolver, esbuild/WASM compiler, embedding tools and dependency notices. These packages are experimental; browser packages only, without installation scripts, native modules or server-side runtime shims.

Version 0.4.0 updates the Life starter text for a developer audience. The simulation and bridge contract are unchanged.

Version 0.5.0 introduces the project manifest webfront.project.json: wf init, manifest-driven wf install (with --update), wf preview and wf embed, and a lock that records the digest of the manifest dependencies. wf install now requires a manifest. The starters ship their own manifest.

Version 0.6.0 (published as developer-v0.6.0) adds wf test (the project's Jasmine, obtained by wf install jasmine-core, runs the specs of test.specs in the browser, with a structured report and a non-interactive entry), wf build and incremental wf dev, with bounded input polling, diagnostics in the preview and Ctrl+C cancellation. A publication whose commit has completed is displayed before cancellation ends the command. DeveloperReleaseData.hpp and the bootstrap environment of the tests pin it. environment.json now declares api (the webfront.developer.* version, 1); an environment that predates the field reads as 1.

WebFront developer packages 1.0.2

Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 10:33

Browser-powered WebFront developer environment with Game of Life starter (the PI starter of earlier versions is retired), versioned separately from the C++ library.

Version 0.3.0 migrates the Life starter to packed Uint8Array grids: 128 bytes per generation with direct C++ bitset registration. It requires the bridge support introduced in #289. The interface retains editable patterns, playback, reset and single stepping. Version 0.3.1 makes wf install honor the installed lock: versions it records are kept and their archives must still match the recorded integrity. Published versions 0.1.0 to 0.3.0 remain available without modification.

Download through the version-pinned GitHub Pages URLs in the bootstrap configuration. SHA-512 is verified before executing the environment or creating a starter. React, React DOM and scheduler remain on npm; application developers install no JavaScript tooling. Applications using the starter can generate their own compressed header-only resources for an offline native executable.

The environment includes the terminal, npm resolver, esbuild/WASM compiler, embedding tools and dependency notices. These packages are experimental; browser packages only, without installation scripts, native modules or server-side runtime shims.

Version 0.4.0 updates the Life starter text for a developer audience. The simulation and bridge contract are unchanged.

Version 0.5.0 introduces the project manifest webfront.project.json: wf init, manifest-driven wf install (with --update), wf preview and wf embed, and a lock that records the digest of the manifest dependencies. wf install now requires a manifest. The starters ship their own manifest.

Version 0.6.0 (published as developer-v0.6.0) adds wf test (the project's Jasmine, obtained by wf install jasmine-core, runs the specs of test.specs in the browser, with a structured report and a non-interactive entry), wf build and incremental wf dev, with bounded input polling, diagnostics in the preview and Ctrl+C cancellation. A publication whose commit has completed is displayed before cancellation ends the command. DeveloperReleaseData.hpp and the bootstrap environment of the tests pin it. environment.json now declares api (the webfront.developer.* version, 1); an environment that predates the field reads as 1.

WebFront 1.1.1

Choose a tag to compare

@ambroise-leclerc ambroise-leclerc released this 20 Nov 14:46
acfc681

WebFront 1.1.1 ships with developer environment 1.0.1. It repairs the desktop CI jobs that the 1.1.0 release exposed (a Windows
code-analysis error in the PTY, a macOS socket option error) and removes the GCC 13 warnings. No breaking change.

Added

  • Run the MSVC code analysis in a pull request into develop that changes Windows code, and list the reruns each job needed before going green with FlakeReport.py --days (#628, docs/TEST_TIERS.md, docs/TEST_PERFORMANCE.md).

Fixed

  • Pass the compiler analysis on the Windows pseudoterminal when it cannot prove the attribute list non-null (C6387), stop a unit test from opening the developer's real browser (the directory of its replacement opener was removed before the shell found it), and keep an accepted connection whose TCP_NODELAY the system refuses, as macOS does after a reset (#628).

Full changelog: v1.1.0...v1.1.1

WebFront 1.1.0

Choose a tag to compare

@ambroise-leclerc ambroise-leclerc released this 20 Nov 13:59
c7d0b23

WebFront 1.1 ships with developer environment 1.0.1. It adds POST routes with a bounded body, application-selected programs
in a native pseudoterminal, and a faster, less flashy start of the native windows. No breaking change.

Added

  • Answer POST on a dynamic route that opts in with http::RouteOptions::postBodyLimit: the body, bounded by Content-Length, reaches the handler as RouteRequest::body; Response::accepted (202) and Response::unauthorized (401) have their reason phrases (#619, docs/HTTP_ASSETS.md).
  • CEF supports WindowOptions::background and shows its window when the first document has loaded or after one second (#611, docs/FRONTENDS.md).
  • Print a hint on standard error when the development file system serves a stylesheet whose font-family lists four or more costly families (#611, docs/WEBKITGTK.md).
  • Run the start-up time of the native windows, cold and warm (cold is fully cold on Linux only), as <Frontend>StartupTime-cold and -warm (label startup) with generous limits, timed from the start of the program so that the frontend's initialization counts (#611, docs/WEBKITGTK.md).
  • Run application-selected programs in a native pseudoterminal with an optional xterm.js page adapter and replay across reloads (#613, docs/PTY.md).
  • Skip GStreamer's initialization, and its plugin scan, in WebKitGTK for an application whose pages never use audio or video, with WindowOptions::media = false; the default keeps media (#611, docs/WEBKITGTK.md).
  • WKWebView supports WindowOptions::background, translucent colours included, and WEBFRONT_STARTUP_TRACE=1 (#611, docs/WKWEBVIEW.md).
  • WebView2 supports WindowOptions::background and WEBFRONT_STARTUP_TRACE=1 (#611, docs/WEBVIEW2.md).
  • Choose the colour of the WebKitGTK view under the page with WindowOptions::background (WebKitGTK; the other embedded frontends are listed here), and read the start-up milestones of a WebKitGTK view with WEBFRONT_STARTUP_TRACE=1 (#611, docs/WEBKITGTK.md).

Changed

  • Reveal the WKWebView window when the document has loaded or after one second (#611, docs/WKWEBVIEW.md).
  • Reveal the WebView2 window after the first frame or one second (#611, docs/WEBVIEW2.md).
  • Show the WebKitGTK window when the page reports its first frame, or when a one-second timer fires, even if the page has not painted, instead of at once; the embedded pages, the starter and the examples use the cheap sans-serif and monospace font stacks (#611, docs/WEBKITGTK.md).

Fixed

  • Accept HTTP request headers with optional spaces or tabs after the colon, tabs in values, and empty values (#621).
  • Read an obsolete line fold in a request header as one space (RFC 9112, section 5.2), not as the two lines glued together: a Content-Length folded as 1 and 0 was read as 10 (#619).
  • Keep the input focus of the developer terminal after a click on the page around it (title, notice, blank areas) while the terminal has the window, selection and controls excepted (#608).
  • Remove the white flash of an embedded view between the developer environment's bootstrap page and the project's page, by giving the window the environment's dark colour (#141821) when the application sets none; on macOS the view then no longer paints its own white behind it (#611, docs/WKWEBVIEW.md).
  • Select detected GPU architectures supported by nvcc by default for the host-loop CUDA renderer (docs/HOST_LOOP_EXAMPLE.md).

WebFront developer packages 1.0.1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 09:59

Browser-powered WebFront developer environment with Game of Life starter (the PI starter of earlier versions is retired), versioned separately from the C++ library.

Version 0.3.0 migrates the Life starter to packed Uint8Array grids: 128 bytes per generation with direct C++ bitset registration. It requires the bridge support introduced in #289. The interface retains editable patterns, playback, reset and single stepping. Version 0.3.1 makes wf install honor the installed lock: versions it records are kept and their archives must still match the recorded integrity. Published versions 0.1.0 to 0.3.0 remain available without modification.

Download through the version-pinned GitHub Pages URLs in the bootstrap configuration. SHA-512 is verified before executing the environment or creating a starter. React, React DOM and scheduler remain on npm; application developers install no JavaScript tooling. Applications using the starter can generate their own compressed header-only resources for an offline native executable.

The environment includes the terminal, npm resolver, esbuild/WASM compiler, embedding tools and dependency notices. These packages are experimental; browser packages only, without installation scripts, native modules or server-side runtime shims.

Version 0.4.0 updates the Life starter text for a developer audience. The simulation and bridge contract are unchanged.

Version 0.5.0 introduces the project manifest webfront.project.json: wf init, manifest-driven wf install (with --update), wf preview and wf embed, and a lock that records the digest of the manifest dependencies. wf install now requires a manifest. The starters ship their own manifest.

Version 0.6.0 (published as developer-v0.6.0) adds wf test (the project's Jasmine, obtained by wf install jasmine-core, runs the specs of test.specs in the browser, with a structured report and a non-interactive entry), wf build and incremental wf dev, with bounded input polling, diagnostics in the preview and Ctrl+C cancellation. A publication whose commit has completed is displayed before cancellation ends the command. DeveloperReleaseData.hpp and the bootstrap environment of the tests pin it. environment.json now declares api (the webfront.developer.* version, 1); an environment that predates the field reads as 1.

WebFront 1.0.0

Choose a tag to compare

@ambroise-leclerc ambroise-leclerc released this 17 Nov 10:54
e36da2f

WebFront 1.0.0 is a C++23 header-only library for serving a browser UI from a C++ application. It ships with developer environment 1.0.0 (compatibility: library 1.0.0, environment 1.0.0, API 1).

Highlights

  • Integrate WebFront into an application's own loop with app.start(), app.requestClose() and webfront::UIThread; the host-loop example renders a Boing Ball on the CPU or with optional CUDA.
  • Develop a TypeScript or TSX interface with the standalone wf environment, including the app starter, command help, package inspection and a floating terminal.
  • Use the browser bridge, DOM islands and optional React adapter; see the documentation for their supported types and lifecycle.
  • Run on the system browser or select an available native frontend. The release includes Jetson Orin Nano Super qualification and WebKitGTK distribution tooling.

Upgrading

  • WebKitGTK defaults to development mode with its sandbox disabled. Packaged applications must select WEBFRONT_DISTRIBUTION=ON or webfront_use_distribution(target) to require it.
  • Additional terminal command names are reserved; rename conflicting commands registered through webfront::Commands::add.

See the changelog for details and the project status for platform support and limitations. The developer environment packages are published separately.