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

ursa-compass

v0.2.7

Published

Ursa Health's AI copilot for data integration

Downloads

95

Readme

Ursa Compass is a tool to help data engineers make sense of healthcare claims data packages. It sets up a three-way conversation between the data engineer, the LLM, and the procedural code of Ursa Compass.

Ursa Compass drives the conversation based on a series of questions in an editable yml playbook. It poses the questions to the LLM, which has the option of running a SQL query, asking the data engineer for clarification, or attempting to answer the question with an assertion that can be accepted or rejected from the data engineer.

graph TD;
    style User fill:#71bf00,stroke:#333,stroke-width:2px;
    style Ursa_Compass fill:#71bf00,stroke:#333,stroke-width:2px;
    style Database fill:#999,stroke:#333,stroke-width:2px;
    style LLM fill:#71bf00,stroke:#333,stroke-width:2px;
    User([Data Engineer]) --> |Reviews Work<br>Answers Clarifications<br>Accepts/Rejects Assertions| Ursa_Compass([Ursa Compass]);
    Ursa_Compass --> |Forwards Clarifications<br>Forwards Assertions| User;
    Ursa_Compass --> |Executes SQL| Database[(Database)];
    Ursa_Compass --> |Structures Conversation<br>Forwards SQL Results | LLM([LLM]);
    Database --> |Returns SQL Results| Ursa_Compass;
    LLM --> |Writes SQL<br>Asks Clarifications<br>Makes Assertions | Ursa_Compass;

How to use

There are three ways to use Ursa Compass.

Run Ursa Compass locally

The git repo of Ursa Compass ships with a sample implementation in Next.js, which can be run locally on your workstation, as follows:

 $ (cd engine && npm install)
 $ (cd ui && npm install && npm run build)
 $ cd nextjs-app
 $ npm install
 $ npm run dev

You will want to set DATABASE_TYPE and TARGET_DATABASE_URL in /nextjs-app/.env.local. You can edit the prompts in the prompts directory to fit your workflow.

Integrate Ursa Compass into your application

Ursa Compass comprises two npm packages: ursa-compass, which is just the engine, and ursa-compass-ui, which is the React front-end.

 $ npm install ursa-compass ursa-compass-ui

You can look at the nextjs-app directory as a reference implementation for how to build your app around Ursa Compass. In short, you will include InspectionWorkspace as a React component, and implement all the request handlers, presumably updating them to use a database instead of saving files to your local filesystem. The route that processes the socket request will rely on ursa-compass to do the heavy lifting.

Use Ursa Studio

If you're looking to use Ursa Compass in the context of a battle-tested enterprise SaaS platform which covers the full breadth of healthcare data needs, contact [email protected] and ask about Ursa Studio, which has Ursa Compass as one of its features.

HIPAA concerns

Yes, PHI is absolutely going to be flowing through this system. What makes Ursa Compass HIPAA-compliant is that it uses AWS Bedrock and leverages your existing AWS account. You'll need to have an AWS account, with the BAA paperwork and all the other compliance steps in place.