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

gortex-cli

v2.0.9

Published

Interactive CLI with tabbed interface and AI integration: complete Git workflow with intelligent conventional commit generation

Readme

GORTEX CLI

npm version npm downloads License: MIT

CLI for building reliable, assisted, and auditable conventional commits.

InstallationUsageArchitecture

Project goal

Gortex CLI makes the commit phase as rigorous as the implementation phase.

  • Guidance – a multi-step flow that surfaces the right checks (branch, files, message, push)
  • Consistency – a builder aligned with the Conventional Commits spec, with real-time validation
  • Contextual help – AI-assisted generation (local or remote) and visual previews of staged files

The outcome is short, precise, review-friendly commits without leaving the terminal.

Value proposition

  • Traceability – every commit documents the need and scope
  • Standardization – conventions are enforced while the developer acts, not via a late lint
  • Controlled AI – Gortex auto-detects Ollama, Mistral, or OpenAI and stays local whenever possible
  • End-to-end workflow – branch selection, targeted staging, message generation, optional push

Key capabilities

  • Interactive 8-step workflow (branch ➜ files ➜ staging ➜ generation ➜ message ➜ confirmation ➜ push ➜ recap)
  • Diff previews for staged files
  • Commit generation via Ollama, Mistral AI, or OpenAI with automatic fallback to manual editing
  • Keyboard-first navigation (Tab, arrows, Vim j/k/h/l, quick actions a, i)
  • Real-time validation of conventional commits, including breaking-change handling
  • .gortexrc configuration (Cosmiconfig) to tune AI providers, conventions, and git preferences

Architecture

| Layer | Role | Key tech | |-------|------|----------| | Domain | Entities, value objects, contracts | TypeScript | | Application | Use cases and orchestration | Services, DTOs, validation | | Infrastructure | Git, AI providers, DI | simple-git, Ollama/OpenAI/Mistral adapters | | Presentation | CLI interface | Ink, Commander, React components |

Reference points:

  • 918 tests across 67 files (91.63 % coverage)
  • ~177.62 KB ESM bundle, ~1203 ms build
  • Node ≥ 18, distributed via npm/pnpm/yarn/bun
  • Full design notes in docs/ARCHITECTURE.md

Installation

# npm
npm install -g gortex-cli

# pnpm (recommended)
pnpm add -g gortex-cli

# yarn
yarn global add gortex-cli

# bun
bun add -g gortex-cli

# try without installing
npx gortex-cli

Usage

Run inside a Git repository:

gortex

The guided flow covers:

  1. Selecting or creating the branch
  2. Picking files to commit with inline diff previews
  3. Staging the selected items
  4. Choosing AI or manual message creation
  5. Validating the message (including breaking changes)
  6. Confirming, optionally pushing, then reviewing the recap

Helpful commands:

gortex --help
gortex help-format

AI integration

  • Ollama (recommended):
    curl -fsSL https://ollama.com/install.sh | sh
    ollama pull mistral-small:24b-instruct-2501-q4_K_M
    ollama serve   # http://localhost:11434
  • Mistral / OpenAI: automatically used when API keys are detected in the environment or config.
  • Fallback sequence:
    1. Ollama when available (local & private)
    2. Mistral / OpenAI depending on available keys
    3. Manual editing if no provider responds

Recommended model: Mistral Small 24B (Q4_K_M)

NEW in v2.1+: GORTEX CLI now defaults to Mistral Small for optimal performance:

  • ⚡ 150 tokens/s – 2x faster than Magistral for commit generation
  • 🎯 98% accuracy with Q4_K_M quantization (vs 99.5% Q8)
  • 💾 50% smaller memory footprint than full precision models
  • ⏱️ 15-30s average generation time (vs 90-120s with previous settings)

Alternative models:

  • magistral:24b-small-2506-q4_K_M – Reasoning-focused (slower, better for complex logic)
  • mistral-nemo:12b-instruct-2407-q4_K_M – Balanced for mid-range hardware
  • mistral:7b-instruct-q4_K_M – Lightweight for resource-constrained laptops

Performance optimization

For best results, configure Ollama to keep models in memory:

# Keep model loaded indefinitely (recommended)
export OLLAMA_KEEP_ALIVE=-1

# Or set in your shell profile (~/.bashrc, ~/.zshrc)
echo 'export OLLAMA_KEEP_ALIVE=-1' >> ~/.bashrc

Why? By default, Ollama unloads models after 5 minutes. Keeping them in memory:

  • ✅ Eliminates 5-10s reload delay on each request
  • ✅ Provides consistent sub-30s generation times
  • ✅ Reduces CPU/GPU thrashing from repeated loads

Tips:

  • Keep ollama serve running for instant availability
  • Optimized defaults: temperature: 0.3, max_tokens: 300, num_ctx: 4096
  • Use Q4_K_M quantization for 2x speed with minimal quality loss
  • Keep commits focused (< 10 files) for most accurate AI suggestions

Conventional commits reference

| Type | Purpose | |------|---------| | feat | new feature | | fix | bug fix | | docs | documentation | | style | formatting / non-functional | | refactor | internal restructuring | | perf | performance | | test | tests | | build | build/package | | ci | continuous integration | | chore | maintenance |

Examples:

feat(auth): add OAuth2 authentication
fix(api): resolve timeout on large requests
docs(readme): update installation instructions
refactor(core): simplify error handling

Breaking change:

feat(api)!: change authentication method

BREAKING CHANGE: Previous auth tokens are now invalid

Contributing

  1. Fork + feature branch
  2. pnpm install, pnpm dev
  3. Run pnpm test, pnpm typecheck, pnpm lint before submitting
  4. Use Gortex CLI to format your own commits

Additional docs:

  • CONTRIBUTING.md
  • docs/ARCHITECTURE.md
  • docs/USE_CASES.md
  • docs/MIGRATION_GUIDE.md

Repository overview:

gortex-cli/
├── src/
│   ├── domain/
│   ├── application/
│   ├── infrastructure/
│   ├── components/
│   └── commands/
├── docs/
└── __tests__/

License

MIT © Arthur Jean

⬆ back to top