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

@arjunwalia/traceenv

v1.0.1

Published

Local-first workspace synthesizer that generates reproducible setup documentation from real terminal workflows

Downloads

170

Readme

Clone -> trace -> done

Use this path first.

git clone https://github.com/Arjun-Walia/TraceEnv.git
cd TraceEnv
npm install
npm run build
npm install -g .
trace

What you get:

  • Instant setup plan before anything runs
  • Confirmation prompt before execution
  • Clear success or failure output with recovery hints

⚡ What is TraceEnv?

Clone. Run trace. Your environment works.

TraceEnv replaces brittle setup docs and outdated setup.sh scripts with a CLI that gets a project running after you clone it. It detects the setup workflow, shows you exactly what will run, and executes it locally with confirmation, retries, and clear failure reporting.

Whether it's npm install, docker compose up, or complex database migrations, TraceEnv handles it seamlessly.

git clone https://github.com/Arjun-Walia/TraceEnv.git
cd TraceEnv
trace

Stop Writing Setup Instructions

Your README is usually out of date.

TraceEnv uses the setup steps that actually worked, so new developers do not have to guess which commands are still valid.

What You Get

  • No setup instructions to follow manually
  • No README guessing after clone
  • No hidden commands
  • A working environment faster on real projects
  • A reproducible path to deterministic setup when you want it

Works Even Without Configuration

No .traceenv.json? TraceEnv still works.

It will:

  • detect the project structure
  • infer likely setup steps
  • generate a setup plan
  • ask for confirmation
  • execute locally and stop on failure

✨ Key Features

  • Works on existing projects: No rewrite, no migration, no special project template.
  • Shows commands before execution: You see the plan before anything runs.
  • Handles common setup stacks: Node.js, Python, Docker, Go, Rust, and mixed environments.
  • Recovers better than shell scripts: Retries, failure classification, and recovery hints are built in.
  • Stays local-first: No telemetry and no forced cloud dependency.
  • Supports smarter inference when needed: Local GGUF, OpenAI, and Claude providers can help infer workflows.

Demo

TraceEnv demo

📦 Quick Start

Installation

Install the package globally:

git clone https://github.com/Arjun-Walia/TraceEnv.git
cd TraceEnv
npm install
npm run build
npm install -g .

The npm package is @arjunwalia/traceenv. The command you run is trace.

Verify the install:

trace --version

Basic Usage

Navigate to any project repository and let TraceEnv do the heavy lifting:

cd /path/to/any/project
trace

TraceEnv will detect the project type, build an execution plan, and ask for your confirmation before running.

Why Not Docker / Dev Containers / Nix?

  • No container overhead for projects that do not need containers
  • No requirement to define a new environment system before you can use it
  • Works with existing repositories immediately
  • Lets teams adopt deterministic setup gradually instead of all at once

TraceEnv adapts to how the project already works instead of forcing everything into a new workflow.

Safety Guarantees

  • Shows commands before execution
  • Requires confirmation unless you explicitly skip it
  • Never hides steps behind background magic
  • Stops on failure and reports what broke
  • Executes locally on your machine

You stay in control of what runs.

🛠️ CLI Reference

TraceEnv comes with a powerful suite of subcommands:

| Command | Description | Options | | :--- | :--- | :--- | | trace | Detect and run the setup workflow for the current directory. | --dry-run, --skip, --yes | | trace record | Interactively capture setup steps or extract them from an existing setup.sh. | --dir, --from | | trace synthesize | Generate a .traceenv.json manifest from project context. | --dir, --output | | trace daemon | Manage the background agent for real-time state tracking. | start, stop, status | | trace config | Configure shell, network port, or intelligence provider. | --shell, --mode, --provider | | trace model | Manage AI models for setup inference (Local, OpenAI, Claude). | list, use, info, auth | | trace install-hooks| Install shell hooks to monitor environment state. | --shell bash\|zsh |

Optional: Add .traceenv.json for Perfect Reproducibility

TraceEnv works without .traceenv.json.

If you want guaranteed, deterministic setup for every developer on every machine, add a manifest and commit it to the repository.

{
  "version": "1.0.0",
  "workflow": [
    { "command": "cp .env.example .env", "cwd": ".", "description": "Prepare env" },
    { "command": "docker compose up -d", "cwd": ".", "description": "Start services" },
    { "command": "npm install", "cwd": ".", "description": "Install dependencies" },
    { "command": "npm run migrate", "cwd": ".", "description": "Run migrations" }
  ],
  "prerequisites": ["Node.js 18+", "Docker", "Docker Compose"],
  "estimatedTime": "5-10 minutes"
}

You can create one by recording or synthesizing a workflow:

trace record --dir .
trace synthesize --dir .

📊 Feature Status Matrix

We are actively developing TraceEnv. Here is the current capability snapshot:

✅ Working

  • Core Pipeline: trace execution flow (planning, confirm prompt, --dry-run, --skip, --yes, retry/recovery).
  • Manifests: Loading and parsing .traceenv.json from local or parent directories.
  • Recording: trace record local workflows and existing bash scripts.
  • Daemons: trace daemon HTTP health tracking and event preview.
  • Models/Config: CLI configuration, model switching, and secure auth key storage locally.
  • UI Engine: Responsive, auto-scaling Unicode box-drawing layouts.

🚧 Not Implemented Yet / Known Limitations

  • trace --undo rollback mechanisms are currently unsupported.
  • Shell hooks (trace install-hooks) are limited to bash and zsh (Fish/PowerShell coming soon).
  • Local GGUF models require manual environment setup before they can be leveraged.
  • Strict ASCII-only fallback modes (for extremely legacy terminals) are not yet available.

🛡️ Privacy & Security

Your environment is your business. TraceEnv operates with a strict Local-First philosophy.

  • 🚫 Zero telemetry collection.
  • 🚫 No forced cloud connectivity.
  • 💾 All credentials, models, and execution logs are securely stored locally in ~/.traceenv.

🤝 Contributing

We welcome community contributions! Please read our Contributing Guidelines (coming soon) before submitting PRs.

# Local development setup
npm install
npm run build
npm run dev

📄 License

TraceEnv is open-sourced software licensed under the MIT License.