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

abc-tool-cli

v0.0.9

Published

CLI tool for managing web applications

Readme

abc-tools

CLI tool for managing web applications in the ABC system. This package provides comprehensive utilities for initializing, configuring, and managing different types of applications.

📦 Installation

pnpm add abc-tools

🚀 Key Features

1. Application Management

  • Initialize different types of applications (single, state, parent)
  • Fetch and update app configurations
  • Manage app lists and schemas

2. Database Management

  • Update database schemas
  • Generate initialization data for service workers
  • Sync database models across packages

3. Service Worker Setup

  • Configure service workers for different app types
  • Generate integrity hashes
  • Setup caching strategies

4. Data Fetching

  • Fetch app configurations from API
  • Retrieve topics and test data
  • Get member information and SEO data

5. File Management

  • Generate TypeScript and JSON files
  • Update environment configurations
  • Manage app icons and assets

📚 CLI Commands

tools init

Initialize configuration and fetch apps data.

tools init

What it does:

  • Fetches apps data from API
  • Creates data/listApp.ts with app configurations
  • Creates data/schema.ts with database schemas
  • Updates apps data successfully

tools get-list-app

Setup and update the list of applications.

tools get-list-app

What it does:

  • Fetches current apps data from API
  • Updates data/listApp.ts with latest configurations
  • Handles different app types (single, state, parent)

tools update-ver

Update version information across the project.

tools update-ver

What it does:

  • Updates version information in relevant files
  • Syncs version across packages
  • Maintains version consistency

tools update-db

Update database schemas and service worker initialization data.

tools update-db

What it does:

  • Reads database schema from data/schema.ts
  • Updates database models in packages/db/src/model/index.ts
  • Generates service worker initialization data
  • Syncs database version and stores

tools sw <appName>

Setup service worker for a specific application.

tools sw <appName> [options]

Options:

  • -t, --type <type>: Application type (single, parent, state) - default: single

Example:

tools sw asvab --type single

What it does:

  • Configures service worker for the specified app
  • Sets up caching strategies
  • Generates necessary files

tools init-app <appName>

Initialize and build an application.

tools init-app <appName> [options]

Options:

  • -e, --env <environment>: Environment (dev, staging, prod) - default: dev
  • -t, --type <type>: Application type (single, parent, state) - default: single

Examples:

# Initialize single app
tools init-app asvab --type single --env dev

# Initialize state app
tools init-app cdl --type state --env staging

# Initialize parent app
tools init-app easyprep --type parent --env prod

What it does:

  • Fetches app configuration and data
  • Processes topics and test data
  • Generates necessary files and configurations
  • Sets up environment variables
  • Creates service worker files

🔧 API Functions

Data Fetching

getDataSingleApp(appName)

Fetch app configuration data.

import { getDataSingleApp } from "abc-tools";

const appData = await getDataSingleApp("asvab");

getDataTopicsAndTest(appName)

Fetch topics and test data for an app.

import { getDataTopicsAndTest } from "abc-tools";

const { topics, tests } = await getDataTopicsAndTest("asvab");

getDataMember()

Fetch member information.

import { getDataMember } from "abc-tools";

const members = await getDataMember();

getDataSeo(appName)

Fetch SEO information for an app.

import { getDataSeo } from "abc-tools";

const seoInfo = await getDataSeo("asvab");

File Management

saveJSONFile(filePath, data)

Save data as JSON file.

import { saveJSONFile } from "abc-tools";

saveJSONFile("data/config.json", { key: "value" });

saveTSFile(filePath, exportName, data)

Save data as TypeScript file with export.

import { saveTSFile } from "abc-tools";

saveTSFile("src/config.ts", "appConfig", { name: "test" });

generateIcon(options)

Generate app icon from configuration.

import { generateIcon } from "abc-tools";

const icon = await generateIcon({
  appShortName: "asvab",
  bucket: "asvab-bucket",
});

Environment Management

updateEnv(options)

Update environment configuration.

import { updateEnv } from "abc-tools";

await updateEnv({
  appInfo: appData,
  environments: "dev",
  authSecret: "secret",
  type: "single",
  integrity: "hash",
});

genAuthSecret(environments)

Generate authentication secret.

import { genAuthSecret } from "abc-tools";

const secret = await genAuthSecret("dev");

🧪 Development

# Build package
pnpm build

# Development mode
pnpm dev

# Type checking
pnpm type

# Clean dist
pnpm clean

📦 Dependencies

Production Dependencies

  • abc-core - Core functionality
  • commander - CLI framework
  • axios - HTTP client
  • node-fetch - Fetch API
  • p-limit - Concurrency control
  • abc-model - Data models
  • uuid - UUID generation

Development Dependencies

  • @repo/eslint-config - ESLint configuration
  • @types/node - Node.js types

🔄 Workflow

Typical Usage Flow

  1. Initialize Configuration

    tools init
  2. Update Database

    tools update-db
  3. Setup Service Worker

    tools sw asvab --type single
  4. Initialize Application

    tools init-app asvab --type single --env dev

📄 License

MIT