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

frontend-performance-assessor

v1.1.2

Published

A comprehensive module for assessing frontend developer performance with support for different levels (Junior/Middle/Senior) and frameworks (Vue, React, Vanilla JS). Includes internationalization support for English, Russian, and Ukrainian.

Readme

Frontend Performance Assessor

npm version Downloads License: MIT TypeScript Node.js CLI i18n

🔍 A comprehensive module for assessing frontend developer performance with support for different levels (Junior/Middle/Senior) and frameworks (Vue, React, Angular, Vanilla JS). Includes internationalization support for English, Russian, and Ukrainian.

🌍 Documentation Languages

🚀 Features

  • Multi-level assessment: Junior, Middle, Senior
  • Framework support: Vue, React, Angular, Svelte, Vanilla JS
  • Comprehensive analysis: code quality, performance, architecture, best practices, maintainability
  • Multiple report formats: console, HTML, JSON
  • Internationalization: support for English, Russian, and Ukrainian languages
  • Customizable rules: ability to add custom rules
  • CLI interface: convenient command-line usage

📦 Installation

Global installation

npm install -g frontend-performance-assessor

Local installation

npm install --save-dev frontend-performance-assessor

🎯 Usage

CLI Interface

Basic project assessment

# Assess current project
frontend-assessor assess ./src

# Assess with specific framework
frontend-assessor assess ./src --framework react

# Assess with Russian language
frontend-assessor assess ./src --lang ru

# Generate HTML report
frontend-assessor assess ./src --output html --path report.html

# Generate all report formats
frontend-assessor assess ./src --output all

Create configuration

# Create configuration file
frontend-assessor init --framework vue

View rules and criteria

# Show all rules
frontend-assessor rules

# Show rules by category
frontend-assessor rules --category performance

# Show level criteria
frontend-assessor levels

# Show supported languages
frontend-assessor lang

Programmatic Usage

import { assessProject, FrontendAssessor } from 'frontend-performance-assessor';

// Quick assessment
const result = await assessProject({
  projectPath: './src',
  framework: 'react',
  outputFormat: 'console',
  language: 'en' // Set language
});

console.log(`Overall score: ${result.overallScore}/100`);
console.log(`Developer level: ${result.level}`);

// Advanced usage
const assessor = new FrontendAssessor({
  projectPath: './src',
  framework: 'vue',
  includePatterns: ['**/*.{js,ts,vue}'],
  excludePatterns: ['**/node_modules/**', '**/dist/**']
});

const assessment = await assessor.assess();

// Generate reports
import { HtmlReporter, JsonReporter } from 'frontend-performance-assessor';

const htmlReporter = new HtmlReporter();
htmlReporter.generateReport(assessment, 'report.html');

const jsonReporter = new JsonReporter();
jsonReporter.generateReport(assessment, 'report.json');

📊 Assessment Criteria

🌱 Junior (60+ points)

  • Knowledge of JavaScript/TypeScript basics
  • Understanding of HTML/CSS
  • Basic framework skills
  • Simple error handling
  • Clean and readable code

🌿 Middle (75+ points)

  • Advanced JavaScript/TypeScript concepts
  • Code testing
  • Architectural patterns
  • Performance optimization
  • API and async programming

🌳 Senior (85+ points)

  • Deep understanding of architecture
  • SOLID principles and Clean Code
  • Application security
  • Mentoring and code review
  • Technical leadership

🔍 Analysis Categories

1. Code Quality (25%)

  • Naming conventions compliance
  • Function length and complexity
  • Cyclomatic complexity
  • Code duplication
  • Comments quality

2. Performance (20%)

  • File and bundle sizes
  • Lazy loading of components
  • Render optimization
  • Memory leaks
  • Image optimization

3. Architecture (20%)

  • Separation of concerns
  • Dependency injection
  • Single responsibility principle
  • Layered architecture
  • Design patterns

4. Best Practices (20%)

  • TypeScript usage
  • Error handling
  • Security practices
  • Testing
  • Accessibility (a11y)

5. Maintainability (15%)

  • Code documentation
  • Code readability
  • Naming consistency
  • Dead code detection
  • Configuration management

🌍 Language Support

The module supports three languages:

  • English (en) - default
  • Russian (ru)
  • Ukrainian (ua)

Setting Language

Via command line parameter:

frontend-assessor assess ./src --lang ru

Via environment variable:

# Windows
set FRONTEND_ASSESSOR_LANG=ru
frontend-assessor assess ./src

# Linux/Mac
export FRONTEND_ASSESSOR_LANG=ru
frontend-assessor assess ./src

Programmatically:

import { assessProject, i18n } from 'frontend-performance-assessor';

// Set language globally
i18n.setLanguage('ua');

// Or specify in configuration
const result = await assessProject({
  projectPath: './src',
  language: 'ru'
});

⚙️ Configuration

Create a frontend-assessor.config.json file:

{
  "framework": "auto",
  "includePatterns": ["**/*.{js,jsx,ts,tsx,vue}"],
  "excludePatterns": [
    "**/node_modules/**",
    "**/dist/**",
    "**/build/**",
    "**/*.test.*",
    "**/*.spec.*"
  ],
  "targetLevel": "middle",
  "customRules": [
    {
      "id": "CUSTOM001",
      "name": "Custom Rule",
      "description": "Rule description",
      "severity": "warning"
    }
  ]
}

🎨 Report Formats

Console Report

Colorful interactive report in terminal with progress bars and emojis.

HTML Report

Beautiful web report with:

  • Interactive charts
  • Detailed category breakdown
  • File and issue lists
  • Improvement recommendations

JSON Report

Structured data for integration with other tools.

🔧 Project Integration

Vite

// vite.config.js
import { defineConfig } from 'vite';
import { assessProject } from 'frontend-performance-assessor';

export default defineConfig({
  plugins: [
    {
      name: 'frontend-assessor',
      buildStart: async () => {
        await assessProject({
          projectPath: './src',
          outputFormat: 'console'
        });
      }
    }
  ]
});

NPM Scripts

{
  "scripts": {
    "assess": "frontend-assessor assess ./src",
    "assess:html": "frontend-assessor assess ./src --output html",
    "assess:ci": "frontend-assessor assess ./src --output json"
  }
}

GitHub Actions

name: Code Quality Assessment
on: [push, pull_request]

jobs:
  assess:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
      - run: npm install -g frontend-performance-assessor
      - run: frontend-assessor assess ./src --output json --path assessment.json
      - uses: actions/upload-artifact@v3
        with:
          name: assessment-report
          path: assessment.json

📈 Usage Examples

React Project

frontend-assessor assess ./src --framework react --output html

Vue Project

frontend-assessor assess ./src --framework vue --output all

Vanilla JS Project

frontend-assessor assess ./src --framework vanilla --include "**/*.js" --exclude "**/vendor/**"

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE file

🐛 Report Issues

If you find a bug or want to suggest an improvement, create an issue in the GitHub repository.

📞 Support


Made with ❤️ for the frontend development community