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

fr3kpai

v1.2.0

Published

Android-Adapted Personal AI Infrastructure (PAI) - Complete AI system for Termux/Android

Readme

FR3K PAI - Android-Adapted Personal AI Infrastructure

FR3K PAI Logo Version Platform License

Complete AI Infrastructure System adapted for Android/Termux and cross-platform deployment

[Quick Start] • FeaturesInstallationUsageDocumentation


🎯 What is FR3K PAI?

FR3K PAI is a packaged version of the Personal AI Infrastructure, specifically adapted for Android/Termux and optimized for cross-platform deployment. It provides:

  • 🚀 One-command installation via npx fr3kpai
  • 🤖 Complete AI system with MCP tool creation
  • 📱 Android-optimized for Termux environment
  • 🔧 Cross-platform support (Linux, macOS, Windows)
  • ⚡ Zero-config setup and validation

🚀 Quick Start

Install and Initialize (One Command)

# Install and setup FR3K PAI for Android Termux
npx fr3kpai setup-android

# Or initialize for any platform
npx fr3kpai init --environment android

Basic Usage

# Validate your installation
npx fr3kpai validate

# Check system status
npx fr3kpai status

# Create a new MCP tool
npx fr3kpai create-tool my-validator --type validator

# Initialize voice system
npx fr3kpai voice-init

# Speak text
npx fr3kpai speak "Hello, FR3K PAI is ready!"

# Check voice status
npx fr3kpai voice-status

Features

🎯 Core Capabilities

  • 🔧 Dynamic MCP Tool Creation - Create custom tools instantly
  • 🤖 Specialized AI Agents - Pre-configured for different tasks
  • 📊 System Validation - Automatic health checks and diagnostics
  • 🗂️ Memory Management - FR3K memory system integrated
  • 📱 Android Optimization - Termux-specific configurations
  • 🎤 Voice Interaction - TTS/STT with free, offline capabilities

🌍 Multi-Platform Support

  • Android/Termux - Primary target with ARM64 optimization
  • Linux - Native Linux environments
  • macOS - Homebrew integration
  • Windows - WSL and native Windows support

🛠️ Developer Tools

  • CLI Interface - Command-line management
  • MCP Tools - Dynamic tool creation system
  • Templates - Pre-built tool templates
  • Validation - System health and compatibility checks

📦 Installation

Option 1: Direct Install (Recommended)

# Install globally for easy access
npm install -g fr3kpai

# Or use without installation
npx fr3kpai setup-android

Option 2: Per-Project Install

# Install for current project
npm install fr3kpai

# Use in your project
import { initializeFR3KPAI } from 'fr3kpai';

Option 3: Manual Setup

# Clone and build
git clone https://github.com/fr3k-ai/fr3kpai.git
cd fr3kpai
npm install
npm run build
npm link

💻 Usage

Command Line Interface

# Initialize system
fr3kpai init [--environment <env>] [--verbose]

# Quick Android setup
fr3kpai setup-android [--verbose]

# Validate installation
fr3kpai validate [--environment <env>] [--verbose]

# Check system status
fr3kpai status

# Create MCP tools
fr3kpai create-tool <name> [--type <type>] [--description <desc>]

# Voice commands
fr3kpai voice-init [--tts-engine <engine>] [--stt-engine <engine>] [--voice <voice>]
fr3kpai speak "<text>" [--save <path>]
fr3kpai transcribe <audio-file>
fr3kpai listen [--continuous] [--timeout <seconds>]
fr3kpai voice-status

Voice Interaction

# Initialize voice system (downloads models)
fr3kpai voice-init

# Make the system speak
fr3kpai speak "Hello, I am FR3K PAI!"

# Save speech to file
fr3kpai speak "Welcome message" --save welcome.wav

# Check voice system status
fr3kpai voice-status

# Start voice interaction (demo)
fr3kpai listen --continuous

Programmatic Usage

