How d2bridge/d2bridgeframework works
D2Bridge turns Delphi/Lazarus applications into web backends by exposing their visual UI to browser users. The documented workflow is to retain the existing application and export its visual layer; the tree shows server-side form, rendering, REST/session, and Prism UI subsystems, while sampled browser code demonstrates server-function requests and callback handling. Beta and Stable contain parallel browser assets. Server-side call relationships are not inferred from filenames: links to those unsampled internals are omitted. The README supports the overall product workflow, but implementation details beyond the sampled JavaScript remain uncertain.
Main entry points: js/prismserverfunctions.js Server function proxy · js/serverfunctionexecutor.js HTTP executor · js/prismserverfunctions.js Server function proxy · js/serverfunctionexecutor.js HTTP executor
Components 22
Web application
- Existing application
- Visual form export
- Web backend
Prism runtime
- User sessions
Beta/D2Bridge Framework/Prism/Prism.Session.pas - Security options
Beta/D2Bridge Framework/Prism/Prism.Options.Security.pas
D2Bridge framework
- Form lifecycle
Beta/D2Bridge Framework/D2Bridge.Forms.pas - HTML rendering
Beta/D2Bridge Framework/D2Bridge.Render.pas - HTML controls
Beta/D2Bridge Framework/D2Bridge.Item.HTML.Card.pas - REST server
Beta/D2Bridge Framework/D2Bridge.Rest.Server.pas - REST routes
Beta/D2Bridge Framework/D2Bridge.Rest.Route.pas
Browser runtime
- Browser callbacks
Beta/HTML/wwwroot/js/callbackframework.js - Server function proxy
Beta/HTML/wwwroot/js/prismserverfunctions.js - HTTP executor
Beta/HTML/wwwroot/js/serverfunctionexecutor.js - Connection setup
Beta/HTML/wwwroot/js/connection.js - Request loader
Beta/HTML/wwwroot/js/d2bridgeloader.js - Page embedding
Beta/HTML/Plugin PrismPage/prismpage.js - Browser callbacks
Stable/HTML/wwwroot/js/callbackframework.js - Server function proxy
Stable/HTML/wwwroot/js/prismserverfunctions.js - HTTP executor
Stable/HTML/wwwroot/js/serverfunctionexecutor.js - Connection setup
Stable/HTML/wwwroot/js/connection.js
Other components
- Delphi/Lazarus project user
- Browser user
Connections 14
- Delphi/Lazarus project user → Existing application: retains
README.md - Existing application → Visual form export: exports visuals
README.md - Visual form export → Web backend: becomes backend
README.md - Browser user → Web backend: uses web app
- Connection setup → Server function proxy: creates proxy
Beta/HTML/wwwroot/js/connection.js - Server function proxy → HTTP executor: executes methods
Beta/HTML/wwwroot/js/prismserverfunctions.js - HTTP executor → Web backend: sends HTTP
Beta/HTML/wwwroot/js/serverfunctionexecutor.js - Browser callbacks → Server function proxy: broadcasts through
Beta/HTML/wwwroot/js/callbackframework.js - Browser callbacks → HTTP executor: polls callbacks
Beta/HTML/wwwroot/js/callbackframework.js - Connection setup → Server function proxy: creates proxy
Stable/HTML/wwwroot/js/connection.js - Server function proxy → HTTP executor: executes methods
Stable/HTML/wwwroot/js/prismserverfunctions.js - HTTP executor → Web backend: sends HTTP
Stable/HTML/wwwroot/js/serverfunctionexecutor.js - Browser callbacks → Server function proxy: broadcasts through
Stable/HTML/wwwroot/js/callbackframework.js - Browser callbacks → HTTP executor: polls callbacks
Stable/HTML/wwwroot/js/callbackframework.js