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

@1naichii/naichii-agent

v1.2.1

Published

AI Agent Framework with JavaScript and SQL guidelines, rules, and memory management for consistent code quality

Readme

AI Agent Framework

A comprehensive framework for managing AI agent context, rules, and memory for JavaScript and SQL development.

🚀 Quick Start

One Command Installation

Install the framework in any project with:

npx @1naichii/naichii-agent install

What happens:

  • ✅ Interactive component selection
  • ✅ Installs coding guidelines and best practices
  • ✅ Sets up context management for AI agents
  • ✅ Configures memory systems for consistent behavior
  • ✅ Creates project documentation
  • ✅ Updates .gitignore automatically

Example:

$ npx @1naichii/naichii-agent install

╔═══════════════════════════════════════╗
║     AI AGENT FRAMEWORK INSTALLER      ║
╚═══════════════════════════════════════╝

✨ Installer v1.0.0

📂 Installation directory: /your/project

? Select components to install: (Press <space> to select)
❯◉ JavaScript Rules & Guidelines
 ◉ SQL Rules & Guidelines
 ◉ JavaScript Memory Context
 ◉ SQL Memory Context

📦 Installing selected components...
✓ Installed JavaScript Rules
✓ Installed SQL Rules
✓ Installed JavaScript Memory
✓ Installed SQL Memory
✓ Created README.md
✓ Updated .gitignore

✅ Installation complete!

What You Get

The framework provides:

  • JavaScript Rules & Guidelines: Best practices, security, testing, async patterns, and optimization
  • SQL Rules & Guidelines: Query optimization, security, stored procedures, and advanced features
  • Memory Context: Persistent context that helps AI agents maintain consistency
  • Structured Organization: Clear separation between rules, context, and memory

📦 Installation Options

Interactive Installation (Recommended)

npx @1naichii/naichii-agent install

Select the components you need:

  • JavaScript Rules & Guidelines
  • SQL Rules & Guidelines
  • JavaScript Memory Context
  • SQL Memory Context

List Available Components

npx @1naichii/naichii-agent list

📁 Framework Structure

After installation, your project will have:

your-project/
└── .naichii-agent/
    ├── README.md
    ├── rules/
    │   ├── javascript/
    │   │   ├── README.md
    │   │   ├── basics.md
    │   │   ├── async.md
    │   │   ├── security.md
    │   │   ├── testing.md
    │   │   ├── optimization.md
    │   │   └── advanced.md
    │   └── sql/
    │       ├── README.md
    │       ├── basics.md
    │       ├── security.md
    │       ├── optimization.md
    │       ├── advanced.md
    │       └── stored-procedures.md
    └── memory/
        ├── javascript/
        │   └── js-memory.md
        └── sql/
            └── sql-memory.md

🔄 Updating

Keep your framework up-to-date:

npx @1naichii/naichii-agent install

The installer will update existing installations and preserve your customizations.

📚 Documentation

JavaScript Rules

  • basics.md - Core JavaScript syntax, variables, functions, and patterns
  • async.md - Promises, async/await, error handling
  • security.md - Input validation, XSS prevention, authentication
  • testing.md - Unit tests, integration tests, best practices
  • optimization.md - Performance tuning, memory management
  • advanced.md - Design patterns, advanced techniques

SQL Rules

  • basics.md - SQL fundamentals, queries, joins
  • security.md - SQL injection prevention, access control
  • optimization.md - Query optimization, indexing strategies
  • advanced.md - Window functions, CTEs, advanced queries
  • stored-procedures.md - Stored procedure best practices

Memory Context

  • js-memory.md - JavaScript patterns, common issues, solutions
  • sql-memory.md - SQL patterns, query templates, optimization notes

🎯 Use Cases

For Development Teams

  • Maintain consistent coding standards across the team
  • Onboard new developers with clear guidelines
  • Reduce code review time with automated best practices

For AI Agents

  • Provide context for better code generation
  • Maintain consistency across sessions
  • Reference best practices automatically

For Projects

  • Document coding standards in a structured way
  • Keep guidelines version-controlled
  • Share knowledge across team members

🤝 Contributing

Contributions are welcome! This framework is designed to be:

  • Extensible - Add new languages and domains
  • Customizable - Adapt rules to your needs
  • Collaborative - Share improvements with the community

📄 License

MIT License - see LICENSE file for details

🔗 Links

📋 Available Commands

# Install/update framework
npx @1naichii/naichii-agent install

# List available components
npx @1naichii/naichii-agent list

# Show help
npx @1naichii/naichii-agent --help

# Show version
npx @1naichii/naichii-agent --version

🧪 Testing

Before publishing or contributing, test the installer:

# Install dependencies
npm install

# Test locally with npm link
npm link

# Test in another project
cd /path/to/test-project
npx @1naichii/naichii-agent install

# Run tests
npm test

See INSTALLATION.md for detailed publishing instructions.

📝 Changelog

See CHANGELOG.md for version history and updates.

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribute

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

Built with ❤️ for better AI-assisted development