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

qirrel

v0.3.3

Published

Qirrel is a sophisticated and extensible NLP library for comprehensive text processing, tokenization, and analysis.

Downloads

118

Readme

Qirrel

TypeScript NLP pipeline for fast, structured text understanding

CI CD NPM Version NPM Downloads License TypeScript

GitHub · NPM · Author: Damilare Osibanjo

Why Qirrel

Qirrel gives you a production-ready pipeline for extracting structure from raw text:

  • Tokenization with positional metadata.
  • Rule-based extraction for email, phone, URL, and number entities.
  • Optional LLM enrichment via adapter pattern.
  • Built-in caching and lifecycle events.
  • Batch processing with controllable concurrency.

Install

bun add qirrel

30-Second Start

import { processText } from 'qirrel';

const result = await processText(
  'Contact Jane at [email protected] or +44 20 7946 0958',
);

console.log(result.data?.entities);

Core Features

| Feature | API | Notes | | --- | --- | --- | | Single-text processing | processText(text) | Returns QirrelContext | | Batch processing | processTexts(texts, configPath?, { concurrency }) | Keeps input order | | Custom pipeline | new Pipeline(configPath?) | Add processors and hooks | | Events | pipeline.on(PipelineEvent.*, handler) | Run/processor/error telemetry | | Caching | pipeline.isCached/getCached/setCached | LRU + TTL | | LLM adapter | pipeline.getLLMAdapter() | gemini, openai, generic |

Batch Example

import { processTexts } from 'qirrel';

const inputs = [
  'US: +1 415 555 2671',
  'URL: https://example.com',
  'Email: [email protected]',
];

const outputs = await processTexts(inputs, undefined, { concurrency: 2 });
console.log(outputs.map((o) => o.data?.entities));

LLM Example

import { Pipeline } from 'qirrel';

const pipeline = new Pipeline('./config-with-llm.yaml');
await pipeline.init();

const adapter = pipeline.getLLMAdapter();
if (adapter) {
  const response = await adapter.generate('Summarize: Qirrel is an NLP pipeline.');
  console.log(response.content);
}

Minimal LLM Config

llm:
  enabled: true
  provider: openai
  apiKey: ${QIRREL_LLM_API_KEY}
  model: gpt-4o-mini
  timeout: 30000
  cacheTtl: 300000

Quality Gates (CI/CD)

This repository includes GitHub Actions workflows:

  • ci.yml: runs install, build, tests, and coverage on push/PR.
  • release.yml: runs release checks and can publish to npm on version tags (v*) when NPM_TOKEN is configured.

Agent-Native Mode

Qirrel ships with an agent-native bridge plus an MCP server so the same parsing core works for API code and agent toolchains.

import { createQirrelAgentBridge } from "qirrel";

const bridge = createQirrelAgentBridge();
const result = await bridge.callTool("qirrel.parse_text", { text: "Email [email protected]" });
console.log(result.structuredContent);

Run MCP server:

bun run mcp:start

Run benchmark:

bun run bench:agent

Framework comparison benchmark:

bun run bench:frameworks

Generate local markdown benchmark report:

bun run bench:report

Documentation

Contributing

See CONTRIBUTING.md.

License

MIT. See LICENSE.