npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@connectifi/fdc3-web-portal

v1.0.7

Published

Reference implementation of an FDC3 provider pattern and the [Connectifi](https://connectifi.co) interop service

Downloads

180

Readme

fdc3-web-portal

Reference implementation of an FDC3 provider pattern and the Connectifi interop service

Provider Pattern

This is a pattern for enabling apps to use a single library for FDC3 regardless of what the actual FDC3 implementation is. It also allows micro apps in a single page to interact with each other "locally" as well as with the "external" real FDC3 implementation.

Applications/components import and create their FDC3 apis via the createWebAgentAPI call . This returns an FDC3 API which uses postMessage to communicate with the WebAgent which ultimately binds to the real FDC3 implementation. In this example, the WebAgent is binding to the Connectifi agent for interop outside of the web page.

API/Provider Pattern

Notes

  • The API/WebAgent combo should work for apps implemented in iFrames or components existing in the same DOM using module scope. The included test harness page uses iframes.
  • the createWebAgentAPI function provides apps and/or components with a FDC3 2.0 API
  • the WebAgent allows the top level page to bind to the real FDC3 implementation and communicate with all the WebAgentAPIs in the page

WebAgent Pattern

In this example, the FDC3Provider is the WebAgent which implements a local bus for FDC3 interop within the page while connecting to a wider FDC3 implementation enabling FDC3 interop outside of the page. The WebAgent setup looks like this:

 const localAgent: WebAgent = new WebAgent();
 // bind the web agent to the main FDC3 implementation
 localAgent.bind(fdc3);

Notes

  • the WebAgent can support any number of FDC3 providers.
  • the WebAgent allows apps to broadcast to each other via FDC3 within scope of the web page
  • the local apps have channel membership independent of the page they are running on

Project setup

  • clone
  • npm i
  • npm run dev
  • open http://localhost:5173/

Development

The project currently has the following parts:

  • demo/index.html & demo/app1.html - test harness UIs
  • demo/agent.ts - this is the harness app code, instantiates the WebAgent and connects to the Connectifi service
  • src/common - contains the types and topics used in the postMessage wire protocol between the api and web agent
  • src/webAgent - the WebAgent implementation (top level page)
  • src/webAgentAPI - the FDC3 API implementation (sub apps/components)

Next Steps

(in no certain order)

  • add 2.0 intent data support
  • add module / non-iframe example
  • test against desktop containers