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

@aparte/titler

v1.1.0

Published

Conversation titles from the first message, in 17 languages, in the browser — the runtime for aparte-titler models (bring your own .bin, or use @aparte/titler-latin)

Readme

@aparte/titler

The runtime for aparte-titler models: a title of 3 to 6 words for a conversation, copied verbatim from its first message, in the browser or in Node, with no API call. One file, no dependency, ~6 KB minified, 6–7 ms per title on one CPU core.

This package is the runtime only. It reads the .bin model files published at huggingface.co/apartejs/aparte-titler. If you just want it to work, install @aparte/titler-latin instead: same runtime, default model bundled (17 languages, 133 KB).

Install

npm install @aparte/titler

Use

import { Titler } from "@aparte/titler";

// any model from https://huggingface.co/apartejs/aparte-titler
const url = "https://huggingface.co/apartejs/aparte-titler/resolve/main/titler-v1.1-latin-int3.bin";
const titler = new Titler(await fetch(url).then((r) => r.arrayBuffer()));

titler.title("Write me a cover letter for a junior data analyst position at a bank");
// -> "cover letter junior analyst position bank"

titler.title("Salut ! Tu peux me donner une recette de pain sans gluten facile pour ce week-end ?", 4);
// -> "pain gluten facile week-end"   (a budget of 4 words instead of 6)

titler.words("Can you explain how photosynthesis works in plants?");
// -> { words: [{ word: "Can", start: 0, end: 3, score: 0.11 }, …, { word: "photosynthesis", start: 19, end: 34, score: 1.00 }, …], … }

In Node, read the file instead of fetching it:

import { readFile } from "node:fs/promises";
const buf = await readFile("titler-v1.1-fr-int3.bin");
const titler = new Titler(buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength));

Give the model only the user's first message — never a system prompt or the conversation history: it picks the most salient words of whatever it is given.

Which model file?

| file | covers | int3 size | |---|---|---| | titler-v1.1-latin-int3.bin | 17 European languages (en, fr, es, de, pt, it, nl, pl, sv, da, fi, cs, ro, no, hu, hr, lt) | 133 KB | | titler-v1.1-latin-mini-int3.bin | the same 17, smaller vocabulary, −0.5 point on average | 96 KB | | titler-v1.1-efigsp-int3.bin | en, fr, es, de, pt, it | 77 KB | | titler-v1-<lang>-int3.bin | one language | 40 KB |

Every model also exists in fp32, int8 and int4. int3 is the recommended precision: same score as fp32 on every benchmark. Scores, sizes and charts: huggingface.co/apartejs/aparte-titler.

What it does, exactly

A 2-layer transformer encoder (58k parameters for one language, 141k for seventeen) scores every word of the message; the title is the best-scored words, kept in message order. The words are always copied from the message — it never rewrites, never invents, never corrects a typo. It also cannot execute anything: the worst an injected instruction can do is a poor title.

Format and versions

The runtime reads model files of format: 1. A future format 2 (new architecture) will ship with a new major version of this package that still reads format 1 files. Models and runtime follow the same versioning: 1.x keeps the file format, 2.0 changes it.

License

MIT © 2026 Paul Richez. The models have their own cards and licenses on Hugging Face.