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

@hasna/assistants

v1.1.72

Published

Personal AI assistant that runs in your terminal — powered by Claude

Downloads

8,829

Readme

@hasna/assistants

A general-purpose AI assistant that runs in your terminal. Built with Ink, powered by Claude.

Not just for coding — this assistant helps with research, writing, task management, automation, and anything you need.

Install

bun add -g @hasna/assistants

Or run directly:

bunx @hasna/assistants

Quick Start

  1. Set your API key:
export ANTHROPIC_API_KEY="sk-ant-..."
  1. Start the assistant:
assistants

That's it. Start chatting.

Features

  • Interactive terminal chat with Claude
  • Execute bash commands with approval
  • Read, write, and edit files
  • Web search and content fetching
  • Custom skills (reusable prompt templates)
  • Hooks (lifecycle interceptors for safety and automation)
  • Memory persistence across sessions
  • Session history and resumption
  • Voice input/output (optional)
  • Connectors for external services (Notion, Gmail, Linear, etc.)
  • Multi-agent coordination
  • Scheduling and background tasks
  • Project and plan management

CLI

# Interactive mode
assistants

# Short alias
ast

# Run a one-off prompt
assistants -p "What does this codebase do?"

# JSON output
assistants -p "Summarize this project" --output-format json

# Stream JSON events
assistants -p "Explain this code" --output-format stream-json

# Auto-approve specific tools
assistants -p "Fix the bug" --allowed-tools "Read,Edit,Bash"

# Continue last conversation
assistants --continue

# Resume a specific session
assistants --resume <session_id>

Interactive Commands

| Command | Description | |---------|-------------| | /help | Show available commands | | /exit | Exit the assistant | | /new | Start a new session | | /skills | List available skills | | /hooks | Manage hooks | | /connectors | List connectors | | /memory | View/manage memory | | /model | Show/change model | | /config | Show/edit configuration | | /schedule | Create a scheduled task | | /voice | Toggle voice mode |

Prefix with ! to run a shell command: !ls -la

Skills

Skills are reusable prompts in SKILL.md files:

---
name: code-review
description: Review code for issues
argument-hint: <file-path>
allowed-tools: Read, Grep
---

Review the code at $ARGUMENTS and provide feedback on:
1. Potential bugs
2. Performance issues
3. Security concerns

Place in ~/.assistants/skills/code-review/SKILL.md or .assistants/skills/code-review/SKILL.md.

Hooks

Hooks intercept assistant behavior at lifecycle points:

{
  "PreToolUse": [
    {
      "matcher": "Bash",
      "hooks": [
        {
          "type": "command",
          "command": "./validate.sh",
          "timeout": 5000
        }
      ]
    }
  ]
}

Events: PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SessionEnd, Stop, and more.

Configuration

~/.assistants/           # Global
├── config.json
├── sessions/
├── skills/
└── hooks.json

.assistants/             # Project-level
├── config.json
├── skills/
└── hooks.json

Programmatic Usage

import { EmbeddedClient } from '@hasna/assistants';

const client = new EmbeddedClient(process.cwd(), {
  systemPrompt: 'You are a helpful assistant.',
  allowedTools: ['Read', 'Write', 'Bash'],
});

client.onChunk((chunk) => {
  if (chunk.type === 'text') process.stdout.write(chunk.content);
});

await client.initialize();
await client.send('What files are in this directory?');
client.disconnect();

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | ANTHROPIC_API_KEY | Yes | Claude API access | | OPENAI_API_KEY | No | Whisper STT + OpenAI models | | ELEVENLABS_API_KEY | No | Voice TTS | | EXA_API_KEY | No | Enhanced web search |

Requirements

Development

git clone https://github.com/hasna/assistants.git
cd assistants
pnpm install
pnpm dev

License

Apache-2.0