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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@venturialstd/inbestgo

v0.0.4

Published

Inbestgo Integration Module for Venturial

Downloads

398

Readme

@venturialstd/inbestgo

Inbestgo Integration Module for Venturial - A NestJS module for integrating with the Inbestgo investment platform API.

Overview

This module provides seamless integration with the Inbestgo API, allowing you to:

  • Lookup and manage user information by phone number
  • Create and track investment transactions
  • Manage user KYC status
  • Track transaction history and status

Installation

npm install @venturialstd/inbestgo

Usage

Import the Module

import { Module } from '@nestjs/common';
import { InbestgoModule } from '@venturialstd/inbestgo';

@Module({
  imports: [InbestgoModule],
})
export class AppModule {}

Using Services

InbestgoUserService

import { InbestgoUserService, INBESTGO_ENVIRONMENTS } from '@venturialstd/inbestgo';

@Injectable()
export class YourService {
  constructor(private readonly inbestgoUserService: InbestgoUserService) {}

  async lookupUser(phoneNumber: string) {
    const user = await this.inbestgoUserService.lookupUserByPhone(
      phoneNumber,
      'your-api-key',
      INBESTGO_ENVIRONMENTS.SANDBOX
    );
    return user;
  }

  async getOrCreateUser(phoneNumber: string) {
    const user = await this.inbestgoUserService.getOrCreate(
      phoneNumber,
      'your-api-key',
      INBESTGO_ENVIRONMENTS.SANDBOX
    );
    return user;
  }
}

InbestgoTransactionService

import { InbestgoTransactionService, INBESTGO_ENVIRONMENTS } from '@venturialstd/inbestgo';

@Injectable()
export class YourService {
  constructor(
    private readonly inbestgoTransactionService: InbestgoTransactionService
  ) {}

  async createTransaction() {
    const transaction = await this.inbestgoTransactionService.createTransaction(
      '+1234567890',
      'transaction-id',
      '0xabcdef...',
      'ethereum',
      'USDC',
      '100.00',
      'your-api-key',
      INBESTGO_ENVIRONMENTS.SANDBOX
    );
    return transaction;
  }
}

Entities

InbestgoUser

  • id: Database UUID
  • inbestgoUserId: Inbestgo platform user ID
  • firstName: User's first name
  • lastName: User's last name
  • email: User's email address
  • phoneNumber: User's phone number
  • status: User status (NOT_REGISTERED, CREATED, KYC_INITIATED, KYC_COMPLETED)
  • createdAt: Creation timestamp
  • updatedAt: Last update timestamp

InbestgoTransaction

  • id: Database UUID
  • inbestgoUserId: Reference to InbestgoUser
  • transactionId: Unique transaction identifier
  • txHash: Blockchain transaction hash
  • blockchain: Blockchain network name
  • amount: Transaction amount
  • token: Token symbol
  • status: Transaction status (INITIATED, SUCCEEDED, FAILED)
  • description: Optional description
  • createdAt: Creation timestamp
  • updatedAt: Last update timestamp

Constants

INBESTGO_ENVIRONMENTS

enum INBESTGO_ENVIRONMENTS {
  SANDBOX = 'SANDBOX',
  PRODUCTION = 'PRODUCTION',
}

INBESTGO_USER_STATUS

enum INBESTGO_USER_STATUS {
  NOT_REGISTERED = 'NOT_REGISTERED',
  CREATED = 'CREATED',
  KYC_INITIATED = 'KYC_INITIATED',
  KYC_COMPLETED = 'KYC_COMPLETED',
}

INBESTGO_TRANSACTION_STATUS

enum INBESTGO_TRANSACTION_STATUS {
  INITIATED = 'INITIATED',
  SUCCEEDED = 'SUCCEEDED',
  FAILED = 'FAILED',
}

Configuration

The module requires TypeORM configuration with the InbestgoUser and InbestgoTransaction entities included.

API Endpoints Used

  • GET /ommacash/user?phoneNumber={phone} - Lookup user by phone number
  • POST /ommacash/transactions - Create transaction

Dependencies

  • @nestjs/common
  • @nestjs/typeorm
  • @nestjs/axios
  • @venturialstd/core
  • @dataui/crud-typeorm
  • typeorm
  • class-validator
  • class-transformer

License

MIT