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

alice-code-analysis

v1.1.0

Published

ALICE SDK - Automated Logic Inspection & Code Evaluation CLI

Readme

ALICE SDK

Automated Logic Inspection & Code Evaluation - Command Line Interface

Installation

npm install -g @the-algorithm/alice

Quick Start

1. Initialize Configuration

alice init

You'll be prompted for:

  • ALICE API key (from your project dashboard)
  • Server URL (default: https://alice-server.vercel.app)
  • Your name and email

2. Analyze Your Code

# Analyze current directory
alice analyze

# Analyze specific directory
alice analyze ./my-project

3. Check Configuration

alice status

Commands

alice init

Interactive setup wizard to configure the SDK.

alice analyze [path]

Analyze code in the specified directory (or current directory if no path provided).

Options:

  • -s, --silent: Suppress detailed output (useful for CI/CD)

Example:

alice analyze ./src

alice status

Display current SDK configuration (API key, server URL, developer info).

alice config

Manage configuration settings.

Options:

  • --set-key <apiKey>: Update API key
  • --set-server <url>: Update server URL
  • --show: Display current configuration

Example:

alice config --set-key alice_new_key_here

Git Hook Integration

Pre-commit Hook

Automatically run ALICE analysis before each commit:

  1. Create .git/hooks/pre-commit:
#!/bin/sh
alice analyze --silent || exit 1
  1. Make it executable:
chmod +x .git/hooks/pre-commit

Now ALICE will automatically analyze your code before each commit and block the commit if critical issues are found.

Analysis Results

ALICE provides:

Technical Report (Developer View)

  • Quality score (0-100)
  • Deployment status (APPROVED, CAUTION, BLOCKED)
  • Detailed bug reports with:
    • Severity (CRITICAL, HIGH, MEDIUM, LOW)
    • File location and line number
    • Description of the issue
    • Impact analysis
    • Fix suggestions

Email Reports

Two separate emails are sent:

  1. Technical Report (to developer)

    • Bug list with fixes
    • No grades or assessments
    • Deployment status
  2. Management Assessment (to management)

    • Full performance review
    • Letter grade (A+ to D)
    • Role level assessment
    • Strengths and weaknesses
    • Historical tracking

Exit Codes

  • 0: Analysis successful, no critical issues
  • 1: Analysis failed or deployment blocked (critical issues found)

What ALICE Analyzes

Frontend (React/JavaScript/TypeScript)

  • Infinite loops in useEffect
  • XSS vulnerabilities
  • Performance issues
  • Accessibility violations
  • Missing error handling
  • Code complexity

Backend (Node.js/Python)

  • SQL injection vulnerabilities
  • Authentication issues
  • Exposed secrets
  • Missing error handling
  • CORS misconfigurations
  • Unsafe operations

Security

  • Code injection vulnerabilities
  • Weak cryptography
  • Hardcoded credentials
  • Path traversal risks
  • Unrestricted file uploads

Content Quality

  • Grammar and spelling in comments
  • Documentation completeness
  • Code comment quality

Excellence-Based Scoring

ALICE uses an excellence-based scoring system:

  • Base Score: 50 points

  • Earn points for best practices:

    • TypeScript usage: +15
    • Proper error handling: +10
    • Accessibility: +10
    • Performance optimizations: +10
    • Security best practices: +15
    • Clean architecture: +10
    • Testing patterns: +10
    • Documentation: +5
  • Lose points for issues:

    • Critical bugs: -40
    • Security vulnerabilities: -30
    • Missing async error handling: -25
    • Performance issues: -15
    • Accessibility violations: -10
    • High complexity: -15

Grade Thresholds

  • 95-100: A+ (True excellence)
  • 90-94: A (Excellent)
  • 85-89: A- (Very good)
  • 80-84: B+ (Good)
  • 75-79: B (Above average)
  • 70-74: B- (Average)
  • 65-69: C+ (Below average)
  • 60-64: C (Needs improvement)
  • 55-59: C- (Significant issues)
  • 0-54: D (Not production ready)

CI/CD Integration

GitHub Actions

name: ALICE Analysis

on: [push, pull_request]

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: '18'
      - run: npm install -g @the-algorithm/alice
      - run: alice config --set-key ${{ secrets.ALICE_API_KEY }}
      - run: alice analyze --silent

GitLab CI

alice:
  stage: test
  script:
    - npm install -g @the-algorithm/alice
    - alice config --set-key $ALICE_API_KEY
    - alice analyze --silent

Support

For issues or questions:

License

MIT