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

@genesislcap/foundation-fdc3

v14.221.0

Published

Genesis Foundation FDC3

Downloads

3,266

Readme

Genesis Foundation FDC3

This provides a robust implementation of the FDC3 standard, facilitating interoperability between desktop financial applications. It leverages the @finos/fdc3 library to implement an API that covers intents, context sharing, and channels, enhancing the communication and interaction capabilities of applications within the financial domain.

API Documentation

For more detailed information on API and configurations, please refer to the API documentation in the docs/api directory.

Installation

To include @genesislcap/foundation-fdc3 in your project, add it as a dependency in your package.json file and follow your project's routine for dependency installation.

{
  "dependencies": {
    "@genesislcap/foundation-fdc3": "latest"
  }
}

Key Features

  • FDC3 Standard Compliance: Implements FDC3 API standards, ensuring compatibility and interoperability across financial desktop applications.
  • Event and Context Management: Supports handling and broadcasting of various event types and contexts, enabling rich interaction patterns between applications.
  • Channel Support: Offers utilities for channel management, allowing applications to join, create, or broadcast over specific channels for targeted communication.
  • Intent Handling: Provides mechanisms to raise, listen for, and handle intents, facilitating action-driven communication between applications.

Usage Examples

Adding Intent Listeners

import { FDC3, FDC3Intents, FDC3ContextHandler } from '@genesislcap/foundation-fdc3';
import { FASTElement } from '@microsoft/fast-element';

export class MyComponent extends FASTElement {
  @FDC3 fdc3Service: FDC3;

  connectedCallback() {
    const listeners = new Map<FDC3Intents, FDC3ContextHandler>([
      [FDC3Intents.controlClicked, (context) => console.log('Control clicked', context)],
      [FDC3Intents.routeChanged, (context) => console.log('Route changed', context)],
    ]);

    this.fdc3Service.addIntentListeners(listeners);
  }
}

Raising an Intent

import { FDC3, FDC3Intents } from '@genesislcap/foundation-fdc3';
import { FASTElement } from '@microsoft/fast-element';

export class MyComponent extends FASTElement{
  @FDC3 fdc3Service: FDC3;

  onClick() {
    this.fdc3Service.raiseIntent({ type: 'ViewChart', symbol: 'AAPL' }, FDC3Intents.controlClicked);
  }
}

Joining a Channel

import { FDC3 } from '@genesislcap/foundation-fdc3';
import { FASTElement } from '@microsoft/fast-element';

export class MyComponent extends FASTElement {
  @FDC3 fdc3Service: FDC3;

  connectedCallback() {
    this.fdc3Service.joinChannel('blue');
  }
}

Best Practices

  • Intent and Context Definition: Clearly define the intents and contexts your application will use or listen for, ensuring they align with FDC3 standards and facilitate meaningful interactions between applications.
  • Error Handling: Implement robust error handling for intent raising and context sharing operations, especially when dealing with asynchronous actions.
  • Channel Usage: When using channels for communication, ensure proper management of channel membership and context broadcasting to avoid unintended interactions.

Dependency Injection and Service Configuration

The FDC3 service is designed to be easily integrated and configured within your application using dependency injection. This approach allows for flexible instantiation and usage of the FDC3 API, ensuring that financial desktop applications can leverage standard communication protocols for enhanced interoperability.

License

Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact Genesis Global for more details.

Licensed components

Genesis low-code platform