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

kurdishcv

v2.0.0

Published

Resume engine for KurdishCV — schema, ATS, PDF, templates, and AI optimizeResume (SpaceXAI / xAI).

Downloads

264

Readme

kurdishcv

Resume engine for kurdishcv.com.

Schema · validation · ATS · PDF · 18 templates · AI optimizeResume — zero required runtime dependencies.

npm install kurdishcv

AI — optimizeResume (v2.0)

Default provider: SpaceXAI / xAI (https://api.x.ai/v1, model grok-4.5).

export XAI_API_KEY=your_key   # https://console.x.ai
import { optimizeResume, generatePDF } from "kurdishcv";

const { resume, analysis, changes, previousAnalysis } = await optimizeResume(
  resume,
  {
    jobDescription: `
      Senior engineer with leadership and strong communication.
      React, TypeScript, and measurable delivery experience required.
    `,
  },
);

console.log(changes);
// ["Updated professional summary", "Improved experience descriptions", …]

console.log(previousAnalysis.score, "→", analysis.score);

// Export the optimized CV
const { bytes } = await generatePDF(resume, { template: "violet" });

Providers

| Provider | When | |----------|------| | xai (default) | SpaceXAI / Grok — needs XAI_API_KEY or apiKey | | openai | OpenAI-compatible API (OPENAI_API_KEY) | | local | Offline deterministic rewrite (no network, great for tests) | | custom | Pass complete(prompt, system) => Promise<string> |

// Offline
await optimizeResume(resume, { provider: "local", jobDescription: "…" });

// Custom model endpoint
await optimizeResume(resume, {
  provider: "openai",
  baseUrl: "https://api.openai.com/v1",
  model: "gpt-4o-mini",
  apiKey: process.env.OPENAI_API_KEY,
  jobDescription: "…",
});

Keep API keys server-side only. Never ship XAI_API_KEY in a browser bundle.

Templates

import { templates, getTemplate, generatePDF } from "kurdishcv";

templates.length; // 18
await generatePDF(resume, { template: "crimson" }); // or 4, or "modern"

ATS analysis

import { analyzeResume } from "kurdishcv";

const report = analyzeResume(resume, { jobDescription: "…" });
// score, suggestions, missingKeywords, ats, …

Schema & core

import type { Resume } from "kurdishcv";
import {
  validateResume,
  calculateCompletion,
  normalizeResume,
  parseResume,
  toApiPayload,
  createEmptyResume,
} from "kurdishcv";

API map

| Area | Functions | |------|-----------| | AI | optimizeResume, localOptimizeResume | | PDF | generatePDF, downloadPDF, renderResumeHtml | | Templates | templates, getTemplate, listTemplates, TEMPLATE_CONFIGS | | ATS | analyzeResume, extractKeywords | | Core | validateResume, calculateCompletion, sanitizeResume | | Schema | normalizeResume, parseResume, toApiPayload, resumeJsonSchema |

Roadmap

| Version | Focus | Status | |---------|--------|--------| | 1.0 | Core engine | Done | | 1.1 | ATS analysis | Done | | 1.2 | Official schema | Done | | 1.3 | PDF generation | Done | | 1.4 | Templates | Done | | 2.0 | AI optimizeResume | Current |

Development

cd packages/kurdishcv
npm install
npm test
npm run build

License

MIT © KurdishCV