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

ainqa-clinical-copilot

v2.3.7

Published

Clinical AI assistant — chat, document intelligence, and doctor-patient conversation capture

Readme

ainqa-clinical-copilot

Clinical AI assistant for any web or Electron application. Provides chat, clinical document intelligence, and doctor-patient conversation capture. Powered by DeepInfra LLaMA.

Install

npm install ainqa-clinical-copilot ainqa-voice-assistant

Quick Start

import {
  CopilotProvider,
  CopilotChat,
  DocumentUploader,
  ConversationRecorder,
} from 'ainqa-clinical-copilot';

<CopilotProvider config={{
  deepInfraApiKey: 'YOUR_KEY',
  clinicalContext: { patientAge: 68, condition: 'AF' },
  onFieldsExtracted: (result) => console.log(result),
  onDataExtracted: (fields) => console.log(fields),
}}>
  <CopilotChat />
  <DocumentUploader />
  <ConversationRecorder />
</CopilotProvider>

Features

| Feature | Component | |---------|-----------| | Chat (streamed) | CopilotChat | | Document intelligence (PDF/image → structured JSON) | DocumentUploader | | Doctor-patient conversation capture | ConversationRecorder |

Theming

The package ships with a built-in light theme — drop CopilotProvider into any host application and the UI renders with a correct baseline look. No CSS variable configuration is required from the host.

Under the hood, CopilotProvider renders a root container element (.ainqa-copilot-root) with light-theme CSS custom properties applied as inline style:

--color-surface-base, --color-surface-raised, --color-surface-overlay,
--color-navy-900, --color-navy-800,
--color-text-primary, --color-text-secondary, --color-text-muted,
--color-border, --color-accent, --color-teal-500,
--color-clinical-red, --color-clinical-green, --color-clinical-amber

Custom theming

To override any variable, define it on a descendant element inside CopilotProvider (a closer ancestor wins the cascade for CSS custom properties). For example, to apply a dark theme:

<CopilotProvider config={{ ... }}>
  <div
    style={{
      '--color-surface-raised': '#1e293b',
      '--color-navy-900': '#0f172a',
      '--color-border': '#334155',
      '--color-text-primary': '#f1f5f9',
      '--color-text-secondary': '#94a3b8',
      '--color-text-muted': '#64748b',
    } as React.CSSProperties}
  >
    <CopilotChat />
  </div>
</CopilotProvider>

Document Pipeline

  1. Format detection — native PDF / scanned PDF / image
  2. Text extraction — PDF.js text layer or Tesseract.js OCR
  3. Classification — LLaMA categorises into one of 8 clinical document types
  4. Type-specific extraction — fields tailored to each document type
  5. Structured output — typed JSON returned to host app