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

@mostajs/ads

v0.1.0

Published

Headless, sovereign ad & campaign management — advertisers, campaigns, creatives, placements, ad breaks, scene branding, exposure metrics & billing. Provider for @mostajs/* apps (race-event, media, web).

Readme

@mostajs/ads

Auteur : Dr Hamid MADANI [email protected] · Licence : AGPL-3.0-or-later Statut : PROPOSITION (DEVRULES §4, cas C) — squelette, non encore implémenté. Alias de nom envisagé : @mostajs/campaign-ads.

Moteur headless, multi-tenant et souverain de gestion publicitaire pour l'écosystème @mostajs/* : annonceurs, campagnes, créas, emplacements, pauses publicitaires, habillage sponsor de scène, mesure d'exposition et facturation.

@mostajs/ads fournit la logique pub ; il ne diffuse pas la vidéo (→ @mostajs/media-*) et n'embarque pas le métier de l'application (→ ex. @mostajs/race-event).

Pourquoi

Toute application à audience (événementiel sportif, e-learning, média, site) a besoin de valoriser cette audience : servir des publicités, gérer des coupures, mesurer l'exposition pour facturer les sponsors. Plutôt que de réécrire cette logique dans chaque app, @mostajs/ads la mutualise — auto-hébergeable, données sous contrôle.

Concepts

Hiérarchie inspirée de Meta Ads & Google Ads : Campaign → AdSet → Ad → Creative, avec Audience (ciblage : tranche horaire, tranche d'âge, région), budget et enchère au niveau AdSet. Côté monétisation (inspiré AdMob) : AdUnit (banner/interstitial/rewarded/native/app_open) + médiation/eCPM. Live : AdBreak/AdSpot. Mesure : Metrics (impressions, reach, CTR, conversions, spend, eCPM, ROAS).

API (prévue)

import { AdsService } from '@mostajs/ads/server'
const ads = new AdsService(dialect)

// servir l'habillage d'un slot de scène (ex. bandeau sponsor)
const creative = await ads.serve('scene:bandeau', { account, courseId, ville: 'Blida' })

// pause publicitaire
await ads.startBreak(breakId)        // bascule playlist (rendu via @mostajs/media-mcu)
const spot = await ads.nextSpot(breakId)
await ads.endBreak(breakId)

// mesure & facturation
await ads.recordExposure({ account, creativeId, startedAt, endedAt, avgViewers })
const rapport = await ads.report({ sponsorId, range })   // temps d'antenne, audience, facturable

Composition

@mostajs/orm·data-plug (persistance) · @mostajs/storage (créas) · @mostajs/api-keys (scoping) · @mostajs/net (exposition temps réel, option). Rendu côté consommateur : @mostajs/media-mcu (playlist de pause + superpositions de scène).

Premier consommateur

RaceVision (@mostajs/race-event) : pauses pub + publicité sur la scène des talks + ciblage par étape/territoire. Voir mosta-geo/examples/realtime-cyclists/docs/DESIGN-PUBLICITE-RACEVISION.md.

État

Proposition (docs/00-PROPOSITION-MODULE-ADS.md) + llms.txt. À implémenter : schémas, AdsService, routes, puis les 14 livrables DEVRULES §9.