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

stellar-plus

v0.12.4

Published

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

Downloads

1,113

Readme

Stellar-Plus

Stellar-plus is a robust JavaScript library built by Cheesecake Labs and designed to streamline the development of applications on the Stellar network. By integrating the Stellar community's primary resources, Stellar-plus offers developers an efficient, easy-to-use toolkit. This library simplifies the complexities of Stellar network interaction, making it accessible for both novice and experienced developers alike.

Features

  • Account Handling: Seamless management of signatures throughout the transaction lifecycle.
  • Asset Management: Full suite of asset management capabilities, including standard and custom assets.
  • Core Engines: Essential for building, submitting, signing, and processing transactions on the Stellar network.
  • Contract Development: Simplifies the development of decentralized applications (dApps).
  • RPC Integration: Connects to and leverages various RPC services for a broader range of applications.
  • Plugins and Extensions: Supports plugins and tools to enhance functionality and tailor the library to specific needs.

Quick start

Using npm to include js-stellar-plus in your own project:

npm install --save stellar-plus

Install

Install it using npm:

npm install --save stellar-plus

require/import it in your JavaScript:

var StellarPlus = require('stellar-plus')

or

import { StellarPlus } from 'stellar-plus'

Documentation

For the full documentation, refer to our Gitbook Documentation.

Testing

Quality being a core pillar of Stellar Plus, to ensure a high level of confiability we aim at keep a high level of test coverage throughout the whole library. All tests written currently fall within one of the following categories:

  • Unit tests for specific localized behaviour
  • Integration tests to cover whole features and ledger integration

To run all tests locally, one can run the following command:

npm run test

This will trigger both the suit of unit and integrations tests, outputting their combined coverage to the directory ./src/coverage/all. This is the metric used as reference when merging implementation to the main branch and releasing new versions.

Unit Tests

As the unit tests aim at enforcing locallized behaviour, they are implemented within their reference features directory and can be identified by the file name pattern *.unit.test.ts.

To execute only the unit tests locally, one can run the command:

npm run test-unit

This will trigger the suit of unit tests only, outputting its coverage to the directory ./src/coverage/unit.

Integration Tests

As the integration tests aim at guaranteeing a great level of confidence about whole feature's behaviour, by default all integration tests verify complete workable use cases.

Testing functionalities against a DLT poses a challenge as public testnets can introduce external interference or be out of reach at specific time. Therefore, all integration tests in Stellar Plus, leverage a Stellar Test Ledger feature, originally developed by Cheesecakelabs for the open source project Hyperledger Cacti.

The Stellar Test Ledger can be found within the @hyperledger/cactus-test-tooling package or directly available through Stellar Plus as well. It pulls up and manages the Stellar Quickstart Docker Image to start a pristine version of the Stellar ledger and all its services without any external interference.

Each integration use case is tested against a pristine ledger with no existing history to ensure maximum isolation of the feature while still verifying agains a real production-like environment.

To execute only the integration tests locally, one can run the command:

npm run test-integration

This will trigger the suit of integration tests only, outputting its coverage to the directory ./src/coverage/integration.