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

@alien-worlds/aw-history-starter-kit

v0.0.10

Published

The History Tools Starter Kit is a robust package that implements the components of History Tools with dependencies such as MongoDB and eosjs. This inclusive package contains file dependencies for each process, namely: bootstrap, reader, filter, and proce

Downloads

13

Readme

History Tools Starter Kit

The History Tools Starter Kit is a robust package that implements the components of History Tools with dependencies such as MongoDB and eosjs. This inclusive package contains file dependencies for each process, namely: bootstrap, reader, filter, and processor.

Additionally, it encompasses data layer implementations for common components such as Abis, BlockRangeScanner, BlockState, Ship etc., which are integral to the mentioned above processes. The History Tools package contains the logic and domain layer implementation, while this Starter Kit presents the data layer implementation.

Essentially, the History Tools Starter Kit equips you with a ready-to-use framework for leveraging the power of History Tools. While History Tools can be employed with other dependencies, this Starter Kit offers a seamless experience for those seeking to utilize MongoDB and eosjs. Therefore, if your project necessitates these dependencies, this Starter Kit is your ideal starting point.

Dependencies

This package is dependent on the following packages:

Table of Contents

Installation

To add History Tools to your project, use the following command with your favorite package manager:

yarn add @alien-worlds/history-tools-starter-kit

Common Components

In the Common folder you will find all data layer implementations related to MongoDB collections or eosjs tools. This includes mappers for transforming documents to entities and vice versa, service implementations, and various types. These resources are conveniently available for direct use when creating the components for your project.

To further enhance ease-of-use, this package provides creators that take the heavy lifting out of creating an instance of each component. The creators automate the construction process, resulting in an efficient and streamlined development experience. The specific list of available creators :

  • AbisCreator
  • BlockRangeScanner
  • BlockReaderCreator
  • BlockStateCreator
  • BlockchainServiceCreator
  • FeaturedContractsCreator
  • ProcessortaskQueueCreator
  • ShipAbisCreator
  • UnprocessedBlockQueueCreator

The use of these creators is very simple, just call the static create method and provide the expected arguments

// An example of creating an instance of the UnprocessedBlockQueue using a dedicated creator
const unprocessedBlockQueue = await UnprocessedBlockQueueCreator.create(
  mongoSource,
  { ...config }
);

More information about individual components can be found in this repository @alien-worlds/aw-history.

Processes

The remaining folders name correspond to the history tools processes and contain the necessary dependencies files. These files contain Dependencies classes that are initialized within the process or worker loader of the process.

  1. Bootstrap: Requires DefaultBootstrapDependencies passed to the bootstrap command. Dependencies:

    • BroadcastClient
    • Abis
    • BlockRangeScanner
    • FeaturedContracts
    • BlockState
    • BlockchainService
  2. Reader: Requires DefaultReaderDependencies passed to the reader command. Dependencies:

    • BroadcastClient
    • BlockRangeScanner

    The second file is ReaderWorkerLoaderDependencies which is instantiated in the worker loader and the path to this file is given in DefaultReaderDependencies. Dependencies:

    • BlockRangeScanner
    • BlockReader
    • BlockState
    • UnprocessedBlockQueue
  3. Filter: Requires DefaultFilterDependencies passed to the filter command. Dependencies:

    • BroadcastClient
    • UnprocessedBlockQueue

    The second file is FilterWorkerLoaderDependencies which is instantiated in the worker loader and the path to this file is given in DefaultFilterDependencies. Dependencies:

    • ProcessorTaskQueue
    • Abis
    • ShipAbis
    • FeaturedContracts
    • AntelopeSerializer
  4. Processor: Requires DefaultProcessorDependencies passed to the processor command. Dependencies:

    • BroadcastClient
    • ProcessorTaskQueue
    • Featured<ContractTraceMatchCriteria>
    • Featured<ContractDeltaMatchCriteria>

    The second file is ProcessorWorkerLoaderDependencies which is instantiated in the worker loader and the path to this file is given in DefaultProcessorDependencies. Dependencies:

    • MongoSource
    • AntelopeSerializer

Tutorials

Contributing

We welcome contributions from the community. Before contributing, please read through the existing issues on this repository to prevent duplicate submissions. New feature requests and bug reports can be submitted as an issue. If you would like to contribute code, please open a pull request.

License

This project is licensed under the terms of the MIT license. For more information, refer to the LICENSE file.