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

phantomaton

v0.1.1

Published

A lightweight, modular framework for AI-powered code exploration and development.

Readme

Phantomaton 🔮

A lightweight, modular framework for AI-powered code exploration and development.

Quickstart 🚀

  1. Install:

    npm install -g phantomaton
  2. Configure:

    # ~/.phantomaton/configuration.json
    {
      "phantomaton-projects": {
        "home": "~/projects"
      },
      "phantomaton-anthropic": {
        "apiKey": "your-anthropic-api-key"
      }
    }
  3. Run:

    phantomaton

Overview 🌟

Phantomaton provides a flexible, extensible framework for exploring, generating, and managing code across multiple projects. By default, it operates as a coding companion that can read, write, and interact with project files.

Usage 🛠️

Command-line Usage

# Use default persona
phantomaton

# Optionally specify a custom persona
phantomaton path/to/custom/persona.md

Programmatic Usage

import phantomaton from 'phantomaton';

phantomaton(`
/install(module:phantomaton-anthropic)
/install(module:phantomaton-projects)

Custom persona details...
`);

Programmatic Options

phantomaton(prompt, {
  configurations: {              // Configuration overrides (see below)
    'phantomaton-gemini': {
      modalities: ['TEXT', 'IMAGE'],
      model: 'gemini-2.0-flash-preview-image-generation'
    }
  },
  install: ['phantomaton-gemini'] // Plugins to install
});

Configuration 🔧

Phantomaton supports layered configuration:

  1. Global Configuration: ~/.phantomaton/configuration.json
  2. Local Configuration: .phantomaton/configuration.json
  3. Programmatic Configuration: options.configuration

Configurations are merged, with local settings taking precedence.

Configuration Options

The default persona requires the following options to be configured:

  • phantomaton-projects.home: Directory where repositories are located
  • phantomaton-anthropic.apiKey: Anthropic API key for language model interactions

Module-specific configurations may be added as needed.

Default Persona 🤖

The default persona is a comprehensive code exploration and development companion:

Capabilities

  • Project management across multiple repositories
  • File reading, writing, and manipulation
  • Code generation and refactoring
  • Multi-language support
  • Intelligent code suggestions
  • Workflow optimization
  • Architectural analysis

Persona File Syntax

Persona files use Markdown with embedded Smarkup directives:

# My Custom Persona

/install(module:phantomaton-anthropic)
/install(module:phantomaton-projects)

## Persona Description

Custom configuration and personality traits...

Install Directive

The /install directive adds modules to the Phantomaton runtime:

  • Syntax: /install(module:module-name)
  • Multiple modules can be installed
  • Modules must be pre-installed via npm

Extensibility 💫

Phantomaton plugins are functions that accept a configuration and return an object with two key properties:

  • include: An array of dependent plugin module names to be recursively installed
  • install: An array of components to be added to the Phantomaton runtime

Example plugin structure:

export default (config) => ({
  // Optional: Other plugins to install first
  include: ['dependency-plugin-1', 'dependency-plugin-2'],
  
  // Components to install in the Phantomaton runtime
  install: [
    // Hierophant components like resolvers, providers, etc.
    someResolver(),
    someProvider(config)
  ]
});

Extend Phantomaton's functionality through the Phantomaton Plugins project or by creating your own custom plugins.

Contributing 🦄

Contributions welcome! Submit ideas, bug reports, and pull requests to our GitHub repository.

License 🔒

MIT License