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

@sky-ring/orbit

v0.1.2

Published

Mini TON Blockchain Server

Downloads

3

Readme

Orbit

PyPI version

Orbit is a GraphQL server wrapper around @ton-community/sandbox, designed to provide a mini TON Blockchain Server. Its purpose is to offer an easily launchable Blockchain environment (similar to testnet) for seamless and thorough project testing before deploying to mainnet. The Rift framework will leverage Orbit to provide a multi-contract testing framework for TON development.

Why Use Orbit?

While Sandbox itself is a valuable tool, it lacks direct persistence of Blockchain state and transactions, and is primarily tailored for node.js environments. Orbit serves as a complementary tool, addressing these limitations by providing enhanced functionalities. As a local server, it ensures privacy and offers maximum flexibility before the project's initial launch on testnet or mainnet.

What's Next?

Currently, Orbit provides a GraphQL server for making calls. We have plans to support ton-api-v4, which will minimize code changes required during integration.

How to Use

To get started with Orbit, follow these steps:

  1. Ensure you have a node environment set up.

  2. Install Orbit globally by running the following command:

    npm install -g @sky-ring/orbit
  3. Open up a terminal and type:

    orbit

If everything is okay, you will see a successful launch message.

  1. You can now send GraphQL queries to localhost:29194 or navigate to the GraphiQL page at localhost:29194/graphql.

GraphQL Definitions

Here are the GraphQL definitions for Query and Mutation along with brief descriptions:

type Mutation {
  spawn(id: String!): Boolean # Launches a blockchain instance with the specified ID
  sendBoc(id: String!, boc64: String!): [Tx] # Sends a BOC message to the specified network
  bringDown(params: BringDownInput!): Boolean # Shuts down a blockchain instance with removal capability
  createWallet(id: String!, walletId: String!, balance: String!): String # Creates a wallet with the specified name on the network with the given balance
  charge(id: String!, address: String!, value: String!): Boolean # Tops up the balance for the specified account on the network
}

type Query {
  version: Version # Retrieves the version of Orbit
  snapshots: [String] # Retrieves the list of stored snapshots of blockchains
  account(id: String!, address: String!): AccountInfo # Retrieves account information for the specified ID and address
}

Feel free to explore and utilize these GraphQL endpoints to interact with the Orbit server.