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

marketing-engine

v0.1.0

Published

Provider-agnostic AI marketing engine. CLI that drops into any host project. Pipeline: brief -> script -> creative -> caption -> compliance -> publish -> metrics -> ads. Switch LLM/image/video provider via env, never via skill rewrite.

Readme

Marketing Engine

Provider-agnostic AI marketing engine. Drop into any project, scan it, generate posts, publish across 9 platforms — all configurable via .env.

CI

What it does

  • Scans the host project (package.json, README, source tree, existing brand assets) and drafts brand, persona, and content-pillar specs you can review and edit.
  • Generates copy through a routed LLM layer (Claude, Codex, DeepSeek, Copilot, Ollama) chosen per task type.
  • Generates images and videos through routed providers (gpt-image, Higgsfield, TopView, Wavespeed) selected by content format.
  • Runs a compliance audit before any publish action and blocks pieces that fail the gate.
  • Publishes the 4-platform caption set through AdaptlyPost (Instagram, TikTok, Facebook, LinkedIn, X, Threads, Pinterest, Shorts, YouTube — 9 platforms total).
  • Pulls analytics on a schedule, classifies top performers, and drafts Meta Ads campaigns from the winners.

Quick start

cd /path/to/your-project
npx marketing-engine init
cp .marketing-engine/.env.example .marketing-engine/.env
# fill ANTHROPIC_API_KEY at minimum
npx marketing-engine check
npx marketing-engine generate    # DRY_RUN by default

Why provider-agnostic

No provider is hardcoded. PROVIDERS.md plus .env decide which LLM, image, or video service handles each task. Switching providers is one env change, not a refactor. Skills declare an abstract task_type (copy-short, image-carousel, video-reel); the router resolves the concrete vendor at runtime and applies fallback automatically.

Stack supported

| Layer | Providers (default first) | |---|---| | LLM | claude, codex, deepseek, copilot, ollama | | Image | gpt-image, higgsfield, topview, wavespeed | | Video | higgsfield, topview, wavespeed | | Publishing | adaptlypost (9 platforms) | | Ads | meta-ads |

Routing rules and rationale live in .specs/architecture/PROVIDERS.md.

CLI commands

| Command | What it does | |---|---| | init | Scaffold .marketing-engine/ in host project | | scan | Re-scan host project to refresh draft specs | | check | Validate provider env keys | | generate | Run generation loop (DRY_RUN-safe) | | promote | Run promotion loop |

Architecture

Pipeline: brief → script → creative → caption → compliance → publish → metrics → ads. The router brokers every external call so vendor swaps stay configuration-only.

flowchart LR
    brief[Brief / piece.md] --> router[lib/router.ts]
    router --> llm[LLM]
    router --> media[Image / Video]
    llm --> compliance[Compliance Gate]
    media --> compliance
    compliance -->|pass| publish[AdaptlyPost / 9 platforms]
    publish --> metrics[Analytics]
    metrics --> ads[Meta Ads draft]

Full design: .specs/architecture/DESIGN.md.

Repo layout

.specs/        # product, architecture, workflow, sprints — canonical docs
.skills/       # reusable skills (provider-neutral)
.ralph/        # operational scripts (loops, sync, checks)
lib/           # router + provider adapters + publish + ads
bin/           # CLI entry (marketing-engine.mjs)
e2e/           # Playwright specs

Setup details: SETUP.md. Agent contract and Definition of Done: AGENTS.md.

Develop

npm install
npm run typecheck
npm run test:e2e
node bin/marketing-engine.mjs help

Contributing

See CONTRIBUTING.md. Issues and PRs welcome. Conventional commits required. CI must pass DoD checks before merge.

License

Apache-2.0. See LICENSE.