Skip to content

About

AI-powered conversational interface for interactive resume exploration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

549 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@wolffm/resume-bot

Guide: overview · features · contributing · history · trivia

AI-powered conversational interface for interactive resume exploration — chat with an AI about my background, skills, and experience while browsing the resume itself.

See it live: hadoku.me/resume

This repo is the npm package that powers that widget. The rest of this README is for contributors working on the package itself; what it does and how it's built are in the guide above.

Development

Getting access

A fresh clone installs, builds and passes every check with no credential and no .npmrc: the @wolffm/* dev dependencies are npm aliases of their public npmjs copies (npm:@hadoku/<name>). pnpm dev needs nothing either: it talks to the public résumé API. The friend-only API routes take your own hadoku.me key, at friend tier, in an X-User-Key header. The steps shared by every hadoku repo live on one page: hadoku.me/docs/contributing/#resume-bot.

Local Development Setup

pnpm install
pnpm dev       # opens http://localhost:5173, mounting the component directly

The rest of the commands, and the dev harness's URL parameters for trying different states, are in contributing.md.

Integration

This app is a child component of the hadoku_site parent application.

Props

interface ResumeBotAppProps {
  theme?: string // Optional: 'default', 'ocean', 'forest', etc.
  apiBaseUrl: string // Required: API root path or URL (e.g., '/resume/api' or 'https://api.yourapp.com/api')
  ownerName?: string // Optional: name shown in the chat welcome message (default: 'the candidate')
}

Mounting

import { mount, unmount } from '@wolffm/resume-bot'

// Mount the app
const element = document.getElementById('app-root')
mount(element, {
  theme: 'ocean', // optional
  apiBaseUrl: '/resume/api' // required - path to the API root
})

// Unmount when done
unmount(element)

Important: apiBaseUrl is the API root, matching the rest of the hadoku ecosystem (/oss/api, /jobplatform/api). Endpoints are appended to it directly. It can be either:

  • A path (e.g., /resume/api) if the backend is hosted on the same domain
  • A full URL (e.g., https://api.yourapp.com/api) if the backend is on a different domain

Breaking change in 2.0.0. Through 1.x this prop was the app root (/resume) and the package appended /api/... itself; 1.3.14 accepted both spellings. 2.0.0 removes that shim — pass the API root. Passing /resume now requests /resume/chat and 404s. Migration is a one-line change at the mount site: /resume -> /resume/api. This does not affect the ./api worker export — createResumeHandler(basePath) is unchanged.

The backend handles these endpoints (public unless noted; non-public routes are gated in-worker via @wolffm/worker-utils edge-auth — see worker/src/index.ts):

  • ${apiBaseUrl}/chat - POST - Chat with the bot (public, rate-limited)
  • ${apiBaseUrl}/resume - GET - Fetch resume content, incl. ?v={slug} variants (public)
  • ${apiBaseUrl}/resume.pdf - GET - Server-rendered PDF download (public)
  • ${apiBaseUrl}/system-prompt - GET - Fetch system prompt (admin/friend)
  • ${apiBaseUrl}/tailored-resume - POST - Per-job tailored resume (admin/friend/service)
  • ${apiBaseUrl}/cover-letter - POST - Per-job cover letter (admin/friend/service)
  • ${apiBaseUrl}/variants - POST/GET/DELETE - Variant management (admin/friend)

Deployment

Pushes to main build, publish and notify the parent site automatically, with the version computed by CI at publish time — never by a commit or a hook. See contributing.md#how-it-deploys.

Architecture

This package has two exports, built and published together as @wolffm/resume-bot; the full architecture — content model, gating, the LLM provider chain — is in contributing.md#architecture.

  • UI component (. export): mount(el, props) / unmount(el) — React app from src/entry.tsx
  • Worker API (./api export): createResumeHandler(basePath, options) — Hono router from worker/src/index.ts (options.ownerName sets the chat owner)

About

AI-powered conversational interface for interactive resume exploration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages