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

@lacspace/explainer

v1.0.0

Published

Turn an article into an explainer without an LLM — English or Nepali: title / what happened / why it matters / key numbers (shown exactly as written) / who's involved / background / what's next / CTA slides, a ready @lacspace/newscard carousel, a 30–60 s

Readme

@lacspace/explainer

An article in, an explainer out — slides, carousel, video script, FAQ — with no LLM. English or Nepali. Built on TextRank (@lacspace/extractive) and @lacspace/keyphrase; figures are shown exactly as written, never recomputed. An optional LLM "polish" can smooth voiceover lines behind a facts lock.

npm i @lacspace/explainer
import { explain, polish } from "@lacspace/explainer";

const ex = explain(articleText, { brand: "WeNepal", slides: 8, scenes: 5 });
ex.category    // "economy" (lexicon vote; override with your own categories)
ex.slides      // [{ kind: "title" | "what" | "why" | "numbers" | "who" | "background" | "next" | "cta", heading, body, bullets?, stat? }]
ex.carousel    // newscard CarouselSpec.slides — renderCarousel({ theme, slides: ex.carousel })
ex.script      // { scenes: [{ n, heading, voiceover, onScreen, durationSec, visualQueries, overlay }], totalSec, words }
ex.faq         // [{ q: "के भयो?", a }, { q: "यो किन महत्त्वपूर्ण छ?", a }, …]
ex.hashtags, ex.facts, ex.warnings

How the structure is chosen

| slide | rule | |---|---| | title | your title, else the lead sentence (≤ 120 chars), else the shortest high-ranked sentence | | what | the lead; if the title already is the lead, the next sentence in reading order | | why | highest-ranked unused sentence with a causal/impact marker (because, due to, impact, risk … / कारण, ले गर्दा, असर, प्रभाव, जोखिम …) | | numbers | the first amount → percentage → number claim, shown as written with its currency token (रु. ५० अर्ब); stat label = its sentence minus the figure; up to 4 figure sentences as bullets | | who | entities (Latin Title-Case + gazetteer; Nepali names after role words — गभर्नर, मन्त्री, कप्तान, डा. … — or gazetteer first + last name pairs) | | background | sentence with a past marker (earlier, last year, in 2024 … / गत, अघि, विगत …) | | next | sentence with a future marker (will, scheduled, from Monday … / हुनेछ, आगामी, लागू हुने …) | | cta | "Follow {brand} …" in the article's language |

Slides beyond slides are dropped by priority (title, what, why, numbers, next, cta, who, background). Missing why/next produce warnings so an editor can add a line.

Video script

Scene 1 always speaks the lead; then one scene per content slide (de-duplicated). Each voiceover is trimmed to ≤ 30 words at a clause boundary; duration follows word count (ne ≈ 125 wpm, en ≈ 160 wpm, 4 s minimum, capped by sceneSeconds × 1.6). visualQueries are English stock-footage searches (Latin entities + category fallbacks such as "stock market display board", "monsoon clouds mountains") for @lacspace/stockmedia; overlay hints @lacspace/motiongfx (stinger on scene 1, stat on the numbers scene, lower-third on the who scene). Feed voiceovers to @lacspace/tts.

Optional polish

polish(ex, llm) asks your injected llm(prompt) to rewrite each voiceover in ≤ 25 conversational words. A rewrite is kept only if it is non-trivial and every digit in it already appears in the deterministic line; failures and invented figures fall back silently.

describe() returns the command schema for an AI conductor.

Licence

Lacspace Free Licence v1.0 — free for personal and commercial use.