import { initializeFR3KPAI, setupAndroidTermux, VoiceManager } from 'fr3kpai';

// Quick Android setup
const paiSystem = await setupAndroidTermux(true);

// Custom initialization
const system = await initializeFR3KPAI({
  environment: 'android',
  skipSetup: false,
  verbose: true
});

// Get system info
const paths = system.getPaths();
const config = await system.getConfig();

MCP Tool Creation

# Create a validator tool
fr3kpai create-tool json-validator --type validator --description "Validates JSON data"

# Create an analyzer tool
fr3kpai create-tool code-analyzer --type analyzer --description "Analyzes code quality"

# Create a transformer tool
fr3kpai create-tool markdown-converter --type transformer --description "Converts between formats"

🏗️ Architecture

Core Components

fr3kpai/
├── 🧠 Core System
│   ├── Environment Detection & Setup
│   ├── System Validation & Health Checks
│   └── Configuration Management
├── 🛠️ MCP Tools Framework
│   ├── Dynamic Tool Creation
│   ├── Template System
│   └── Tool Management
├── 📱 Platform Adaptations
│   ├── Android/Termux Optimizations
│   ├── Cross-Platform Compatibility
│   └── Environment-Specific Configs
└── 🤖 AI Integration
    ├── PAI System Compatibility
    ├── Claude Code Integration
    └── Memory Management

Android Optimizations

  • ARM64 Native - Optimized for Android ARM64 architecture
  • Termux Integration - Native Termux package manager support
  • Storage Management - Efficient file system usage
  • Background Services - Support for persistent processes
  • Network Optimization - Android-aware network handling

🧪 System Requirements

Android (Primary)

  • Termux - Terminal emulator for Android
  • Node.js 18+ - Via Termux packages
  • Bun - Optional but recommended for performance
  • pkg - Termux package manager

Other Platforms

  • Node.js 18+ - Required runtime
  • npm/yarn/bun - Package manager
  • Git - For version control integration

📚 Documentation

Core Documentation

Examples and Templates

CLI Help

fr3kpai --help          # General help
fr3kpai <command> --help # Command-specific help

🔧 Configuration

Environment Variables

# Core environment
export ANDROID_PAII=true              # Enable Android optimizations
export PAI_HOME="$HOME/pai"           # PAI installation directory
export FR3K_CONFIG="$HOME/.fr3kpai"   # FR3K configuration directory

# Runtime options
export FR3K_VERBOSE=true              # Enable verbose logging
export FR3K_ENVIRONMENT=android       # Set environment type

Configuration File

{
  "environment": "android",
  "platform": "termux",
  "version": "1.0.0",
  "paths": {
    "home": "/data/data/com.termux/files/home",
    "config": "/data/data/com.termux/files/home/.fr3kpai"
  },
  "features": {
    "mcpTools": true,
    "validation": true,
    "androidOptimizations": true
  }
}

🐛 Troubleshooting

Common Issues

Termux Environment Not Detected

# Ensure running in Termux
echo $PREFIX | grep com.termux

Permission Errors

# Fix permissions for Termux
termux-setup-storage

Package Installation Issues

# Update Termux packages
pkg update && pkg upgrade

Validation and Diagnostics

# Run comprehensive validation
fr3kpai validate --verbose

# Check system status
fr3kpai status

# Health check
npx fr3kpai validate

🤝 Contributing

Development Setup

# Clone repository
git clone https://github.com/fr3k-ai/fr3kpai.git
cd fr3kpai

# Install dependencies
bun install

# Run in development mode
bun run dev

# Build for distribution
bun run build

# Run tests
bun test

Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📄 License

MIT License - see LICENSE file for details.


🙏 Acknowledgments

  • Personal AI Infrastructure (PAI) - Original system architecture
  • Claude Code - AI integration platform
  • Termux - Android terminal environment
  • Bun - High-performance JavaScript runtime

⬆ Back to Top

Made with ❤️ for the AI community