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 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-cursor-companion

v1.0.0

Published

Initialize projects with Cursor Companion framework for AI-assisted development

Downloads

74

Readme

cursor-companion

A framework for structuring AI-assisted development with Cursor IDE. Provides standardized scaffolding and guidelines for managing LLM coding assistant interactions.

Overview

Cursor Companion helps developers effectively communicate with Cursor's AI coding assistant by providing:

  • Global coding standards via .cursorrules
  • Framework for maintaining module/feature-specific context
  • Guidelines for AI-assisted code changes
  • Structure for documenting design decisions and technical context

Installation

Create a new project:

npx create-cursor-companion --new

Add to existing project:

# Run from project root
npx create-cursor-companion

Project Structure

After initialization, your project will have:

your-project/
├── .cursorrules                 # Global rules for the AI assistant
└── instructions/                # Module-specific context files
      └── composer.md              # Instructions for the composer specifically
      └── README.md                # Guide for creating context files 

Using with Cursor IDE

Single-File Changes

  1. Select code and press Ctrl+K
  2. Reference relevant context files using @:
@services_auth.md Update the token validation logic

Multi-File Changes

When making broader changes, include multiple context files. The composer will use the instructions in composer.md to guide the update process:

@composer.md @services_auth.md @models_user.md Add support for OAuth provider

Context Files

Create context files in /instructions/ with names that mirror your codebase structure:

project/
├── src/
│   ├── services/
│   │   └── auth/          # @services_auth.md
│   ├── models/
│   │   └── user/          # @models_user.md
│   └── api/
│       └── users/         # @api_users.md
└── instructions/
        ├── services_auth.md      # Instructions for @services/auth/**
        ├── models_user.md        # Instructions for @models/user/**
        └── api_users.md          # Instructions for @api/users/**

The filename should reflect the path where the instructions apply, using underscores to separate directory levels:

  • path/to/module/**path_to_module.md

Each file should include:

  • Clear scope definition (@path/to/module/**)
  • Module/feature purpose
  • Design decisions
  • Technical constraints
  • Integration points
  • Domain rules

See the examples directory for sample context files.

Best Practices

  • Name context files to mirror your codebase structure
  • Keep context files focused on their specific scope
  • Update context when making significant changes
  • Include only information that impacts development
  • Reference related files when needed

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to discuss potential improvements.

License

MIT License