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

fnva

v0.0.90

Published

跨平台环境切换工具,支持 Java 和 LLM 环境配置

Readme

fnva - Fast Environment Version Alter

Fast, cross-platform environment version switcher

中文文档 · Architecture · Releases

npm version crates.io License: MIT

fnva is a cross-platform environment switcher for Java, Maven, and Claude Code (CC). Written in Rust, it starts instantly, has zero runtime dependencies, and works via shell snippets without background daemons.

Core Features

  • Fast & Zero Dependencies: Single static binary.
  • 🔄 Session & Global Switching: Per-shell activation and global defaults.
  • 🐚 Broad Shell Support: PowerShell, Bash, Zsh, Fish, CMD.
  • 🧠 Auto-restore: Opening a new terminal automatically restores your last active environment.
  • Smart Java Management: Scan local JDKs, and automatically download/install version-specific JDKs via Adoptium mirror resolver.
  • 📦 Maven Version Management: Query remote versions from mirror directory, auto-install, and switch MAVEN_HOME.
  • 🔌 Tool Source Protocol (TSP): Unified abstraction for tool discovery and downloading shared by Java and Maven modules.

Documentation Navigation

Installation

One-liner(recommended — auto-configures PATH + shell integration):

# Unix (bash / zsh / fish)
curl -fSsL https://raw.githubusercontent.com/Protagonistss/fnva/main/scripts/install.sh | sh

# Windows (PowerShell)
irm https://raw.githubusercontent.com/Protagonistss/fnva/main/scripts/install.ps1 | iex

Or via a package manager:

npm install -g fnva      # npm
cargo install fnva       # cargo

Or download the binary from Releases and add to PATH.

The curl | sh installer downloads the binary to ~/.fnva/bin and appends a # fnva block(PATH + eval "$(fnva env)")to your shell rc — removable via scripts/uninstall.sh. npm/cargo installs need the shell integration below added manually.

Shell Integration

With shell integration, opening a new terminal restores your last active CC/Java/Maven environments automatically, and fnva <type> use <name> works directly without needing an eval wrapper. See Shell Integration Guide for details.

# Add to your shell profile (bash/zsh):
eval "$(fnva env)"

Quick Start

Java

  • Scan local JDKs: fnva java scan
  • List remote versions: fnva java ls-remote
  • Install a version: fnva java install 17
  • List local environments: fnva java list
  • Switch version: fnva java use 17 (or eval "$(fnva java use 17)" if shell integration is not installed)
  • Set default version: fnva java default 17

Maven

  • List remote versions: fnva maven ls-remote
  • Install a version: fnva maven install 3.9.16
  • List local environments: fnva maven list
  • Switch version: fnva maven use 3.9.16 (or eval "$(fnva maven use 3.9.16)" if shell integration is not installed)
  • Refresh remote cache: fnva maven refresh

Claude Code (CC)

  • List environments: fnva cc list
  • Switch environment: fnva cc use mycc (or eval "$(fnva cc use mycc)" if shell integration is not installed)

Configuration

User configuration is stored at ~/.fnva/config.toml (Windows: %USERPROFILE%\.fnva\config.toml).

Uninstall

npm uninstall -g fnva removes the package but does not clean up shell integration: npm v7+ removed postuninstall lifecycle scripts, so fnva cannot hook uninstall. Remove the profile bootstrap line and any stray launchers explicitly — run this before npm uninstall, while the script is still on disk:

node "$(npm root -g)/fnva/scripts/uninstall-shell-integration.js"
npm uninstall -g fnva
rm -rf ~/.fnva   # optional: remove user config/state

For the curl | sh / irm installer, use scripts/uninstall.sh (Unix) or scripts/uninstall.ps1 (Windows) instead.

License

MIT License.