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

overide

v0.2.0

Published

This is a CLI based Code Generation Tool.

Downloads

55

Readme

Overide

Overide is a lightweight yet powerful CLI tool designed to simplify AI-powered code generation directly within your development workflow. With Overide, you can quickly generate, update, and integrate code using predefined prompts, allowing you to focus on the creative aspects of coding while letting AI handle the heavy-lifting.

Table of Contents

Key Features

  • IDE Agnostic: Works with any IDE or text editor
  • AI-Powered Code Generation: Uses OpenAI, DeepSeek, or Groq APIs
  • Live File Monitoring: Continuously monitors files for code generation prompts
  • Simple Prompting Syntax: Uses intuitive //> <// patterns for code generation

Installation

Install globally using npm or pnpm:

npm install -g overide
# or
pnpm install -g overide

For more installation options, see our installation guide.

Usage

Adding API Key

Configure your AI platform credentials:

overide config --global

Select an active platform if you've configured multiple:

overide config --select-active

Configure a Project

Configure Overide in your project directory:

overide init

Start Monitoring

Begin monitoring files for code generation:

overide start

Code Generation

Insert prompts in your code:

//> Generate a function that logs 'Hello, World!' <//

Overide will generate and insert code:

//- 'Hello, World!' Function
function helloWorld() {
    console.log("Hello, World!");
}
//> Accept the changes (y/n): -//

Configuration

Configure Overide using oi-config.json:

{
  "name": "project name",
  "ignore": ["node_modules", "*.test.js"]
}

Contributing

Development Workflow

  1. Clone the repository (if you haven't already)

  2. Create feature branches from dev

  3. Make changes and test thoroughly

  4. Create PR to merge into dev

  5. If approved, create PR to merge dev into staging

  6. If staging tests pass, create PR to merge staging into main

  7. When merged to main:

    • Changes trigger the CI/CD pipeline
    • If changesets are present, a new version is published
    • Changes are automatically synced back to the staging and dev branches

Version Management with Changesets

We use changesets for version management.

Before submitting a PR from your feature branch, do the following:

  1. Create a changeset:
pnpm changeset
  1. Follow the prompts to:

    • Select change type (patch/minor/major)
    • Describe your changes
    • Commit both your changes and the generated changeset file

When changes with changesets are merged to main:

  • Package is automatically published to npm
  • Changes are synced to staging branch
  • Changelog is automatically updated

Change Types

  • patch: Bug fixes and minor updates (0.0.X)
  • minor: New features (0.X.0)
  • major: Breaking changes (X.0.0)

Development & Testing

Local Development (Hot Reloading)

  1. Start the development watcher:
npm run dev
# or
pnpm dev
  1. In a separate terminal, run the CLI commands as you normally would, with npm run or pnpm prefixed:
npm run overide [init | config | start]
# or
pnpm overide [init | config | start]

The development watcher (npm run dev) will automatically rebuild the project when you make changes to the source code, allowing you to test changes in real-time.

Local Production Testing

  1. Build and create global link:
npm run build
npm link
  1. Link in test project:
npm link -g overide
  1. Test the production version of the CLI:
overide --version
overide init
overide start
  1. Cleanup:
# In test project
npm unlink -g overide

# In Overide project
npm unlink

Why Development Testing?

  • Hot Reload: Test changes instantly without manual rebuilds
  • Real-time Feedback: See immediate results of code modifications
  • Faster Development: Reduce time between changes and testing
  • Debugging: Easier to identify and fix issues during development

Why Link Testing?

  • Test CLI as if installed globally
  • Verify changes before publishing
  • Validate package.json bin configuration
  • Ensure proper dependency inclusion

CI/CD Pipeline

The project uses GitHub Actions for continuous integration and deployment:

  1. CI/CD Pipeline (pipeline.yml)

    • Runs on PRs to any branch and pushes to main
    • Installs dependencies with pnpm
    • Runs linting checks
    • Builds the project
    • Creates release pull requests when on main
  2. Publish Workflow (publish.yml)

    • Triggers on pushes to main when changes are detected in:

      • .changeset/**
      • package.json
    • Uses changesets for version management

    • Publishes to npm when changes are detected

    • Syncs changes back to staging branch

Future Plans (v2.0)

  • Project Context Management: Local parsers for more efficient prompts
  • Code Format: Unified diff format for improved insertion
  • Multiple File Edit: Support for multi-file operations
  • Script Execution: Automated task execution capabilities

Community

Join our Discord to collaborate, share ideas, and stay updated with Overide developments.

License

Overide is licensed under the GNU GPL-2.0 License. See the LICENSE file for details.