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

codain

v1.1.0

Published

Codain CLI – Ollama setup and model runner for Termux and Node.js environments

Downloads

62

Readme

Codain CLI

Codain is a simple command-line interface (CLI) that simplifies running and managing local AI models using the Ollama backend. It is lightweight and optimized for environments like Termux/Terminal.

Features

  • Easy Setup: A single codain install command sets up ollama, and other core dependencies.
  • Smart Process Management: Automatically starts the ollama serve process with codain run and cleans it up with codain stop.
  • Model Management: Easily uninstall any downloaded model using codain remove.
  • Termux Friendly: Built with a robust installation script (using pkg Or other package also supported like apk, apt, dnf, pacman ) , that runs smoothly in Terminal.

Prerequisites

  • Environment: A Linux-based environment.
  • Node.js: npm (Node.js) must be installed.
  • Hardware: A minimum of 4GB RAM and ~5GB of free storage is recommended.

Installation

  1. First, install the package globally via npm:

    npm install -g codain
  2. After installation, you must run the one-time setup command:

    codain install

    This command will install ollama and other core dependencies. It will then display an interactive menu for you to download your first AI model.

Usage

Here are the available commands:

1. Run a Model

This command first starts the Ollama server and then runs the specified model.

# Run the default model (qwen2.5-coder:0.5b)
codain run

# Run a specific model
codain r llama3:8b

2. Stop the Server

Stops the ollama serve process running in the background.

codain stop

# Short command (Alias)
codain s

3. Install/Setup Environment

If you skipped the initial setup or need to re-run it, you can use this command.

codain install

# Short command (Alias)
codain i

4. Remove a Model

Uninstalls a downloaded model from Ollama.

codain remove <model_name>

# Example
codain d tinyllama

5. Show Version

Displays the current version of Codain.

codain --version

# Short command (Alias)
codain -v

6. Show Help

Displays the list of all available commands.

codain help

Author

  • Dev. Sourav

📄 License

MIT