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

@dotrino/profile

v0.4.0

Published

Web Component (custom element) <dotrino-profile> reutilizable por cualquier app del ecosistema Dotrino: tarjeta de perfil + reputación (confianza/afinidad, web-of-trust, reputación de la red). Autohosteado, Shadow DOM, temable por CSS vars.

Downloads

103

Readme

@dotrino/profile

Parte del ecosistema Dotrino. Misión: aplicaciones que resuelven problemas comunes, respetando tu privacidad — sin anuncios, sin cookies, sin rastreo de datos, sin vender tu identidad a nadie.

Web Component (<dotrino-profile>) compartido del ecosistema Dotrino: la tarjeta de perfil + reputación de un peer, idéntica en todas las apps (messenger, eco, trueque, …). Autohosteado, Shadow DOM, sin JS de terceros ni cookies. Bilingüe es/en. Temable solo por CSS custom properties.

Muestra:

  • Identidad — avatar (iniciales + color determinista por pubkey), nombre, pubkey corta, "conocido desde".
  • Mi calificación (modo edit) — confianza + afinidad (estrellas) + notas privadas.
  • Web of Trust — endosos firmados de mi red (lista + promedio).
  • Reputación de la redreputationOf ponderada por mi web-of-trust (anti-sybil), confianza/afinidad en %.

Filosofía / decisiones

  • UI compartida = Web Component (el ecosistema es mixto Vue/vanilla), no un componente Vue. Mismo patrón que @dotrino/support.
  • Sin acoplar datos: el componente no depende de identity ni reputation. La app inyecta un provider (adapter). Para los paquetes estándar hay un helper de 1 línea: createVaultProfileProvider({ identity, reputation }).
  • Tema por CSS vars --ccp-* (defaults = paleta del messenger). Cada app cambia solo los colores; el layout/comportamiento es idéntico.

Uso (Vue)

import '@dotrino/profile'
import { createVaultProfileProvider } from '@dotrino/profile'
<dotrino-profile
  modal
  :pubkey="pk"
  :name="nick"
  :since="firstSeen"
  :online="isOnline"
  @cc-profile-rate="onRated"
  @cc-profile-close="close"
  @cc-profile-refresh="askPeers" />
// tras montar, setear la propiedad JS `provider` (objeto, no atributo):
el.provider = createVaultProfileProvider({ identity, reputation })

En Vue 3, configurá isCustomElement: (tag) => tag.startsWith('dotrino-') en compilerOptions del plugin de Vue.

Uso (vanilla)

<script type="module" src="https://cdn.jsdelivr.net/npm/@dotrino/[email protected]/src/index.js"></script>
<dotrino-profile pubkey="..." name="Ada"></dotrino-profile>
<script type="module">
  const el = document.querySelector('dotrino-profile')
  el.provider = createVaultProfileProvider({ identity, reputation })
</script>

API

Atributos

| Atributo | Descripción | |-----------|-------------| | pubkey | JWK string del sujeto (requerido) | | name | nombre/nick a mostrar | | since | timestamp ms del primer contacto ("conocido desde") | | online | booleano: muestra el punto de en-línea | | mode | edit (default) | view (solo lectura, sin editor ni footer) | | modal | booleano: envuelve en backdrop + header/footer | | heading | título del header (override) | | lang | es | en | auto (default auto) |

Propiedad JS

  • .provider: ProfileProvider — adapter de datos. Métodos (todos opcionales): getMyRating, getEndorsements, getCloudReputation, rate.

Métodos

  • el.reload() — recarga los datos del provider.

Eventos (bubbles, composed)

  • cc-profile-ratedetail { pubkey, indicators, notes } (tras guardar OK).
  • cc-profile-close.
  • cc-profile-refreshdetail { pubkey } (botón ↻ del Web of Trust; la app puede difundir un RATING_QUERY a sus contactos).

Tema (CSS custom properties)

Todas con fallback a las vars del messenger (--bg-1, --accent, …) y luego a un default. Override seteándolas en el elemento o un ancestro:

dotrino-profile {
  --ccp-bg: #fff;
  --ccp-accent: #6c5ce7;
  --ccp-gold: #f1c40f;
  --ccp-affinity: #00b894;
  --ccp-radius: 12px;
}

--ccp-bg, --ccp-bg-2..4, --ccp-border, --ccp-text, --ccp-muted, --ccp-accent, --ccp-accent-2, --ccp-gold, --ccp-derived, --ccp-online, --ccp-affinity, --ccp-radius, --ccp-font, --ccp-font-headline, --ccp-font-mono.

Licencia

MIT