Skip to content

About

一件解析简历自动填写

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

ResumeFlow · 一键填职

上传一次简历,永久告别重复填表的 Chrome 插件。

项目结构

resumeflow/
├── public/
│   └── manifest.json          # Chrome 插件配置(入口)
├── src/
│   ├── popup/                 # 插件弹窗 UI(React)
│   │   ├── index.html
│   │   ├── popup.jsx          # 主组件,控制页面状态流转
│   │   ├── popup.css
│   │   └── components/
│   │       ├── UploadZone.jsx # 文件上传拖拽区域
│   │       ├── ResumeCard.jsx # 简历信息展示卡片
│   │       └── FillButton.jsx # 一键填写按钮
│   ├── background/
│   │   └── background.js      # Service Worker:代理 AI API 调用
│   ├── content/
│   │   └── content.js         # 注入页面:识别表单 + 执行填写
│   └── utils/
│       ├── aiParser.js        # AI 解析封装(发消息给 background)
│       ├── fileExtractor.js   # PDF/Word 文本提取
│       └── storage.js         # chrome.storage 读写封装
├── vite.config.js             # 多入口构建配置
└── package.json

数据流

用户上传简历
    ↓
fileExtractor.js  提取原始文本
    ↓
aiParser.js       发消息 → background.js
    ↓
background.js     调用 Claude API → 返回 JSON
    ↓
storage.js        保存到 chrome.storage.local
    ↓
用户点击"一键填写"
    ↓
popup.jsx         sendMessage → content.js
    ↓
content.js        扫描页面表单 → 语义匹配 → 填写 + 高亮

快速开始

1. 安装依赖

npm install

2. 填入 API Key

打开 src/background/background.js,将 YOUR_ANTHROPIC_API_KEY 替换为你的 Claude API Key。

3. 构建插件

npm run build

4. 加载到 Chrome

  1. 打开 chrome://extensions/
  2. 开启右上角「开发者模式」
  3. 点击「加载已解压的扩展程序」
  4. 选择 dist/ 目录

核心机制说明

字段语义匹配

Content Script 不依赖固定的 CSS 选择器,而是通过综合读取 label 文字 + name 属性 + placeholder + aria-label 来判断字段含义, 兼容性更强,无需为每个网站单独适配。

React/Vue 兼容

填写时使用 Object.getOwnPropertyDescriptor 获取原生 setter, 并触发 input + change 事件,确保 React/Vue 受控组件能感知到值的变化。

隐私安全

所有简历数据只存储在 chrome.storage.local(用户本地), API Key 只在 background service worker 中使用,不暴露给任何网页。

About

一件解析简历自动填写

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages