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

codrill

v0.0.1

Published

CLI Algorithm Training Package πŸš€

Readme

Codrill - CLI Algorithm Training Package πŸš€

Codrill is a CLI-based algorithm training tool designed to help you practice solving coding problems. It provides various challenges ranging from easy to hard, with live feedback on your code submissions. Improve your problem-solving skills and become a better coder, one challenge at a time! πŸ’»βœ¨


Features ✨

  • Multiple Algorithms: Practice various algorithms and data structure problems 🧠.
  • Instant Feedback: Get immediate feedback on your code πŸ’¬.
  • CLI Interface: Work directly from your terminal πŸ’».
  • Multiple Attempts: Retry your solutions if they don't work the first time πŸ”„.
  • Difficulty Levels: Solve problems with varying difficulty levels (Easy, Medium, Hard) βš–οΈ.
  • Code Submission: Write JavaScript code to solve problems and test against the expected outputs πŸ“.

Installation πŸ“¦

1. Clone the repository

git clone https://github.com/yourusername/codrill.git
cd codrill

2. Install dependencies

Codrill uses Node.js, so make sure you have it installed. You can then install the required dependencies using npm:

npm install

3. Make the codrill file executable πŸ–₯️

If you want to use the CLI tool globally, you need to link the tool to your global npm directory.

  • Link the tool globally:
sudo npm link

This command will link codrill to your system's npm directory, allowing you to run the CLI tool globally without needing to specify the file path. 🌍

Usage πŸš€

Once installed, you can use the codrill CLI tool directly from your terminal.

1. Start Codrill

To start practicing problems, simply run the following command:

codrill

This will start the interactive challenge session where you'll be prompted to solve problems. πŸ’‘

2. Choose Difficulty Level

When prompted, you can choose from different difficulty levels:

  • Easy 😌
  • Medium 😎
  • Hard πŸ’₯

3. Submit Your Solution

For each problem, you'll need to write your solution in JavaScript and submit it. The program will evaluate your solution and let you know if it's correct βœ… or if you need to make any changes πŸ”„.

Updating File Permissions with chmod πŸ”

If you encounter any permission issues, you may need to adjust the file permissions to make your codrill file executable.

  • Check current permissions:
ls -l
  • Change the permissions to make the file executable:
chmod +x /path/to/codrill

This ensures that the codrill file is executable and can be run from the terminal. βš™οΈ

Problem Set πŸ”Ž

Codrill comes with a variety of algorithmic challenges, such as:

  • Reverse a string πŸ”„
  • Find the largest number in an array πŸ”’
  • Palindrome check πŸͺž
  • Fibonacci sequence πŸ“ˆ
  • Factorial of a number πŸ”’
  • And many more... 🧩

Each problem will have its own input, output, and description, helping you practice essential coding skills.

Contributing 🀝

We welcome contributions! If you'd like to add new problems, improve the existing ones, or fix bugs, feel free to open a pull request. Here's how you can contribute:

Fork the repository 🍴.

  1. Create a new branch: git checkout -b new-feature
  2. Make your changes and commit them: git commit -m "Add new problem".
  3. Push to the branch: git push origin new-feature.
  4. Open a pull request.

License πŸ“„

This project is licensed under the MIT License - see the LICENSE file for details.

Support πŸ§‘β€πŸ’»

If you run into any issues or have questions, feel free to create an issue or reach out to the project maintainers. 🎧

Happy Coding! βœ¨πŸ’»