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

@aura-labs.ai/nlp

v0.1.0

Published

Shared NLP module for AURA Agent Universal Resource Architecture — intent completeness checking, conversational clarification, and LLM provider abstraction

Readme

@aura-labs.ai/nlp

Shared NLP module for the Agent Universal Resource Architecture (AURA) platform. Provides intent completeness checking, conversational clarification, and LLM provider abstraction.

Used by: Scout SDK, Beacon SDK, Core intent-svc.

Install

Zero external dependencies. Link via file: reference in package.json:

{ "dependencies": { "@aura-labs.ai/nlp": "file:../../sdks/nlp" } }

API

checkCompleteness(text, options?) → Promise<CompletenessResult>

Determines whether an intent string contains all required information across 8 categories.

import { checkCompleteness } from '@aura-labs.ai/nlp';

const result = await checkCompleteness('I need 50 ergonomic keyboards under $5000');
// { complete: false, missing: ['what_kind'], confidence: 0.63, categories: { ... } }

Options:

  • provider — LLM provider for model-based detection (what, what_kind, why, values_impact)
  • activityLoggerNlpActivityLogger instance for event emission

Without a provider, only regex-detectable categories are checked (how_many, how_much_cost, when, where). Categories requiring semantic understanding (what, what_kind) need a provider.

generateClarification(missing, options?) → { question, suggestions }

Generates a natural-language clarification question for missing categories.

import { generateClarification } from '@aura-labs.ai/nlp';

const { question } = generateClarification(['how_many', 'how_much_cost']);
// "How many would you like? Also, what's your budget or price range?"

Options:

  • previousRounds — Array of prior round data for context-aware follow-ups

createProvider(config) → MockProvider | RemoteProvider

Factory for LLM providers.

import { createProvider } from '@aura-labs.ai/nlp';

// Testing
const mock = createProvider({ type: 'mock' });

// Production (Together AI)
const together = createProvider({
  type: 'together',
  apiKey: process.env.NLP_PROVIDER_API_KEY,
});

// Production (Fireworks)
const fireworks = createProvider({
  type: 'fireworks',
  apiKey: process.env.NLP_PROVIDER_API_KEY,
});

const result = await provider.parse('I need keyboards');
// { structured: { ... }, confidence: 0.8, ambiguities: [] }

INTENT_CATEGORIES

Frozen object defining the 8 intent categories with tier, detection method, and regex patterns.

| Category | Tier | Detection | Description | |----------|------|-----------|-------------| | what | 1 | model | Product/service identification | | how_many | 1 | regex | Quantity detection | | what_kind | 1 | model | Characteristics/attributes | | how_much_cost | 1 | regex | Price/budget detection | | where | 2 | hybrid | Location/delivery | | when | 2 | regex | Timing/deadline | | why | 2 | model | Purpose/use case | | values_impact | 2 | model | Values alignment (sustainability, etc.) |

Tier 1 categories are always required. Tier 2 categories are required only when triggered by intent language.

NlpActivityLogger / NlpActivityEvents

Structured event system for observability.

import { NlpActivityLogger, NlpActivityEvents } from '@aura-labs.ai/nlp';

const logger = new NlpActivityLogger({ logger: console });
logger.on(NlpActivityEvents.COMPLETENESS_CHECKED, (event) => {
  console.log(event.metadata.confidence);
});

Events: COMPLETENESS_CHECKED, PROVIDER_CALLED, PROVIDER_FAILED, PROVIDER_DEGRADED, CLARIFICATION_GENERATED, SESSION_COMPLETED.

Architecture

See ADR-002: NLP Three-Layer Shared Module.

Testing

node --test src/tests/*.test.js

119 tests covering categories, completeness, conversation, providers, activity logging, and remote provider SSRF/timeout handling.

Ref

  • ADR-002, DEC-024, DEC-025
  • NEUTRAL_BROKER.md Property 1 (Core retains semantic authority)