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

ace-ai

v1.1.4

Published

ACE SDK for generating synthetic data and ensuring security and compliance with PII and HIPAA regulations. Includes MCP server protection.

Readme

ACE SDK

The ACE SDK is a JavaScript library that provides tools for generating synthetic data and ensuring security and compliance with PII and HIPAA regulations. It also includes specialized protections for MCP (Model Context Protocol) servers.

Real-World Use Case

The ACE SDK was developed to solve critical security challenges in healthcare AI applications. In a real-world scenario, a large healthcare provider, CareConnect, used the ACE SDK to secure their AI-powered patient chatbot "CareBot". The SDK helped them:

  • Prevent accidental exposure of credentials and secrets
  • Protect against unauthorized access to MCP servers
  • Handle PII and HIPAA data safely
  • Ensure all patient data remained within the US
  • Optimize costs while maintaining robust security

For a detailed walkthrough of this use case, see ACE_SDK_Use_Case.md.

Installation

npm install ace-ai

Usage

const ace = require('ace-ai');

// Generate synthetic data
const schema = {
  name: 'name',
  email: 'email',
  age: 'number'
};

const data = ace.synthetic.generate(schema);
console.log(data);

// Security and compliance
const text = 'This is a test';
console.log(ace.security.scanForSecrets(text));
console.log(ace.security.containsPII(text));
console.log(ace.security.containsHIPAA(text));
console.log(ace.security.sanitizeText(text));

// MCP server protection
const request = { data: 'some data' };
console.log(ace.mcp.protectHost(request));
console.log(ace.mcp.validateBeforeLLM(text));
console.log(ace.mcp.ensureUSResidency(text, 'US'));

Demo

To see the ACE SDK in action, run the demo script:

node demo.js

This demo showcases how the ACE SDK protects against security risks in a healthcare AI application, demonstrating all key features.

API

ace.synthetic.generate(schema)

Generates synthetic data based on a schema.

  • schema (Object): The schema to generate data from.

Returns: Object - The generated synthetic data.

ace.security.scanForSecrets(text)

Scans for secrets in a string.

  • text (String): The text to scan.

Returns: Boolean - True if secrets are found, false otherwise.

ace.security.containsPII(text)

Checks if a string contains PII.

  • text (String): The text to check.

Returns: Boolean - True if PII is found, false otherwise.

ace.security.containsHIPAA(text)

Checks if a string contains HIPAA data.

  • text (String): The text to check.

Returns: Boolean - True if HIPAA data is found, false otherwise.

ace.security.sanitizeText(text)

Sanitizes a string by removing PII and HIPAA data.

  • text (String): The text to sanitize.

Returns: String - The sanitized text.

ace.mcp.protectHost(request)

Protects the MCP host application by validating incoming requests.

  • request (Object): The incoming request object.

Returns: Boolean - True if request is safe, false otherwise.

ace.mcp.validateBeforeLLM(data)

Validates data before sending to LLM to prevent PII/HIPAA leakage.

  • data (String): The data to validate.

Returns: Object - Validation result with sanitized data.

ace.mcp.ensureUSResidency(data, destination)

Ensures HIPAA data doesn't leave the US.

  • data (String): The data to check.
  • destination (String): The destination country code.

Returns: Boolean - True if data can be sent, false otherwise.

License

MIT