finos-labs / fdc3-for-the-web

Proof of concept of FDC3 for the web
Apache License 2.0
2 stars 5 forks source link

FDC3 For The Web

This is a minimal proof-of-concept for FDC3 For the Web.

To Run

  1. Prerequisites:

    node: v20+
    yarn v4+
  2. From the Command Line:

    yarn install
    yarn workspaces foreach --all install
    yarn workspaces foreach --all run build
    cd packages/demo
    yarn dev
  3. Point browser at http://localhost:8080/static/da/index.html

  4. This is your dummy desktop agent, which has various apps you can launch.

  5. Launch the apps, press the button, watch messages pass between them.

What This Project Contains

The project is divided into several different yarn workspaces:

Configuring the client

getClientAPI (in index.ts): Called (with options) by an FDC3 App to retrieve the API. This retrieves details from the desktop agent and initialises a DesktopAgent API implementation, returning it in a promise. There are various options available:

Configuring Server

Notes

Cross-Origin

TO-DO

Troubleshooting

Issues To Resolve

Protocol

Da-Server

Client

Demo

Idea

Do we need to send a post-message to the server, if we have cookies? Couldn't we just hold the DA ID and the address of the embed page in the cookie? Problem is, the cookie is scoped to the DA...

Releasing

yarn npm login
yarn workspaces foreach --all version 0.0.10 (or whatever)
yarn workspaces foreach --all npm publish --access=public