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

@yamlresume/ai

v0.16.1

Published

AI-powered generation and translation for YAMLResume

Downloads

1,438

Readme

@yamlresume/ai

AI-powered generation and translation for YAMLResume.

Installation

npm install @yamlresume/ai

You also need a Vercel AI SDK provider and its API key. For example:

npm install @ai-sdk/openai

Supported providers

All providers expose an OpenAI-compatible endpoint and are configured through environment variables.

| Provider | Required env variable | Default model | Optional overrides | | ---------------------------------------------- | --------------------- | ------------------- | ----------------------------------------------- | | DeepSeek | DEEPSEEK_API_KEY | deepseek-v4-flash | YAMLRESUME_AI_MODEL, YAMLRESUME_AI_BASE_URL | | Kimi (Moonshot AI) | MOONSHOT_API_KEY | kimi-k2.6 | YAMLRESUME_AI_MODEL, YAMLRESUME_AI_BASE_URL | | Ollama (local) | OLLAMA_HOST | llama3.2 | YAMLRESUME_AI_MODEL, YAMLRESUME_AI_BASE_URL | | OpenAI | OPENAI_API_KEY | gpt-5 | YAMLRESUME_AI_MODEL, YAMLRESUME_AI_BASE_URL |

The provider is inferred from the env variables in the order shown above. When no provider is detected, Kimi is used as the default so that a missing API key produces a clear configuration error.

CLI usage

The yamlresume CLI uses @yamlresume/ai under the hood. Set a provider API key and run:

# Generate a new resume
export OPENAI_API_KEY=sk-...
yamlresume ai generate --position "Software Engineer" --language en resume.yml

Override the model or endpoint when needed:

export YAMLRESUME_AI_MODEL=gpt-5
export YAMLRESUME_AI_BASE_URL=https://custom.openai.endpoint/v1
yamlresume ai generate --position "Registered Nurse" --language en resume.yml

Translate an existing resume to another locale language:

# Translate a resume from its current locale.language to Simplified Chinese
export OPENAI_API_KEY=sk-...
yamlresume ai translate --to zh-hans resume.en.yml resume.zh-hans.yml

Generate a resume

import { generateResume } from "@yamlresume/ai";
import { openai } from "@ai-sdk/openai";

const model = openai("gpt-5");

const yaml = await generateResume("Registered Nurse", "en", {
  model,
});

Translate a resume

import { translateResume } from "@yamlresume/ai";

const sourceYaml = "..."; // existing YAMLResume content
const yaml = await translateResume(sourceYaml, "en", "zh-hans", {
  model,
});

Use Kimi (Moonshot AI)

Kimi exposes an OpenAI-compatible endpoint:

import { openai } from "@ai-sdk/openai";

const kimi = openai({
  apiKey: process.env.MOONSHOT_API_KEY,
  baseURL: "https://api.moonshot.cn/v1",
});

const yaml = await generateResume("Registered Nurse", "zh-hans", {
  model: kimi("moonshot-v1-8k"),
});

Validation and retries

Both functions parse the LLM output and validate it against ResumeSchema from @yamlresume/core. If validation fails, the request is retried up to maxRetries times (default: 2).

const yaml = await generateResume("Software Engineer", "en", {
  model,
  maxRetries: 3,
});