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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hugsylabs/preset-recommended

v0.0.7

Published

Recommended preset for Hugsy - balanced configuration for most projects

Downloads

13

Readme

@hugsylabs/preset-recommended

The recommended preset for Hugsy that provides a balanced configuration suitable for most projects.

What's Included

This preset combines the following plugins:

Development Plugins

  • @hugsylabs/plugin-git - Git version control integration
  • @hugsylabs/plugin-node - Node.js development support
  • @hugsylabs/plugin-typescript - TypeScript compilation and type checking
  • @hugsylabs/plugin-test - Testing framework support

Security Plugin

  • @hugsylabs/plugin-security - Security restrictions and protections

Slash Commands

  • @hugsylabs/commands-dev - Development productivity commands

Features

Comprehensive Coverage

  • Support for Git, Node.js, TypeScript, and testing
  • Security restrictions to protect sensitive files
  • Productivity slash commands for common tasks

⚖️ Balanced Permissions

  • Allows common development operations
  • Asks before risky operations
  • Denies dangerous operations via security plugin

🔧 Developer Friendly

  • Pre-configured for typical development workflows
  • Includes essential tools and frameworks
  • Ready for both frontend and backend development

🛡️ Security First

  • Protects environment files and secrets
  • Blocks dangerous system commands
  • Requires confirmation for destructive operations

Installation

npm install @hugsylabs/preset-recommended

Usage

In your .hugsyrc.json:

{
  "extends": "@hugsylabs/preset-recommended"
}

Or with Hugsy CLI:

hugsy init recommended

Configuration

The preset includes:

Environment Variables

  • NODE_ENV: "development"
  • DEBUG: "false"
  • Plus environment variables from included plugins

Permissions

Allowed:

  • Basic file operations (ls, pwd, cd, cat, grep)
  • Script execution (npm run, yarn run, pnpm run)
  • Read/Write/Edit all files (with security restrictions)
  • All permissions from included plugins

Ask Before:

  • Sudo commands
  • File deletion (rm)
  • File moving (mv)
  • Recursive copying (cp -r)
  • Risky operations from plugins

Denied:

  • All dangerous operations from security plugin
  • Access to sensitive files (.env, .ssh, etc.)
  • System modifications

Hooks

  • Session start/end notifications
  • All hooks from included plugins
  • Security warnings and reminders

Customization

You can extend or override the preset configuration:

{
  "extends": "@hugsylabs/preset-recommended",
  "plugins": ["@hugsylabs/plugin-python"],
  "permissions": {
    "allow": ["Read(**/.env.example)"]
  }
}

When to Use This Preset

Perfect for:

  • New projects
  • General web development
  • Node.js applications
  • TypeScript projects
  • Teams wanting a secure default

Consider alternatives for:

  • Python-only projects (add @hugsylabs/plugin-python)
  • Minimal configurations (use fewer plugins)
  • High-security environments (use stricter presets)

Included Slash Commands

From @hugsylabs/commands-dev:

  • /quick-fix - Quick fixes for common issues
  • /implement - Implement features
  • /explain - Code explanations
  • /debug - Debugging assistance
  • /optimize - Performance optimization
  • /review - Code review
  • /scaffold - Project scaffolding
  • /todo - Task management
  • /cleanup - Code cleanup
  • /setup-dev - Development setup

Philosophy

This preset follows the principle of progressive enhancement:

  1. Start Secure - Security plugin protects by default
  2. Enable Productivity - Development plugins add capabilities
  3. Maintain Balance - Ask when uncertain, allow when safe
  4. Stay Flexible - Easy to extend or override

License

MIT