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

@useresume/sdk

v1.0.1

Published

useResume TypeScript SDK

Readme

@useresume/sdk

Official TypeScript SDK for the useResume API — programmatically generate professional resumes and cover letters.

Installation

npm install @useresume/sdk

Quick Start

import { useResume } from "@useresume/sdk";

const client = new useResume("your-api-key");

// Create a resume
const result = await client.createResume({
  content: {
    name: "John Doe",
    email: "[email protected]",
    role: "Software Engineer",
    summary: "Experienced software engineer with 5+ years...",
    employment: [
      {
        title: "Senior Developer",
        company: "Tech Corp",
        start_date: "2020-01-01",
        present: true,
        responsibilities: [
          { text: "Led development of microservices architecture" },
          { text: "Mentored junior developers" },
        ],
      },
    ],
  },
  style: {
    template: "modern-pro",
    template_color: "blue",
  },
});

console.log(result.data.file_url); // Download URL (valid for 14 days)

API Methods

Resume Methods

createResume(params)

Generate a professional resume PDF.

const result = await client.createResume({
  content: { name, email, phone, summary, employment, education, skills, ... },
  style: { template, template_color, font, ... }
});

createTailoredResume(params)

Generate a resume optimized for a specific job using AI.

const result = await client.createTailoredResume({
  resume_content: { content: {...}, style: {...} },
  target_job: {
    job_title: "Senior Software Engineer",
    job_description: "We are looking for..."
  }
});

parseResume(params)

Extract structured data from an existing resume file.

// Parse to JSON (structured data)
const jsonResult = await client.parseResume({
  file_url: "https://example.com/resume.pdf",
  parse_to: "json",
});
console.log(jsonResult.data.name); // Extracted name

// Parse to Markdown
const mdResult = await client.parseResume({
  file: btoa(fileBuffer), // Base64-encoded file
  parse_to: "markdown",
});
console.log(mdResult.data); // Markdown string

Cover Letter Methods

createCoverLetter(params)

Generate a professional cover letter PDF.

const result = await client.createCoverLetter({
  content: {
    name: "John Doe",
    email: "[email protected]",
    hiring_manager_name: "Jane Smith",
    hiring_manager_company: "Tech Corp",
    text: "Dear Jane Smith, I am writing to express...",
  },
  style: { template: "modern-pro", template_color: "blue" },
});

createTailoredCoverLetter(params)

Generate a cover letter optimized for a specific job using AI.

const result = await client.createTailoredCoverLetter({
  cover_letter_content: { content: {...}, style: {...} },
  target_job: {
    job_title: "Product Manager",
    job_description: "We are looking for..."
  }
});

parseCoverLetter(params)

Extract structured data from an existing cover letter file.

const result = await client.parseCoverLetter({
  file_url: "https://example.com/cover-letter.pdf",
  parse_to: "json",
});

Run Status

getRun(params)

Check the status of an async operation.

const status = await client.getRun({ run_id: "run_abc123" });
console.log(status.data.status); // "success" | "error" | "in_progress"

Response Types

All create methods return:

{
  success: boolean;
  data: {
    file_url: string; // Download URL
    file_url_expires_at: number;
    file_expires_at: number;
    file_size_bytes: number;
  }
  meta: {
    run_id: string;
    credits_used: number;
    credits_remaining: number;
  }
}

Error Handling

import { useResume, UseResumeError } from "@useresume/sdk";

try {
  const result = await client.createResume(params);
} catch (error) {
  if (error instanceof UseResumeError) {
    console.error(`API Error ${error.status}: ${error.message}`);
  } else if (error instanceof Error) {
    // Validation error (caught before API call)
    console.error(`Validation Error: ${error.message}`);
  }
}

TypeScript Support

All types are exported for your convenience:

import {
  useResume,
  UseResumeError,
  // Request types
  ApiCreateResume,
  ApiCreateTailoredResume,
  ApiParseResume,
  ApiCreateCoverLetter,
  ApiCreateTailoredCoverLetter,
  ApiParseCoverLetter,
  ApiRunStatus,
  // Response types
  ApiPlatformResponseStructure,
  ApiParseResumeJsonResponse,
  ApiParseResumeMarkdownResponse,
  ApiParseCoverLetterJsonResponse,
  ApiParseCoverLetterMarkdownResponse,
  ApiGetRunStatusResponseStructure,
} from "@useresume/sdk";

Templates & Styling

Preview all available templates by creating example documents in the useResume dashboard.

Resume Templates: default, clean, classic, executive, modern-pro, meridian, horizon, atlas, prism, nova, zenith, vantage, summit, quantum, vertex, harvard, lattice, strata, cascade, pulse, folio, ridge, verso, ledger, tableau, apex, herald, beacon, onyx

Cover Letter Templates: atlas, classic, clean, default, executive, horizon, meridian, modern-pro, nova, prism, zenith

Colors: blue, black, emerald, purple, rose, amber, slate, indigo, teal, burgundy, forest, navy, and more.

Important Notes

  • Document availability: Generated documents are available for download for 14 days
  • Rate limits: Up to 10 API calls per second
  • Generation time: Standard documents take 1-2 seconds; AI-tailored documents take 30-45 seconds

Links

License

MIT