Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a JS lib to support trame-client API through an iframe #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    885bbbe View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. feat(JS lib): add a client JS lib for the Communicator

    similar to trame-client js-api, trame-iframe js-api provides an agnostic library
    that can be installed in a regular JS project.
    trame-iframe js-api could be installed in a host application (could be
    react/streamlit/vue/... based) to proxy the trame API calls through the
    iframe to the Communicator and the trame application.
    The goal is to replicate the trame-client js-api features to make it
    transparent to the consumer code.
    API:
    - trame.state.set
    - trame.state.update
    - trame.state.watch
    - trame.trigger
    
    This is still possible to directly interact with the Communicator from
    an host application by manually sending/listening to events.
    bourdaisj committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    1e763b1 View commit details
    Browse the repository at this point in the history