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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@akashnetwork/akashjs

v0.11.0

Published

Akash Network JS SDK

Downloads

35,475

Readme

akashjs

build:main

Connect and communicate with the Akash Network. Pure JS library can be used in browser for unsigned transactions, and with node.js for full compatibility.

Packages

This repository is the home of akashjs, a library designed to facilitate interaction with the Akash Network. However, for full functionality, users will need to integrate several additional libraries. The Akash Network is built using the Cosmos SDK and utilizes the Stargate client for transaction signing and broadcasting. These packages are specifically tailored to enhance interaction with the Akash Network.

| Package | Description | | ------- | ----------- | | @akashnetwork/akashjs | Main library for interacting with the Akash Network | | @akashnetwork/akash-api | Akash API generated from Akash API for interacting with the Akash Network. Documentation is available for node and provider. | | @cosmjs/stargate | A client library for the Cosmos SDK 0.40+ (Stargate). | | @cosmjs/proto-signing | A library for signing and broadcasting transactions using the Cosmos SDK. |

Compatibility

Compatible with modern browsers, nodejs 14+ and Webpack 5

Installation

To install the library, run the following command:

npm install @akashnetwork/akashjs

Or use the UMD bundle (the object returned is Window.akjs):

<script type="text/javascript" src="https://unpkg.com/@akashnetwork/[email protected]/umd/akashjs.js" ></script>

Getting Started

The following example demonstrates how to fetch the state of the network.

import { getMetadata } from "@akashnetwork/akashjs/build/network/index.js";

console.log(JSON.stringify(await getMetadata("mainnet"), null, 2))

More elborate examples can be found in the examples directory.

Contributing

Project Stack

This repository is primarily written in TypeScript and uses Node.js version 18. We use Webpack 5 for UMD bundling. These tools ensure that our development environment is consistent and our builds are stable.

Development Setup

  1. Prerequisites

    • Node.js 18 or higher
    • npm or yarn
    • Go 1.19 or higher (for akash-api dependency)
  2. Installation

# Clone the repository
git clone https://github.com/akash-network/akashjs
cd akashjs

# Install dependencies
npm install

# Setup git hooks
npm run setup-git-hooks
  1. Development Commands
# Watch mode for development
npm run dev:watch

# Run tests
npm run test

# Run linting
npm run lint

# Fix linting issues
npm run lint:fix

# Format code
npm run format

# Build the project
npm run build

Development Guidelines

  1. TypeScript

    • Use strict TypeScript types
    • Avoid using any type where possible
    • Document complex types with JSDoc comments
  2. Testing

    • Write unit tests for new features
    • Maintain test coverage
    • Run npm test before submitting PRs
  3. Code Style

    • Follow the existing code style
    • Use Prettier for formatting
    • Follow ESLint rules

Automated CI Checks and Releases

Our project enforces high standards of code quality and consistency through:

  • Code Linting: ESLint analyzes code for potential errors and style issues
  • Code Formatting: Prettier ensures consistent code formatting
  • Commit Linting: Commits must follow Conventional Commits specification
  • Automated Testing: Tests run automatically on pull requests
  • Semantic Release: Automated versioning based on commit messages
  • Continuous Integration: Validates PRs and manages releases

To enable git hooks for local development:

npm run setup-git-hooks

Pull Request Process

  1. Create a feature branch from main
  2. Make your changes following our guidelines
  3. Ensure all tests pass
  4. Update documentation as needed
  5. Submit a PR with a clear description of changes
  6. Wait for review and address any feedback

Debugging Tips

  • Use the dev:watch command for live reloading during development
  • Check the examples directory for implementation references
  • Use Jest's debugging capabilities with --inspect flag
  • Set DEBUG=akashjs:* environment variable for detailed logs

PRs are welcome! By adhering to these guidelines and leveraging our automated systems, we can maintain a high-quality codebase and streamline our development processes.