#1 2026-09-15 12:27:40

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 610

Generate/Using m2 Client without using SynCrossplatform

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

#2 Yesterday 11:15:17

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 610

Re: Generate/Using m2 Client without using SynCrossplatform

ATM i build it by myself i make pr if its ready


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#3 Yesterday 12:34:28

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,598
Website

Re: Generate/Using m2 Client without using SynCrossplatform

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

#4 Yesterday 14:04:44

flydev
Member
From: France
Registered: 2020-11-27
Posts: 205
Website

Re: Generate/Using m2 Client without using SynCrossplatform

itSDS wrote:

ATM i build it by myself i make pr if its ready

Share!! big_smile


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:

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

Board footer

Powered by FluxBB