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

flux-sdk-common

v0.5.2

Published

This directory contains the core source code for the Flux JavaScript SDK. It is not intended for direct usage.

Downloads

22

Readme

Flux-SDK-Common

This directory contains the core source code for the Flux JavaScript SDK. It is not intended for direct usage.

Developers working with the SDK should instead use flux-sdk-browser or flux-sdk-node, depending on which environment they are targeting.

Installing

From this directory (flux-sdk-js/flux-sdk-common):

npm link

This will install all dependencies, build the source code, and provide a sym-linked version to npm so that running npm install flux-sdk-common from another directory (e.g., flux-sdk-js/flux-sdk-browser) will use the local version.

Running Tests

Make sure you set up your env by following these instructions https://docs.google.com/document/d/1joaFumoetcAfN9xCU-ND7vr2dMUXPGaNqa6syz_EqyU/edit# Also see the Testing section in flux-sdk-node/README.md

  • To run the linter and tests once: npm run check
  • To run the tests once (no linting): npm test
  • To run the tests continuously on changes: npm run test:watch

Directory Structure

  • /spec: Contains unit tests for the JS SDK
  • /src: Root source directory
    • /src/config: Configuration
    • /src/constants: Constants, such as API endpoint paths
    • /src/models: The core domain models, such as Cell and DataTale
    • /src/ports: Wrappers for environment-specific functionality, such as web sockets
    • /src/serializers: Default translation logic for the API responses
    • /src/utils: Utilities such as request logic