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

@akson/cortex-dev-tools

v1.0.0

Published

Shared development tools, configs, and validators for Cortex ecosystem

Readme

@akson/cortex-dev-tools

Shared development tools, configurations, and validators for the Cortex ecosystem.

📦 Installation

npm install --save-dev @akson/cortex-dev-tools
# or
pnpm add -D @akson/cortex-dev-tools

🔧 What's Included

  • ESLint Configuration: Shared ESLint rules for TypeScript/JavaScript
  • Prettier Configuration: Consistent code formatting across projects
  • TypeScript Configuration: Base tsconfig.json for Cortex projects
  • Validators: Schema and dependency validation utilities

📖 Usage

ESLint Configuration

Option 1: Extend in eslint.config.js (ESM)

import cortexEslint from '@akson/cortex-dev-tools/eslint';

export default [
  ...cortexEslint,
  // Your custom rules
  {
    rules: {
      // Override or add rules
    },
  },
];

Option 2: CommonJS (.eslintrc.js)

module.exports = {
  extends: '@akson/cortex-dev-tools/eslint',
  rules: {
    // Your overrides
  },
};

Prettier Configuration

Option 1: In package.json

{
  "prettier": "@akson/cortex-dev-tools/prettier"
}

Option 2: In .prettierrc.js

module.exports = require('@akson/cortex-dev-tools/prettier');

Option 3: Extend with custom options

// .prettierrc.js
const cortexPrettier = require('@akson/cortex-dev-tools/prettier');

module.exports = {
  ...cortexPrettier,
  // Your overrides
  printWidth: 120,
};

TypeScript Configuration

In your tsconfig.json:

{
  "extends": "@akson/cortex-dev-tools/tsconfig.json",
  "compilerOptions": {
    // Your overrides
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist"]
}

🎯 Configuration Details

ESLint Rules

The ESLint configuration includes:

  • TypeScript: Recommended rules with unused vars detection (prefix with _ to ignore)
  • Import Organization: Automatic import sorting with newlines between groups
  • Best Practices: Enforces const, template literals, arrow functions
  • No Console: Warns on console usage (except console.warn and console.error)

Special Overrides:

  • Config files (*.config.js, .*rc.js): Relaxed rules
  • Test files (*.test.js, *.spec.js): Allows any types, console usage

Prettier Rules

  • Print Width: 100 characters
  • Indentation: 2 spaces
  • Quotes: Single quotes (double for JSX)
  • Semicolons: Always
  • Trailing Commas: ES5 compatible
  • Line Endings: LF (Unix-style)

Special Overrides:

  • Markdown: 80 character width, prose wrap
  • JSON: 80 character width, no trailing commas
  • YAML: 2 spaces, double quotes

TypeScript Configuration

  • Strict Mode: Fully enabled
  • Module Resolution: Bundler (supports import.meta, etc.)
  • Target: ES2022
  • Output: Declaration files + source maps
  • Unused Detection: Warns on unused locals/parameters

🔗 Integration with Cortex Repos

This package is used by:

  • cortex-skills: Skills and agent documentation
  • cortex-packages: All 26 NPM packages
  • Ballee: Main application
  • MyArmy: Client projects

📝 Scripts

Add these to your package.json:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "format": "prettier --write .",
    "format:check": "prettier --check .",
    "type-check": "tsc --noEmit"
  }
}

🤝 Contributing

When updating configurations:

  1. Test locally in consuming projects
  2. Bump version according to impact:
    • Patch: Bug fixes, documentation
    • Minor: New rules (non-breaking)
    • Major: Breaking rule changes
  3. Update this README if adding features
  4. Coordinate with cortex-skills and cortex-packages

📄 License

MIT

🔗 Related Packages

📚 Documentation