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

@neural-tools/core

v0.1.7

Published

Core utilities and types for Neural Tools

Readme

@neural-tools/core

Core utilities and types for Neural Tools

npm version License: MIT

Shared utilities, types, and functions used across all Neural Tools packages.

Installation

npm install @neural-tools/core

Features

  • Logger - Beautiful CLI logging with colors and spinners
  • Types - TypeScript types and Zod schemas
  • License Management - Feature checking and validation
  • Utilities - Common helper functions

Usage

Logger

Formatted console output with colors and loading indicators.

import { logger } from '@neural-tools/core';

// Headers and sections
logger.header('My Application');
logger.section('Configuration', [
  'Environment: production',
  'Region: us-east-1'
]);

// Status messages
logger.success('Operation completed!');
logger.error('Something went wrong');
logger.warning('This is a warning');
logger.info('Informational message');

// Spinners
logger.startSpinner('Processing...');
// ... do work ...
logger.succeedSpinner('Done!');
// or
logger.failSpinner('Failed');

// New lines
logger.newline();

Types

TypeScript types and Zod schemas for validation.

import {
  License,
  LicenseTier,
  MCPConfig,
  ClaudeCommandConfig
} from '@neural-tools/core';

// License types
const license: License = {
  tier: LicenseTier.FREE,
  features: ['mcp-generation', 'claude-commands']
};

// MCP configuration
const mcpConfig: MCPConfig = {
  name: 'my-mcp',
  description: 'My MCP server',
  version: '1.0.0',
  license: 'MIT'
};

// Claude command configuration
const commandConfig: ClaudeCommandConfig = {
  name: 'my-command',
  description: 'My command',
  content: 'Command prompt content...'
};

License Management

Check feature availability (all features are enabled by default).

import {
  checkFeature,
  requireFeature,
  licenseManager
} from '@neural-tools/core';

// Check if a feature is available
const hasVectorDB = await checkFeature('vector-db');
// Returns: true (all features are free)

// Require a feature (throws if not available)
await requireFeature('cloud-deployment', 'Cloud Deployment');
// Does not throw - all features are available

// Get current tier
const tier = await licenseManager.getTier();

API Reference

Logger Methods

| Method | Description | |--------|-------------| | header(text) | Display a large header | | section(title, items) | Display a titled section with items | | success(message) | Green success message | | error(message) | Red error message | | warning(message) | Yellow warning message | | info(message) | Blue info message | | startSpinner(text) | Start loading spinner | | succeedSpinner(text?) | Complete spinner with success | | failSpinner(text?) | Complete spinner with failure | | newline() | Add blank line |

Type Exports

// License types
export enum LicenseTier {
  FREE = 'free',
  PRO = 'pro',
  ENTERPRISE = 'enterprise'
}

export interface License {
  tier: LicenseTier;
  email?: string;
  key?: string;
  expiresAt?: string;
  features: string[];
}

// Configuration types
export interface MCPConfig {
  name: string;
  description: string;
  version: string;
  author?: string;
  homepage?: string;
  repository?: string;
  license: string;
  fastmcp?: {
    tools: string[];
    prompts: string[];
    resources: string[];
  };
}

export interface ClaudeCommandConfig {
  name: string;
  description: string;
  argumentHint?: string;
  allowedTools?: string[];
  content: string;
}

License Manager

class LicenseManager {
  // Load license from disk
  async loadLicense(): Promise<License>

  // Save license to disk
  async saveLicense(license: License): Promise<void>

  // Check if feature is available (always returns true)
  async checkFeature(feature: string): Promise<boolean>

  // Require feature (no-op, all features available)
  async requireFeature(feature: string, featureName?: string): Promise<void>

  // Get current license tier
  async getTier(): Promise<LicenseTier>
}

// Singleton instance
export const licenseManager: LicenseManager

Dependencies

  • zod - Schema validation
  • chalk - Terminal colors
  • ora - Terminal spinners

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Watch mode
pnpm dev

Used By

Contributing

Contributions are welcome! See the main repository for guidelines.

License

MIT - See LICENSE.md for details.

Links