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

@pleaseai/config

v1.1.1

Published

PleaseAI configuration schema, loader, and generator

Downloads

24

Readme

@pleaseai/config

PleaseAI configuration schema, loader, and generator.

Overview

This package provides:

  • Type-safe schema using Zod for validation
  • Config loading from local files or GitHub
  • Config generation with customizable options
  • Helper functions for config inspection

Installation

bun add @pleaseai/config

Usage

Load Config from File

import { loadConfig } from '@pleaseai/config'

const config = await loadConfig('/path/to/repo')
// Returns validated Config object or DEFAULT_CONFIG if file doesn't exist

Load Config from GitHub

import { loadConfigFromGitHub } from '@pleaseai/config'

const config = await loadConfigFromGitHub(
  octokit,
  'owner',
  'repo',
  'main' // optional ref
)
// Fetches .please/config.yml from repository

Generate Config

import { generateConfig, generateConfigYAML } from '@pleaseai/config'

// Generate config object with defaults
const config = generateConfig({
  language: 'en',
  enableCodeReview: true,
  enableIssueWorkflow: true,
})

// Generate YAML string
const yaml = generateConfigYAML({ language: 'ko' })

Use Helper Functions

import {
  isCodeReviewDisabled,
  shouldReviewPR,
  isAutoTriageEnabled,
  isInvestigateEnabled,
  isFixEnabled,
  getLanguage,
} from '@pleaseai/config'

if (isCodeReviewDisabled(config)) {
  // Skip code review
}

if (shouldReviewPR(config, isDraft)) {
  // Perform review
}

const language = getLanguage(config) // 'ko' | 'en'

Config Schema

code_review

code_review:
  disable: false
  comment_severity_threshold: MEDIUM # LOW | MEDIUM | HIGH
  max_review_comments: -1 # -1 for unlimited
  pull_request_opened:
    help: false
    summary: true
    code_review: true
    include_drafts: true

issue_workflow

issue_workflow:
  disable: false
  triage:
    auto: true
    manual: true
    update_issue_type: true
  investigate:
    enabled: true
    org_members_only: true
    auto_on_bug_label: false
  fix:
    enabled: true
    org_members_only: true
    require_investigation: false
    auto_create_pr: true
    auto_run_tests: true

General Settings

ignore_patterns: []
language: ko # ko | en

Types

import type {
  Config,
  Language,
  SeverityLevel,
  CodeReviewConfig,
  IssueWorkflowConfig,
  PullRequestOpenedConfig,
  GenerateConfigOptions,
} from '@pleaseai/config'

Testing

bun test

All functions have comprehensive test coverage with Red → Green → Refactor TDD methodology.