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

@ton-ai-core/blueprint-linter

v0.1.5

Published

CLI linter for @ton-ai-core/blueprint projects

Downloads

2

Readme

blueprint-linter

CLI linter for @ton-ai-core/blueprint projects.

Checks for common project structure issues and enforces contract file naming conventions (snake_case).

Features

  • Recursive Project Discovery: Scans the specified path (or current directory) recursively for potential Blueprint projects.
  • Structure Validation: For each directory containing a package.json, validates:
    • Presence of the @ton-ai-core/blueprint dependency.
    • Presence of blueprint.config.ts.
    • Presence of the local node_modules/@ton-ai-core/blueprint installation.
  • Broken Project Detection: Identifies directories that look like Blueprint projects (contain contracts, wrappers, etc.) but are missing package.json, suggesting the correct initialization command (npm create ton@latest).
  • Naming Convention Check: Verifies that contract files (.tact, .fc, .func) within the specified directories (default: contracts, wrappers, scripts, tests) use snake_case for their filenames.
  • JSON Output: Supports outputting errors in JSON format using the --json flag.
  • Monorepo Guard: When executed from a subdirectory, the linter checks the parent folder (if it contains .cursor, .knowledge, .vscode, or package.json) and fails if folders like scripts, contracts, tests, or wrappers are found there. This prevents accidentally creating contract-related folders in the monorepo root instead of inside individual blueprint projects.

Installation

Install as a development dependency in your Blueprint project:

npm install --save-dev blueprint-linter
# or
yarn add --dev blueprint-linter

(Assuming this package will be published to npm)

Alternatively, to install it locally from this repository for testing:

cd /path/to/your/blueprint/project
npm install --save-dev /path/to/blueprint-linter

Usage

Run the linter from the root of your project directory or a directory containing multiple Blueprint projects:

npx blueprint-linter [path-to-scan]
  • [path-to-scan]: (Optional) The directory to scan recursively. Defaults to the current working directory.

Add it to your package.json scripts for easy access:

{
  "scripts": {
    "lint:structure": "blueprint-linter"
  }
}

Then run:

npm run lint:structure
# or
yarn lint:structure

Options

  • --json: Output linting errors in JSON format instead of human-readable text.
  • -d, --dirs <dirs>: Comma-separated list of directories within each found project to scan for contract files (default: contracts,wrappers,scripts,tests). Note: This only affects where contract files are looked for, not project discovery.

Exit Codes

  • 0: No errors found.
  • 1: Linting errors found (structure issues, broken projects, or naming convention violations).
  • 2: Unexpected internal error within the linter.

Example Error Messages

Monorepo Guard Error

When contract-related folders are detected in the monorepo root:

Structure INVALID for: /path/to/your/current/project
    - Forbidden directory 'contracts' found in root '/path/to/contract-knowledge'. This prevents confusion and ensures contracts are created in the correct location. Create individual blueprint projects instead and place 'contracts' folders inside them.

This error helps prevent accidentally creating contract folders in the wrong location when working with monorepos.