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

@awarizon/kendra

v0.1.2

Published

The official Awarizon developer toolchain. Build, deploy and test ink! smart contracts without touching Rust.

Readme

Kendra — Awarizon Developer Toolchain

The Hardhat of Awarizon. Build, deploy, and test ink! smart contracts without touching Rust.

Rust is installed automatically on first compile. Developers only need Node.js.

Install

npm install -g @awarizon/kendra
# or without installing:
npx kendra init my_contract

Quick Start (5 minutes)

npx kendra init my_contract
cd my_contract
npm install

# In one terminal:
kendra node

# In another terminal:
kendra compile
kendra deploy

Commands

kendra init [name]

Scaffold a new contract project with a sample ink! contract, deploy script, and test file.

kendra init my_token

kendra compile [contract]

Compile ink! contracts to WebAssembly. Installs Rust and cargo-contract automatically if needed.

kendra compile           # compile all contracts in config
kendra compile MyToken   # compile a specific contract

Outputs to artifacts/ and generates TypeScript types in typechain/.

kendra deploy [--network <name>] [--contract <name>]

Deploy compiled contracts to local node, testnet, or mainnet.

kendra deploy                         # deploy to local (default)
kendra deploy --network testnet       # deploy to testnet
kendra deploy --network mainnet --contract MyToken

Saves deployment addresses to deployments/<network>.json.

kendra node

Start a local Awarizon development node (--dev mode, RPC at ws://127.0.0.1:9944).

kendra node

kendra accounts [list|generate]

Manage accounts for development.

kendra accounts          # list dev accounts (//Alice, //Bob, etc.)
kendra accounts list     # same as above
kendra accounts generate # generate a new random account

kendra call <contract> <method> [args]

Call a deployed contract method (coming in next release).

kendra.config.ts

import { defineConfig } from '@awarizon/kendra'
import * as dotenv from 'dotenv'

dotenv.config()

export default defineConfig({
  networks: {
    local: {
      endpoint: 'ws://127.0.0.1:9944',
      accounts: ['//Alice'],
    },
    testnet: {
      endpoint: 'wss://testnet.awarizon.com',
      accounts: [process.env.DEPLOYER_MNEMONIC ?? ''],
    },
    mainnet: {
      endpoint: 'wss://rpc.awarizon.com',
      accounts: [process.env.DEPLOYER_MNEMONIC ?? ''],
    },
  },
  contracts: {
    MyToken: 'contracts/my_token',
  },
  compiler: {
    optimization: true,
  },
  typechain: {
    outDir: 'typechain',
  },
  defaultNetwork: 'local',
})

Writing Contracts

Kendra uses ink! 5.x contracts. The init command scaffolds a starter:

#![cfg_attr(not(feature = "std"), no_std, no_main)]

#[ink::contract]
mod my_contract {
    #[ink(storage)]
    pub struct MyContract {
        value: u32,
    }

    impl MyContract {
        #[ink(constructor)]
        pub fn new(initial_value: u32) -> Self {
            Self { value: initial_value }
        }

        #[ink(message)]
        pub fn get(&self) -> u32 { self.value }

        #[ink(message)]
        pub fn set(&mut self, new_value: u32) {
            self.value = new_value;
        }
    }
}

See templates/token/lib.rs for a full ERC-20 token example.

TypeChain

After compiling, Kendra generates TypeScript types in typechain/:

// typechain/MyContract.ts — auto-generated
export interface MyContractQuery {
  get(): Promise<number>
}
export interface MyContractTx {
  set(newValue: number): Promise<TxResult>
}

Programmatic API

Use kendra from deploy scripts or tests:

import { kendra } from '@awarizon/kendra'

const [alice] = await kendra.getAccounts()

const result = await kendra.deploy('MyContract', [42], {
  signer: alice,
  network: 'local',
})

console.log('Deployed to:', result.address)

Networks

| Network | Endpoint | |---------|----------| | local | ws://127.0.0.1:9944 | | testnet | wss://testnet.awarizon.com | | mainnet | wss://rpc.awarizon.com |

Environment Setup

Kendra auto-installs on first kendra compile:

  1. Rust toolchain (rustup)
  2. wasm32-unknown-unknown target
  3. cargo-contract (ink! compiler)

This takes ~2-3 minutes on first install. Subsequent compiles are instant.

Project Structure

my_contract/
├── contracts/
│   └── my_contract/
│       ├── lib.rs          ← Write your ink! contract here
│       └── Cargo.toml
├── tests/
│   └── my_contract.test.ts
├── scripts/
│   └── deploy.ts
├── artifacts/              ← Compiled .wasm and .json (auto-generated)
├── typechain/              ← TypeScript types (auto-generated)
├── deployments/            ← Deployment records (auto-generated)
└── kendra.config.ts        ← Project configuration