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

@stevenic/codepilot

v0.5.0

Published

Codepilot is an AI powered programming buddy that's an expert on your codebase.

Downloads

19

Readme

codepilot

Codepilot is a programming buddy that is an expert on your codebase. You can add Codepilot to any project repo and it will taylor itself to the projects codebase.

Installation

To install Codepilot, you need a recent version of Node.js and npm (Node Package Manager) installed on your machine. Then, you can run the following command to install Codepilot globally:

npm install -g @stevenic/codepilot

Getting Started

To start a new chat session with Codepilot, simply run the following command from your projects root directory:

codepilot

Codepilot will guide you through the steps needed to setup a code index for your repo. You'll need an OpenAI key, which you can get here. See the Usage Guide for additional details on working with Codepilots Chat and Command Line Interfaces.

Asking Questions and Making Requests

Once you're in a Codepilot chat session, you can ask questions or make requests related to your code. Codepilot will use its AI models and detailed knowledge of your codebase to provide helpful suggestions and answers.

For example, you can ask it to add new features to your code like:

Add a method that does XYZ to the ABC class.

Or ask it to document your classes:

Write the documentation for the ABC class.

Codepilot will generate responses based on the context of your question or request.

Roadmap

This preview version of Codepilot is a bit limited but I have lots of features planned and coming very very soon:

  • Ability to create files. This feature will likely be the next feature added and let Codepilot operate on a par with GPT Engineer.
  • Ability to modify existing files. This feature is a little bit tricky given that files can be larger then the context window of most models. This feature will need some bake time but is definitely on the TODO list.
  • Ability to create branches, PR's, and merge pull requests.
  • LLM-TAGS: Think of these as accessibility tags for Codepilot that help guide it to better results.
    • LLM-REGION - This tag will inform the TextSplitter where to split text at and helps ensure that the model sees whole interfaces, classes, and methods.
    • LLM-RELATED: - This tag will provide Codepilot with a related query that it should run and is useful for pulling base classes and such into the code.
    • LLM-RULE: - This tag will specify a rule that should be added to Codepilots prompt and lets you give Codepilot guidence for how to better implement new classes or features.
  • A new "update" command. Currently you can only rebuild the index in its entirety. The "update" command will let you just update the index for the files that have changed.
  • A new "watch" mode that will watch for file changes and update the index for a branch as the files change. This will ensure that your index is always up to date for a given branch.
  • A VSCode plugin... How cool would that be.

Contributing

If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the Codepilot GitHub repository.

License

Codepilot is released under the MIT License. See the LICENSE file for more details.