Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
juttle-client-library
Advanced tools
Juttle Client Library is a set of frontend building blocks for creating applications that interact with outputs from [juttle](https://github.com/juttle/juttle) programs via [juttle-service](https://github.com/juttle/juttle-service).
Juttle Client Library is a set of frontend building blocks for creating applications that interact with outputs from juttle programs via juttle-service.
Juttle Client Library consists of 5 distinct components: Views, Inputs, Errors, JobManager, and HttpApi.
Component | Description |
---|---|
Views | The Views class is used to run a bundle (a juttle program with its modules) against an instance of Juttle Service and render its output onto a provided DOM node. |
Inputs | Given a bundle, an inputs instance will render the bundle's inputs to specified DOM node. |
Errors | Given an error object returned from either juttle-service or juttle-viz, an Errors instance will render a user-friendly error message. |
JobManager | Interacts with the Juttle Service api to run and manage the lifecycle of a running Juttle Program. Emits events received from the Juttle Service streaming api. |
HttpApi | Client functions for interacting with the Juttle Service http api. |
Additionally Juttle Client Library also exports these enums:
Enum | Description |
---|---|
JobStatus | An enum used to described the status of a given JobManager instance. Returned from the getStatus() method of JobManager . Possible values can be STOPPED , STARTING , RUNNING |
ViewStatus | Exactly the same as JobStatus only returned from the getStatus() of a Views instance. |
npm install --save juttle-client-library
A quick example:
import { Views, Inputs } from 'juttle-client-library';
let views = new Views(JUTTLE_SERVICE_HOST, document.getElementById('views'));
let inputs = new Inputs(JUTTLE_SERVICE_HOST, document.getElementById('inputs'));
let bundle = {
program: 'input person:text; emit | put greeting = "hello " + person'
};
inputs.render(bundle);
document.getElementById('btn-run').addEventListener('click', () => {
inputs.getValues()
.then(values => views.run(bundle, values));
});
See the example
and test
directory for how this library should be used. A
more complete implementation can be see in
juttle/juttle-viewer
Prerequisite - Have a locally running instance of Juttle Service (or
Juttle Engine) on port 8080 (you
can adjust the location by changing line 6 of example/index.js
).
Here's how to run this library locally from this repo (also used for development purposes):
$ git clone https://github.com/juttle/juttle-client-library.git
$ cd juttle-client-library
$ npm install
$ cd example
$ ./server.js
FAQs
Juttle Client Library is a set of frontend building blocks for creating applications that interact with outputs from [juttle](https://github.com/juttle/juttle) programs via [juttle-service](https://github.com/juttle/juttle-service).
The npm package juttle-client-library receives a total of 34 weekly downloads. As such, juttle-client-library popularity was classified as not popular.
We found that juttle-client-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.