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

teddi-x

v1.1.0

Published

Teddi (teddi-x) is a Node package that extends security to vertical agents., applications, and tooling built on, for, or with AI.

Readme

Security as a Service (SaaS) Package - Teddi

This Node package allows you to easily integrate security into your application using our Security as a Service API.

Installation

npm install teddi-x

Recommended Usage Pattern

We recommend creating a dedicated teddi configuration file in your project:

teddi.js/ts:

import { createClient } from "teddi-x";

const teddiHash = import.meta.env.VITE_TEDDI_HASH;

if (!teddiHash) {
  throw new Error(
    "You need to get your project hash config from the teddi dashboard. Navigate to https://teddi.app and login. Click on your project, add the Supabase integration and then proceed to add your configs. You should then see the config hash. Copy and paste it in your env."
  );
}

const teddi = await createClient(teddiHash);

export { teddi };

Using in your application:

import { teddi } from "./teddi";

const supabase = await teddi.supabase();

export default supabase;

Getting Started with AI-Assisted Setup

Copy and paste this prompt into an AI coding assistant like Bolt.new or Cursor:


I want to set up teddi-x in my project for secure API integrations. Help me with these steps:

  1. Install the package: npm install teddi-x

  2. Create a new file called teddi.ts (or teddi.js if not using TypeScript) with this content:

    import { createClient } from "teddi-x";
    
    // Replace with your framework's environment variable syntax
    const teddiHash = process.env.TEDDI_HASH || import.meta.env.TEDDI_HASH;
    
    if (!teddiHash) {
      throw new Error(
        "You need to get your project hash from the teddi dashboard. Visit https://teddi.app, login, add your project, select an integration, and copy your hash."
      );
    }
    
    const teddi = await createClient(teddiHash);
    
    export { teddi };
  3. Add my teddi hash to environment variables:

    • For Next.js: In .env.local add TEDDI_HASH=my-hash-from-teddi-dashboard
    • For Vite: In .env add VITE_TEDDI_HASH=my-hash-from-teddi-dashboard
    • For Create React App: In .env add REACT_APP_TEDDI_HASH=my-hash-from-teddi-dashboard
    • Add the appropriate .env file to .gitignore
  4. Show me how to use teddi with Supabase by creating a supabase.ts file:

    import { teddi } from "./teddi";
    
    const supabase = await teddi.supabase();
    
    export default supabase;
  5. Now show me an example of using this secure Supabase instance in my project.


Getting Your Teddi Hash

To use this package, you'll need a Teddi Hash:

  1. Navigate to teddi.app
  2. Create an account or sign in
  3. Add a new project
  4. Select the integration you want to use
  5. Complete the setup process
  6. Copy your project hash and store it in your environment variables as TEDDI_HASH, VITE_TEDDI_HASH, NEXT_PUBLIC_TEDDI_HASH, etc.

Why Teddi Is More Secure Than API Keys in .env Files

Storing unsecured API keys in your environment files leaves them vulnerable to bad actors. The teddi hash, by contrast, is only decryptable using our proprietary algorithm, meaning only our backend can understand and relay requests between services.

What if someone gets my teddi hash? Even if your teddi hash is compromised, our security features provide multiple layers of protection:

  • Development vs Production Channels: Testing in development mode gives you 500 daily requests. To unlock production rates, you must add your production URL to your project. Without this verification, we limit API usage.

  • Request Monitoring: Easily browse connections, requests, and more through your dashboard. You can block suspicious IPs if you detect unusual activity.

  • Active Threat Detection: Our in-house AI actively monitors requests to prevent bad actors from abusing your services by implementing advanced schema learning and detection.

These measures ensure that even if your teddi hash is exposed, your services remain protected against unauthorized use.

Supported Integrations

Currently supported integrations:

  • Supabase

Coming soon:

Compatibility

You can use this package with your existing implementations without any changes. As long as the instance is coming from Teddi, your implementation will work as normal - no need to learn anything new.

Beta Installation

npm install teddi-x@beta

Legacy Usage

const teddi = require("teddi-x");