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

@kudoai/ai-personas

v1.11.0

Published

1,300+ AI personas for LLMs and agents.

Readme

> KudoAI / ai-personas

1,300+ AI personas for LLMs and agents.

It's just a JSON file, so you can use it in any environment.

⚡ Installation

Node.js:

From your project root:

npm install @kudoai/ai-personas

Greasemonkey:

// ==UserScript==
...
// @resource ai-personas   https://cdn.jsdelivr.net/npm/@kudoai/ai-personas@1/dist/ai-personas.min.json
// @grant                  GM_getResourceText
...
// ==/UserScript==

🔌 Usage

ES Modules (ESM):

import personas from '@kudoai/ai-personas'

console.log(personas['Linux Terminal'].prompt)
// => I want you to act as a linux terminal. I will type commands and you will...

CommonJS (CJS):

const personas = require('@kudoai/ai-personas')

console.log(personas['Linux Terminal'].prompt)
// => I want you to act as a linux terminal. I will type commands and you will...

Web:

<script type="module">
    const personas = await (await fetch(
        'https://cdn.jsdelivr.net/npm/@kudoai/ai-personas@1/dist/ai-personas.min.json'
    )).json()

    console.log(personas['Linux Terminal'].prompt)
    // => I want you to act as a linux terminal. I will type commands and you will...
</script>

Greasemonkey:

const personas = JSON.parse(GM_getResourceText('ai-personas'))

console.log(personas['Linux Terminal'].prompt)
// => I want you to act as a linux terminal. I will type commands and you will...

💻 Examples

Find personas by keyword:

function findPersonas(keyword) {
    return Object.entries(personas)
        .filter(([name, data]) => data.prompt.toLowerCase().includes(keyword.toLowerCase()))
        .map(([name]) => name)
}

console.log(findPersonas('coach'))
// => [ 'Interview Preparation Coach', 'Life Coach', ... ]

Get prompt for a persona:

function getPrompt(persona) { return personas[persona].prompt }

console.log(getPrompt('Food Critic'))
// => I want you to act as a food critic. I will tell you about a restaurant...

Get random personas:

function randomPersona(qty = 1) {
    const shuffledPersonas = Object.keys(personas).sort(() => 0.5 - Math.random()),
          randomPersonas = shuffledPersonas.slice(0, qty)
    return qty == 1 ? randomPersonas[0] : randomPersonas
}

console.log(randomPersona())
// => e.g. Reverse Prompt Engineer

console.log(randomPersona(10))
// => e.g. [ 'Internet Trend & Slang Intelligence', 'Tic-Tac-Toe Game', ... ]

Get random prompt:

function randomPrompt() {
    return Object.values(personas).sort(() => 0.5 - Math.random())[0].prompt
}

console.log(randomPrompt())

/** e.g. =>

Act as a Node.js Automation Script Developer. You are an expert in creating
automated scripts using Node.js to streamline tasks such as file
manipulation, web scraping, and API interactions.

Your task is to:
- Write efficient Node.js scripts to automate ${taskType}.
- Ensure the scripts are robust and handle errors gracefully.
- Use modern JavaScript syntax and best practices.
...
**/

Fill variables in template prompts:

function fillVarsInTemplate(prompt, vals = {}) {
    return prompt.replace(/\$\{(.*?)\}/g, (_, key) => vals[key] ?? `\${${key}}`) }

const prompt = personas['Node.js Automation Script Developer'].prompt,
      filledPrompt = fillVarsInTemplate(prompt, { taskType: 'web scraping' })

console.log(filledPrompt)

/** =>
...
Your task is to:
- Write efficient Node.js scripts to automate web scraping.
...
**/

Combine prompts:

const megaPrompt = `
When I start w/ sh: follow prompt A. When I start w/ win: follow prompt B.

Prompt A: ${personas['Linux Terminal'].prompt}

Prompt B: ${personas['Windows Terminal'].prompt}
`

console.log(megaPrompt)

/** =>

When I start w/ sh: follow prompt A. When I start w/ win: follow prompt B.

Prompt A: I want you to act as a linux terminal...

Prompt B: I want you to act as a Windows Terminal...
**/

Build system prompt:

const systemPrompt = ai_personas['Study Planner'].prompt

const messages = [
    { role: 'system', content: systemPrompt },
    { role: 'user', content: 'Create a weekly study plan for calculus' }
]

🏛️ License

🧠 Contributors

All contributions are very welcome!

🤖 Related

Install / Readme / Discuss

Install / Readme / Discuss

🤖 ai-personas (Python)

Install / Readme / 🔌 API usage / Discuss

More JavaScript utilities / Discuss / Report bug / Report vulnerability / Back to top ↑