You are not logged in.
Hi atm we are using claude a lot to build our Programs. Today i was thinking about the IDEA to ask claude to think about using m2 Client in our mobile Apps.
But first i like to ask if there is any progress going on here.
Last edited by itSDS (2026-09-15 12:28:17)
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
ATM i build it by myself i make pr if its ready
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Design would be not to make full compatibility of mORMot 2 units to all Delphi platforms, but a cross-platform simple minimal set of JSON + HTTP requests as in mORMot 1.
I guess it should eventually support
- all Delphi targets
- all FPC targets, including pas2js
- https://www.tmssoftware.com/site/tmswebcore.asp
- why not have the most simple pascal syntax compatible even with something like https://github.com/graemeg/blaise ?
- drop SmartMobileStudio support of mORMot 1 (replace with pas2js)
For a minimal HTTP/HTTPS client with basic JSON.
And eventually WebSockets (at least with pas2js and the native JS websockets API in browser).
Performance is not the main goal here, but compatibility.
We have already source code generation via Mustache templates in mormot 2.
Offline
ATM i build it by myself i make pr if its ready
Share!! ![]()
a quick note about a related project: PWeb (or mtron, name isn't decided yet) - github.com/flydev-fr/pweb
it is a desktop runtime for FPC/Lazarus (delphi soon), in the spirit of Electron or Tauri: mormot2 plus the OS WebView (WebView2, WebKitGTK, WKWebView), with a JS, React or pas2js frontend. There is no HTTP between the UI and Pascal. The UI calls regular mORMot 2 interface-based services in-process, through TRestServer.Uri(), with no socket and no port.
If a pas2js implementation would help your work, feel free to look at:
sdk/pas2js - pweb.native.pas: a promise-based Service.Method call with named JSON arguments and typed errors, plus its test suite
examples/05-pas2js - a complete pas2js frontend calling a mormot service
tools/templates/pas2js - the project template
v := await(JSValue, PWebInvoke('CalculatorService.Add', New(['a', 20, 'b', 22])));the transport there is the WebView bridge rather than HTTP, but the call shape is transport-agnostic. It might fit behind a Mustache-generated client.
About mobile: Android and iOS are planned. The first desktop release (Windows, Linux, macOS) should be out very soon, and the mobile targets come next (android_webview, JAVA layer are already set up).
Offline