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

toml-ops

v0.0.5

Published

CLI to generate and run Ansible playbooks from TOML

Downloads

19

Readme

TomlOps

A command-line interface tool for generating and running Ansible playbooks from simplified TOML configuration files.

Features

  • Simplifed TOML-based configuration
  • Support for multiple hosts with environment-specific settings
  • Make the AI agents tool calls powerful
  • Automatic Ansible inventory and playbook generation
  • Debug mode for verbose output
  • Step-based task execution with privilege escalation options
  • AI Agent Integration Enables AI systems to execute complex infrastructure operations through simple declarative configurations

Installation

Install dependencies:

npm install -g toml-ops

Configuration example

name = "llama-server-start"
description = "Start llama-server on multiple hosts with per-host SSH overrides"
debug = true

hosts = [
    { addr = "192.168.67.112" },
    #   { addr = "192.168.67.113", env = { user = "admin", become = false } },
]

[env]
user = "admin"
ssh_key = "~/.ssh/id_rsa"
python = "/usr/bin/python3"
become = false

[[steps]]
name = "Check if llama-server is running"
command = "pgrep -f 'llama-server' || echo 'No processes found'"
become = false

[[steps]]
name = "Start llama-server"
command = "nohup /opt/homebrew/bin/llama-server --host 0.0.0.0 -hf ggml-org/gpt-oss-20b-GGUF --n-cpu-moe 12 -c 32768 --jinja --no-mmap > llama-server.log 2>&1 &"
become = false

[[steps]]
name = "Show running PID"
command = "pgrep -fl 'llama-server' || echo 'No processes found'"
become = false

Prerequisites

Before using this tool, ensure you have:

SSH Key Setup (Required for remote server access):

# Generate SSH key if you don't have one
ssh-keygen -t rsa -b 4096 -f ~/.ssh/my_key

# Copy public key to target servers
ssh-copy-id -i ~/.ssh/my_key.pub [email protected]

Ansible Installation (Required for execution):

# On Ubuntu/Debian
sudo apt update
sudo apt install ansible

# On macOS
brew install ansible

# On CentOS/RHEL
sudo yum install ansible

Usage


# Generate Ansible files without running
toml-ops generate runbook.toml

# Generate and immediately run playbook
toml-ops run runbook.toml
toml-ops run runbooks/llama.cpp/start.toml

# Enable debug output
toml-ops run runbook.toml --debug

# Specify custom output directory
toml-ops run runbook.toml -o ./ansible-files

AI Agent Integration

This tool dramatically enhances AI agent capabilities by:

  • Simplified Interface: AI agents can generate TOML configurations instead of complex Ansible playbooks
  • Structured Output: Consistent format that agents can easily parse and generate
  • Powerful Execution: Converts simple declarations into robust infrastructure operations
  • Safe Abstraction: Agents don't need to understand Ansible internals to perform complex operations

Predefined tools

Clone the project and copy the tools to use in our runbooks: https://github.com/ggzy12345/ai-agents-apps/tree/main/tools