Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chartlets

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartlets

An experimental library for integrating interactive charts into existing JavaScript applications.

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
501
increased by42.74%
Maintainers
0
Weekly downloads
 
Created
Source

dashi

Dashi is a JavaScript library that allows configuring server-side widgets and plugging them into existing web frontends.

Note, this library is experimental and under development still.

How it is supposed to work

Users write the widgets in, e.g. Python, and a REST server implements three endpoints to publish the widgets:

  • GET /contributions: Called once after application UI starts up. Returns an object whose keys are contribution points (e.g., "panels") and whose values are arrays of contribution objects.
  • POST /layout/{contribPoint}/{contribIndex}: Called once for every contribution when it becomes visible in the UI. Returns the contribution's initial component tree
  • POST /callback: Called when users interact with the component tree or on application state changes. Returns an array of contribution changes where each contribution change contains an array of actions to be applied to the component tree.

The following sequence diagram depicts how the library is supposed to work. The top shows the JavaScript frontend that uses this library. The bottom shows the lifeline of the backend REST server.

docs/sequence.png

How to run the demo

git clone https://github.com/bcdev/dashi.git

Run the server

cd dashi/dashipy
conda env create
conda activate dashi
pip install -ve . 
python -m dashipy.demo.server

Run the UI

cd ../dashi
npm install
npm run dev

Keywords

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc