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

arere

v0.1.10

Published

Persistent terminal launcher with fuzzy search, plugins, and i18n support

Readme

arere

あれれ?何だっけ (Arere?) - A persistent terminal launcher for those who can't remember commands

CI npm version License: MIT

A TypeScript-based persistent terminal launcher. No need to remember commands—just launch arere and run your favorite actions with fuzzy search.

✨ Key Features

  • 🏃 Persistent - Once launched, run actions continuously
  • 🔍 Fuzzy Search - Find actions by typing partial names
  • 📝 TypeScript-powered - Write actions in TypeScript
  • 🎨 Interactive UI - Rich prompts, selections, and confirmations
  • 🔌 Plugin System - Share actions as npm packages
  • 🌍 Global/Local Actions - Support both global and project-specific actions
  • 🌏 Multilingual - English and Japanese (i18n ready)
  • 🔄 Hot Reload - Auto-reload actions on file changes

📦 Installation

npm install -g arere

Requirements: Node.js >= 18.0.0

🚀 Quick Start

1. Launch Arere

arere

On first launch, action directories are created:

  • Global: ~/.arere/
  • Project-specific: ./.arere/

2. Create Your First Action

# Create a global action
mkdir -p ~/.arere
cat > ~/.arere/hello.ts << 'EOF'
export const meta = {
  name: 'hello',
  description: 'Display Hello World',
}

export default async function() {
  console.log('Hello, World!')
}
EOF

3. Run Your Action

arere

Use arrow keys to select, press Enter to run, or type / to search.

📖 Writing Actions

Basic Structure

// ~/.arere/git-status.ts
export const meta = {
  name: 'git-status',
  description: 'Show Git status',
  category: 'git',
  tags: ['git', 'status'],
}

export default async function() {
  const { $ } = await import('execa')
  const { stdout } = await $`git status --short`
  console.log(stdout)
}

Interactive Input

// ~/.arere/git-commit.ts
import { prompt } from 'arere'

export const meta = {
  name: 'git-commit',
  description: 'Create a Git commit',
}

export default async function() {
  const message = await prompt.text({
    message: 'Enter commit message:',
    validate: (value) => value.length > 0 || 'Please enter a message',
  })

  const { $ } = await import('execa')
  await $`git commit -m ${message}`

  console.log('✓ Committed')
}

Selection Menu

// ~/.arere/git-switch.ts
import { prompt } from 'arere'

export const meta = {
  name: 'git-switch',
  description: 'Switch branch',
}

export default async function() {
  const { $ } = await import('execa')
  const { stdout } = await $`git branch --format=%(refname:short)`
  const branches = stdout.split('\n').filter(Boolean)

  const branch = await prompt.select({
    message: 'Select branch:',
    options: branches.map(b => ({ label: b, value: b })),
  })

  await $`git switch ${branch}`
  console.log(`✓ Switched to ${branch}`)
}

🔌 Plugin System

Install plugins to extend functionality:

npm install -g arere-plugin-git

Enable in config:

// ~/.arere/settings.json
{
  "plugins": {
    "arere-plugin-git": true
  }
}

Creating a Plugin

mkdir arere-plugin-example
cd arere-plugin-example
npm init -y
// src/index.ts
import { definePlugin } from 'arere'

export default definePlugin({
  name: 'example',
  actions: [
    './actions/action-1.ts',
    './actions/action-2.ts',
  ],
})

See Plugin Development Guide for details.

⚙️ Configuration

Configuration files:

  • Workspace: .arere/settings.json (project-specific)
  • User: ~/.arere/settings.json (global)
{
  "locale": "en",
  "actionsDir": "./.arere",
  "logLevel": "info"
}

Configuration Options

  • locale: UI language ("en" | "ja")
  • actionsDir: Project-specific action directory
  • logLevel: Logging level ("trace" | "debug" | "info" | "warn" | "error" | "fatal")

🎯 GitHub Actions Integration

Write CI/CD scripts in TypeScript! Replace bash scripts with type-safe, testable actions.

// .arere/deploy.ts
export default {
  name: 'deploy',
  description: 'Deploy to production',
  async run({ $, tui }) {
    const { stdout } = await $`git branch --show-current`
    if (stdout.trim() !== 'main') {
      throw new Error('Must be on main branch')
    }

    await $`npm run build`
    await $`npm run deploy`

    tui.output.success('Deployed!')
  }
}
# .github/workflows/deploy.yml
- uses: ./arere-action
  with:
    action: deploy

📚 Documentation

🛠️ Development

# Clone repository
git clone https://github.com/SphereStacking/Arere.git
cd Arere

# Install dependencies
npm install

# Build
npm run build

# Test
npm test

# Coverage
npm run test:coverage

See CONTRIBUTING.md if you want to contribute.

🔍 Troubleshooting

Actions Not Found

# Check action directories
ls -la ~/.arere
ls -la ./.arere

# Clear cache
rm -rf ~/.cache/arere

Plugin Not Loading

# Check if plugin is installed
npm list -g | grep arere-plugin

# Check configuration file
cat ~/.arere/settings.json

📝 License

MIT © SphereStacking

🙏 Acknowledgments

Powered by these open-source projects:

  • Ink - React for CLIs
  • fuzzysort - Fast fuzzy search
  • jiti - Runtime TypeScript loader
  • zod - TypeScript-first schema validation

あれれ?何だっけ (Arere?) - Even if you forget commands, arere is here for you.