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

pretticlaw

v0.1.3

Published

Lightweight AI Assistant That Lives in Your Computer

Readme


What is Pretticlaw?

Pretticlaw is a minimal yet full-featured agent platform that ships with:

  • Zero boilerplate CLI: pretticlaw agent, pretticlaw gateway, pretticlaw doctor.
  • A rich browser dashboard on port 6767 with tabs for chat, channels, cron, settings, and status.
  • Tool-call aware chat + spinner/hover cues + live channel/cron wiring.
  • Multi-provider support: OpenAI, Anthropic, Groq, OpenRouter, and more, all tuned for tool-call support.

Part of the Prettiflow ecosystem, the first infrastructure for AI-built software.

Use Cases

📈 Around-the-Clock Market Intelligence

Pretticlaw can monitor stocks, crypto, forex, and commodities in real time, delivering automated alerts, trend summaries, and portfolio snapshots while you sleep. Set up a cron job and wake up to a full market briefing every morning.

🚀 Your Software Engineer Intern

Need a REST API scaffolded, a React dashboard wired up, or a database migration written? Pretticlaw reads your codebase, writes production-grade code, runs shell commands, and iterates on bugs, acting as a full-stack engineer that never clocks out.

📅 Intelligent Daily Planner

From scheduling meetings to sending reminders and organizing your to-do list, Pretticlaw manages your daily workflow. It learns your habits through memory, prioritizes tasks, and keeps your routine on track with scheduled heartbeat check-ins.

📚 Personal Research and Knowledge Companion

Ask Pretticlaw anything: summarize a paper, search the web for the latest docs, compile notes from multiple sources, or maintain a personal knowledge base. It fetches, reads, and distills information so you can focus on what matters.

Quick Install

npm install -g pretticlaw
pretticlaw onboarding
pretticlaw gateway         # start gateway + dashboard
pretticlaw agent -m "Hello"

Running Locally

  1. Global binary: pretticlaw is published as an npm CLI (call pretticlaw --help).
  2. Development: clone the repo, run npm install, npm run build, npm link to test changes.
  3. Dashboard: while the gateway runs, visit http://localhost:6767/chat to interact, adjust channels, tweak cron jobs, or inspect status.

Providers

Pretticlaw supports multiple LLM providers out of the box:

| Provider | Link | Notes | |---|---|---| | OpenAI | platform.openai.com | GPT-4o, GPT-4, GPT-3.5, full tool-call support | | Anthropic | docs.anthropic.com | Claude 4, Claude 3.5 Sonnet, tool-use ready | | Groq | console.groq.com | GPT-OSS-120B, Llama 4, ultra-fast inference | | OpenRouter | openrouter.ai | Unified access to 200+ models | | Custom | - | Any OpenAI-compatible endpoint |

Configure your provider during pretticlaw onboarding or via ~/.pretticlaw/config.json.

Channel Onboarding

pretticlaw onboarding walks you through:

  1. Provider / model / API key selection.
  2. Whether you want a chat channel (Telegram / WhatsApp).
  3. Channel token input, stored directly in ~/.pretticlaw/config.json.

Want to tweak later? Update the dashboard /channels tab or edit ~/.pretticlaw/config.json.

Cron + Heartbeat

  • Add jobs with pretticlaw cron add --name "digest" --every 3600 --message "report".
  • List jobs: pretticlaw cron list.
  • Run a job: pretticlaw cron run <id>.
  • Heartbeat wakes every 30m and executes tasks in ~/.pretticlaw/workspace/HEARTBEAT.md.

Command Reference

| Command | Purpose | |---|---| | pretticlaw onboard | Scaffold config/workspace + optional channel token wizard | | pretticlaw agent | Chat interactively (arrow keys + tool hints) | | pretticlaw agent -m "<msg>" | One-off agent request | | pretticlaw gateway | Start gateway + dashboard (listen on [port]/chat) | | pretticlaw doctor | Validate provider/model configuration | | pretticlaw channels status | Show channel health | | pretticlaw channels login | Link WhatsApp | | pretticlaw status | Print provider/model/channel summary | | pretticlaw cron ... | Manage scheduled jobs |

You can also edit channels/config from the dashboard. The server automatically saves your choices.

🌐 Agent Social Network

Pretticlaw is capable of linking to the Agent Social Network (agent community). Just send one message and your Pretticlaw joins automatically!

| Platform | How to Join (send this message to your Pretticlaw) | |---|---| | Moltbook | Read https://moltbook.com/skill.md and follow the instructions to join Moltbook | | ClawdChat | Read https://clawdchat.ai/skill.md and follow the instructions to join ClawdChat |

Simply send the command above to your Pretticlaw (via CLI or any chat channel), and it will handle the rest.

Architecture

  • Data model: Session/cron/heartbeat patterns. JSONL sessions, CronService persistence, heartbeat triggers.
  • Providers: OpenAI · Anthropic · Groq · OpenRouter + local custom endpoints via Litellm.
  • Tools: exec/read/write/list/edit, web search/fetch, cron, spawn message tool.
  • Dashboard: React (ESM) served via lightweight HTTP handler from assets copied into dist/dashboard.

Links

| | | |---|---| | Prettiflow | prettiflow.tech | | Pretticlaw | prettiflow.tech/claw |

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Contact

Reach the team at [email protected].

Getting Help

  • File issues on the repo.
  • Email us at [email protected].
  • For quick debugging, run pretticlaw doctor and view errors on the dashboard.