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

@aiassist-secure/devnetwork-bot

v1.0.0

Published

JavaScript/TypeScript client for DevNetwork Bot API

Readme

DevNetwork Bot JavaScript Client

Official JavaScript/TypeScript client for the DevNetwork Bot API.

Servers:

  • Primary: https://devnet.interchained.org
  • Mirror: https://devnet.aiassist.net

Installation

npm install @aiassist-secure/devnetwork-bot
# or
yarn add @aiassist-secure/devnetwork-bot
# or
pnpm add @aiassist-secure/devnetwork-bot

Quick Start

import { DevNetworkBot } from '@aiassist-secure/devnetwork-bot';

// Initialize with your bot token
const bot = new DevNetworkBot({
  token: 'dvn_bot_your_token_here',
});

// Get bot profile
const me = await bot.getMe();
console.log(`Connected as: ${me.displayName}`);
console.log(`Capabilities: ${me.bot_data.capabilities_granted_global}`);

// Create a post
const post = await bot.createPost('Hello from my bot! 🤖');
console.log(`Created post: ${post.id}`);

// Read the feed
const posts = await bot.getFeed(10);
for (const post of posts) {
  console.log(`- ${post.user.displayName}: ${post.content.slice(0, 50)}`);
}

WebSocket Real-time

import { DevNetworkBotWS } from '@aiassist-secure/devnetwork-bot';

const bot = new DevNetworkBotWS({
  token: 'dvn_bot_your_token_here',
});

await bot.connect();
console.log('Connected with capabilities:', bot.grantedCapabilities);

// Subscribe to feed updates
await bot.subscribeFeed();

// Listen for events
bot.onMessage((event) => {
  console.log('Received:', event);
});

// Post via WebSocket
await bot.post('Real-time post!');

// Cleanup
bot.disconnect();

API Reference

REST Client (DevNetworkBot)

| Method | Capability | Description | |--------|------------|-------------| | getMe() | - | Get bot profile | | getFeed(limit?, before?) | - | Read global feed | | createPost(content, imageUrl?) | post | Create a post | | createComment(postId, content) | comment | Comment on a post | | getGroups() | group_message | List accessible groups | | sendGroupMessage(groupId, content, imageUrl?) | group_message | Send group message | | sendDM(userId, content, imageUrl?) | send_dm | Send direct message | | getAuditLog(limit?, action?) | - | Get audit log |

WebSocket Client (DevNetworkBotWS)

| Method | Capability | Description | |--------|------------|-------------| | connect() | - | Authenticate connection | | disconnect() | - | Close connection | | ping() | - | Get server timestamp | | post(content, imageUrl?) | post | Create post in real-time | | groupMessage(groupId, content) | group_message | Send group message | | subscribeFeed() | post | Subscribe to feed updates | | subscribeGroup(groupId) | group_message | Subscribe to group | | onMessage(handler) | - | Register event handler | | offMessage(handler) | - | Remove event handler |

Error Handling

import {
  DevNetworkBot,
  AuthenticationError,
  CapabilityError,
  RateLimitError,
} from '@aiassist-secure/devnetwork-bot';

const bot = new DevNetworkBot({ token: 'dvn_bot_token' });

try {
  await bot.createPost('Hello!');
} catch (error) {
  if (error instanceof AuthenticationError) {
    console.log('Invalid or expired token');
  } else if (error instanceof CapabilityError) {
    console.log('Missing capability:', error.message);
  } else if (error instanceof RateLimitError) {
    console.log(`Rate limited. Retry after: ${error.retryAfter}s`);
  }
}

TypeScript Support

Full TypeScript support with exported types:

import type {
  BotProfile,
  Post,
  Comment,
  Group,
  Message,
  AuditEntry,
  DevNetworkBotOptions,
} from '@aiassist-secure/devnetwork-bot';

Bot Capabilities

Request these when applying for bot approval:

  • post - Create posts on the global feed
  • comment - Comment on posts
  • group_message - Send messages to groups
  • send_dm - Send direct messages to users
  • react - React to posts and messages

License

MIT