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

ccsettings

v0.9.0

Published

CLI tool for applying Claude Code configuration templates on a per-project basis

Readme

ccsettings - Claude Code Settings Manager

A CLI tool for applying Claude Code configuration templates on a per-project basis. It allows developers to apply standardized configuration templates to their project's .claude/settings.json file and achieves intelligent merging with existing settings.

Getting Started

# Apply casual template
npx ccsettings apply --template casual

Features

  • 🎯 4 Built-in Templates: casual, strict, node,etc.
  • 🔗 Multiple Configuration Sources: Built-in, local files, URLs (GitHub support)
  • 🧠 Smart Merge: Integrates templates while preserving existing settings
  • 🔍 Preview Function: Preview changes with dry-run before applying
  • 💾 Backup Function: Automatically saves settings before changes
  • 🌐 User-friendly Interface: Clear and intuitive messages

Installation

npm install -g ccsettings
# or
pnpm add -g ccsettings
# or
yarn global add ccsettings

Basic Usage

1. Check Available Templates

ccsettings list

2. Apply Template (Dry Run)

ccsettings apply --template casual --dry-run

3. Apply Template

ccsettings apply --template strict

4. Show Current Settings

ccsettings show

Command Reference

apply command

Apply a template to the current project.

ccsettings apply [options]

Options

  • -t, --template <name> - Specify built-in template
  • -f, --file <path> - Load template from local file
  • -u, --url <url> - Fetch template from URL
  • --dry-run - Show preview only without making actual changes
  • --backup - Backup settings before changes
  • --force - Apply changes without confirmation

Usage Examples

# Apply default template
ccsettings apply

# Apply strict template
ccsettings apply --template strict

# Apply template from local file
ccsettings apply --file ./my-template.json

# Apply template from GitHub URL
ccsettings apply --url https://github.com/user/repo/blob/main/template.json

# Force apply with backup
ccsettings apply --template strict --backup --force

# Preview changes with dry run
ccsettings apply --template strict --dry-run

list command

List available built-in templates.

ccsettings list

show command

Display current project settings.

ccsettings show

Template File Format

Custom templates can be created in the following JSON format:

{
  "name": "my-template",
  "description": "Description of custom template",
  "settings": {
    "permissions": {
      "allow": [
        "Read(src/**)",
        "Edit(src/**)",
        "Bash(npm run test)"
      ],
      "deny": [
        "Bash(rm -rf *)",
        "Write(/etc/**)"
      ],
      "defaultMode": "acceptEdits"
    },
  }
}

Merge Strategy

ccsettings merges existing settings with templates using the following strategy:

  1. Existing Settings Priority: Existing setting values are preserved
  2. Array Merge: Arrays like allow and deny are combined with duplicates removed
  3. Deep Merge: Nested objects are recursively merged
  4. New Additions: Items present in template but not in existing settings are added

Merge Example

Existing settings:

{
  "permissions": {
    "allow": ["Read(src/**)"],
    "defaultMode": "acceptEdits"
  }
}

Template:

{
  "permissions": {
    "allow": ["Read(src/**)", "Edit(src/**)"],
    "deny": ["Bash(rm -rf *)"],
    "defaultMode": "default"
  }
}

Merge result:

{
  "permissions": {
    "allow": ["Read(src/**)", "Edit(src/**)"],
    "deny": ["Bash(rm -rf *)"],
    "defaultMode": "acceptEdits"
  }
}

GitHub URL Support

Template files on GitHub are automatically converted to raw file URLs:

# Regular GitHub URLs like this...
ccsettings apply --url https://github.com/user/repo/blob/main/template.json

# Are automatically converted to raw URLs
# https://raw.githubusercontent.com/user/repo/main/template.json

Error Handling

  • 📁 Clear error messages when files are not found
  • 🔍 Specific problem identification for invalid JSON format
  • 🌐 Proper handling of network errors
  • ✅ Template schema validation

License

MIT

Contributing

Pull requests and issues are welcome. For bug reports or feature requests, please use GitHub Issues.

Related Links