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

@aimarket/widget

v0.1.1

Published

Embeddable AI capability search + invoke widget — one script tag, MIT, AIMarket Protocol v2

Readme

AIMarket Widget v2.0.0

Ecosystem: AICOM overview & live demos · Oracles: oracles.modelmarket.dev · GitHub (verifiable randomness, VDF, consensus, …)

Embeddable AI capability search + invoke widget. One <script> tag.

1-Click Agent Embed

~60 seconds to production. One <script> tag gives your site discover + wallet channel + invoke UI with theme auto-detect and affiliate economics.

| | | |---|---| | What | data-intent, data-budget, data-affiliate-id → full agent surface | | Why | Stripe-Checkout simplicity for AI capabilities — no weeks of API glue | | Deep dive | docs/killer-feature-one-click-embed.md · Ecosystem capabilities |

Live Demo

GitHub Pages demo — static embed demo (enable Pages → GitHub Actions in repo settings)

modelmarket.dev/widget/demo — interactive demo with all 6 themes

modelmarket.dev/live — AI Economy live ticker (Bloomberg Terminal)

Quick Start

npm (bundler / static hosting)

npm install @aimarket/widget
<link rel="stylesheet" href="/node_modules/@aimarket/widget/themes.css">
<script src="/node_modules/@aimarket/widget/widget.js"
        data-theme="auto"
        data-intent="translate to 5 languages"
        data-budget="3.00"
        data-hub-url="https://modelmarket.dev"
        data-affiliate-id="my_blog"></script>

CDN (no build step)

<script src="https://modelmarket.dev/widget/widget.js"
        data-theme="auto"
        data-intent="translate to 5 languages"
        data-budget="3.00"
        data-hub-url="https://modelmarket.dev"
        data-affiliate-id="my_blog"></script>

Themes

| Theme | data-theme | Preview | |-------|-------------|---------| | Cyber (dark) | cyber | GitHub-style dark | | Neon | neon | High-contrast cyberpunk | | Light | light | Clean white | | Paper | paper | Warm minimalist | | Midnight | midnight | Dark blue enterprise | | Ocean | ocean | Teal & coral | | Auto | auto | Detects parent page theme |

data-theme="auto" detects the parent page's data-theme-bg, <html> class, background luminance, and prefers-color-scheme media query. Switches live when system theme changes.

Affiliate Program

Set data-affiliate-id="my_site" — earn 30% of every widget invocation spend from your visitors.

Security

  • No inline event handlers — all events via addEventListener. XSS-safe.
  • Safe DOM — user data rendered via textContent, never innerHTML
  • Content escaping — <, >, & escaped before any HTML insertion
  • Safety gate — injection attempts return HTTP 403 with signed rejection receipt

Try-before-buy (sandbox)

The Try free (N) button calls Hub with X-AIMarket-Sandbox-Visitor (stored in localStorage). No payment channel is opened until the visitor exhausts free trials (default 3 per visitor, hub-configurable).

Paid flow (programmatic): window.__aimwTryPaid(productId, capabilityId, sourceHub) — opens v2 channel, invokes, settles.

See docs/ecosystem-integration.md.

API

The widget calls the hub's v2 API:

| Call | Endpoint | |------|----------| | Search | GET /ai-market/v2/search?intent=...&limit=6 | | Channel open | POST /ai-market/v2/channel/open | | Invoke | POST /ai-market/v2/invoke (with X-Payment-Channel header) | | Channel close | POST /ai-market/v2/channel/close |

License

MIT — see LICENSE.

Governance

| Doc | Purpose | |-----|---------| | LICENSE | MIT terms | | SECURITY.md | Vulnerability reporting | | CONTRIBUTING.md | How to contribute | | CONTRIBUTORS.md | Maintainers & recognition |

Maintained by AI-Factory · Demo · Live Stream · Hub