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 🙏

© 2025 – Pkg Stats / Ryan Hefner

qirrel

v0.3.2

Published

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

Readme

Qirrel

NPM Version NPM Downloads License TypeScript

Sophisticated NLP library for comprehensive text processing, tokenization, and analysis with LLM integration.

GitHub | NPM | Author: Damilare Osibanjo

Quick Start

npm install qirrel

Extract Multiple Entity Types

import { processText } from 'qirrel';
const result = await processText('Contact John at [email protected] or call +1-555-123-4567');
console.log(result.data?.entities);
// [
//   { type: 'email', value: '[email protected]', ... },
//   { type: 'phone', value: '+1-555-123-4567', ... }
// ]

Extract URLs and Numbers

import { processText } from 'qirrel';
const result = await processText('Visit https://example.com for more info. Price: $29.99');
console.log(result.data?.entities);
// [
//   { type: 'url', value: 'https://example.com', ... },
//   { type: 'number', value: '29.99', ... }
// ]

Advanced Pipeline Usage

import { Pipeline } from 'qirrel';
const pipeline = new Pipeline();
const result = await pipeline.process('Check out https://github.com and email [email protected]');
console.log(result.data?.entities);

LLM Integration

Connect to large language models for enhanced text analysis:

import { Pipeline } from 'qirrel';

// Enable LLM in your config
const pipeline = new Pipeline('./config-with-llm.yaml');
const llmAdapter = pipeline.getLLMAdapter();

if (llmAdapter) {
  // Use LLM for advanced analysis
  const response = await llmAdapter.generateContent('Analyze this text...');
  console.log(response);
}

Caching

Qirrel includes built-in caching functionality to improve performance by storing frequently accessed results:

import { Pipeline, LruCacheManager } from 'qirrel';

// The pipeline automatically uses caching based on configuration
const pipeline = new Pipeline();

// Access the cache manager directly if needed
const cacheManager = pipeline.getCacheManager();

// Custom cache usage
const cache = new LruCacheManager({
  maxEntries: 1000,  // Maximum number of cached items
  ttl: 300000        // Time-to-live in milliseconds (5 minutes)
});

// Check if a result is already cached
if (pipeline.isCached('some text')) {
  const cachedResult = pipeline.getCached('some text');
  console.log('Using cached result');
} else {
  const result = await pipeline.process('some text');
  console.log('Processing new text');
}

Pipeline Lifecycle Events

Monitor and react to pipeline execution with comprehensive lifecycle events:

import { Pipeline, PipelineEvent } from 'qirrel';

const pipeline = new Pipeline();

// Subscribe to pipeline events
pipeline.on(PipelineEvent.RunStart, (payload) => {
  console.log('Pipeline started:', payload.context.meta?.requestId);
});

pipeline.on(PipelineEvent.ProcessorEnd, (payload) => {
  console.log(`Processor ${payload.processorName} completed in ${payload.duration}ms`);
});

pipeline.on(PipelineEvent.RunEnd, (payload) => {
  console.log('Pipeline completed in', payload.duration, 'ms');
});

const result = await pipeline.process('Your text here');

Use Cases

Qirrel is perfect for developers building solutions for:

  • Business Applications: Extract customer contact details, lead generation from documents, document processing for legal/medical/financial use cases
  • Social Media Analysis: Process social content for mentions, hashtags, links, and user-generated content patterns
  • Research & Content: Extract structured data from academic papers, news articles, or documentation
  • Data Processing: Unstructured data extraction, log file analysis, preprocessing for ML pipelines
  • Communication Tools: Email processing, chat applications, content moderation

Documentation

Contributing

We welcome contributions from the community! Please read our Contributing Guide for more information.

License

This project is licensed under the MIT License - see the LICENSE file for details.