jobdeck 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. jobdeck-0.2.0/CHANGELOG.md +15 -0
  2. jobdeck-0.2.0/LICENSE +21 -0
  3. jobdeck-0.2.0/MANIFEST.in +6 -0
  4. jobdeck-0.2.0/PKG-INFO +184 -0
  5. jobdeck-0.2.0/README.md +143 -0
  6. jobdeck-0.2.0/analyzer.py +115 -0
  7. jobdeck-0.2.0/auto_fill_engine.py +161 -0
  8. jobdeck-0.2.0/auto_fill_helper.py +70 -0
  9. jobdeck-0.2.0/config.py +144 -0
  10. jobdeck-0.2.0/cover_letter_generator.py +415 -0
  11. jobdeck-0.2.0/cv_profiler.py +166 -0
  12. jobdeck-0.2.0/cv_tailor.py +1128 -0
  13. jobdeck-0.2.0/dashboard/__init__.py +1 -0
  14. jobdeck-0.2.0/dashboard/dashboard_server.py +785 -0
  15. jobdeck-0.2.0/dashboard/run_dashboard.bat +11 -0
  16. jobdeck-0.2.0/dashboard/run_tunnel.bat +8 -0
  17. jobdeck-0.2.0/dashboard/start_dashboard_silent.vbs +4 -0
  18. jobdeck-0.2.0/dashboard/static/index.html +3715 -0
  19. jobdeck-0.2.0/dashboard/static/manifest.json +15 -0
  20. jobdeck-0.2.0/dashboard/static/noir-webling.webp +0 -0
  21. jobdeck-0.2.0/dashboard/static/pet_anim.gif +0 -0
  22. jobdeck-0.2.0/dashboard/static/pet_anim_192.gif +0 -0
  23. jobdeck-0.2.0/dashboard/tunnel_manager.py +70 -0
  24. jobdeck-0.2.0/db.py +217 -0
  25. jobdeck-0.2.0/fetcher.py +615 -0
  26. jobdeck-0.2.0/heuristic_scorer.py +110 -0
  27. jobdeck-0.2.0/jobdeck.egg-info/PKG-INFO +184 -0
  28. jobdeck-0.2.0/jobdeck.egg-info/SOURCES.txt +87 -0
  29. jobdeck-0.2.0/jobdeck.egg-info/dependency_links.txt +1 -0
  30. jobdeck-0.2.0/jobdeck.egg-info/entry_points.txt +3 -0
  31. jobdeck-0.2.0/jobdeck.egg-info/requires.txt +18 -0
  32. jobdeck-0.2.0/jobdeck.egg-info/top_level.txt +15 -0
  33. jobdeck-0.2.0/notifier.py +206 -0
  34. jobdeck-0.2.0/pyproject.toml +85 -0
  35. jobdeck-0.2.0/rjh/__init__.py +5 -0
  36. jobdeck-0.2.0/rjh/__main__.py +5 -0
  37. jobdeck-0.2.0/rjh/analysis.py +451 -0
  38. jobdeck-0.2.0/rjh/cli.py +350 -0
  39. jobdeck-0.2.0/rjh/discovery.py +1012 -0
  40. jobdeck-0.2.0/rjh/doctor.py +212 -0
  41. jobdeck-0.2.0/rjh/heuristic.py +446 -0
  42. jobdeck-0.2.0/rjh/http.py +158 -0
  43. jobdeck-0.2.0/rjh/jsonparse.py +131 -0
  44. jobdeck-0.2.0/rjh/liveness.py +783 -0
  45. jobdeck-0.2.0/rjh/llm.py +361 -0
  46. jobdeck-0.2.0/rjh/manual.py +138 -0
  47. jobdeck-0.2.0/rjh/market_radar.py +870 -0
  48. jobdeck-0.2.0/rjh/messages.py +123 -0
  49. jobdeck-0.2.0/rjh/models.py +49 -0
  50. jobdeck-0.2.0/rjh/paths.py +109 -0
  51. jobdeck-0.2.0/rjh/profile.py +298 -0
  52. jobdeck-0.2.0/rjh/scanner.py +602 -0
  53. jobdeck-0.2.0/rjh/sources/__init__.py +87 -0
  54. jobdeck-0.2.0/rjh/sources/adzuna.py +43 -0
  55. jobdeck-0.2.0/rjh/sources/ashby.py +55 -0
  56. jobdeck-0.2.0/rjh/sources/base.py +213 -0
  57. jobdeck-0.2.0/rjh/sources/greenhouse.py +31 -0
  58. jobdeck-0.2.0/rjh/sources/hn.py +107 -0
  59. jobdeck-0.2.0/rjh/sources/jobicy.py +68 -0
  60. jobdeck-0.2.0/rjh/sources/lever.py +58 -0
  61. jobdeck-0.2.0/rjh/sources/remotive.py +34 -0
  62. jobdeck-0.2.0/rjh/sources/smartrecruiters.py +129 -0
  63. jobdeck-0.2.0/rjh/sources/workable.py +109 -0
  64. jobdeck-0.2.0/rjh/sources/wttj.py +120 -0
  65. jobdeck-0.2.0/rjh/sources/wwr.py +108 -0
  66. jobdeck-0.2.0/rjh/textutil.py +43 -0
  67. jobdeck-0.2.0/rjh/web/__init__.py +0 -0
  68. jobdeck-0.2.0/rjh/web/manual_panel.html +93 -0
  69. jobdeck-0.2.0/rjh/web/manual_router.py +77 -0
  70. jobdeck-0.2.0/rjh/web/server.py +16 -0
  71. jobdeck-0.2.0/rjh/wizard.py +289 -0
  72. jobdeck-0.2.0/run_hunter.py +40 -0
  73. jobdeck-0.2.0/scrapling_enricher.py +36 -0
  74. jobdeck-0.2.0/setup.cfg +4 -0
  75. jobdeck-0.2.0/tests/test_analysis_manual.py +300 -0
  76. jobdeck-0.2.0/tests/test_cli.py +408 -0
  77. jobdeck-0.2.0/tests/test_discovery.py +350 -0
  78. jobdeck-0.2.0/tests/test_env_fallback.py +41 -0
  79. jobdeck-0.2.0/tests/test_http.py +87 -0
  80. jobdeck-0.2.0/tests/test_jsonparse.py +73 -0
  81. jobdeck-0.2.0/tests/test_liveness_and_followup.py +274 -0
  82. jobdeck-0.2.0/tests/test_llm.py +218 -0
  83. jobdeck-0.2.0/tests/test_market_radar.py +219 -0
  84. jobdeck-0.2.0/tests/test_packaging.py +166 -0
  85. jobdeck-0.2.0/tests/test_profile_heuristic.py +246 -0
  86. jobdeck-0.2.0/tests/test_scanner.py +385 -0
  87. jobdeck-0.2.0/tests/test_sources.py +217 -0
  88. jobdeck-0.2.0/tests/test_sprint1_opsec_ui.py +281 -0
  89. jobdeck-0.2.0/tests/test_sprint2_packaging_auth.py +140 -0
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+ Format : [Keep a Changelog](https://keepachangelog.com/) Ā· versions : [SemVer](https://semver.org/).
3
+
4
+ ## [0.2.0]
5
+ ### Added
6
+ - `jobdeck init` : assistant en 4 questions (FR/EN), mode non interactif (`--yes`) pour Docker et CI.
7
+ - `jobdeck doctor` : vérifie Python, profil, IA, sources et base en parallèle ; `--offline`, `--json`, code de sortie utilisable en CI.
8
+ - `jobdeck serve` : refuse d'Ʃcouter hors localhost sans `JOBDECK_TOKEN` ; `jobdeck token`, `jobdeck paths`.
9
+ - Packaging (`pipx install jobdeck`), Dockerfile et `docker-compose.yml`.
10
+ - `BaseJobSource.ping()` pour le diagnostic des sources.
11
+ ### Changed
12
+ - Les erreurs HTTP des fournisseurs LLM n'incluent plus le corps de la rƩponse (jamais de secret rƩaffichƩ).
13
+
14
+ ## [0.1.0]
15
+ - Couche universelle : `profile.yaml`, sources en plugins, `LLMProvider` (Gemini, compatible OpenAI, Anthropic, mode manuel), mode copier-coller.
jobdeck-0.2.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alex Martin & Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ include LICENSE README.md CHANGELOG.md
2
+ include *.py
3
+ recursive-include dashboard *
4
+ recursive-include rjh/web *.html
5
+ recursive-include rjh/web/static *
6
+ global-exclude __pycache__ *.pyc
jobdeck-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.4
2
+ Name: jobdeck
3
+ Version: 0.2.0
4
+ Summary: A private, local command center for ANY job search: ranks offers against your profile, with any LLM (API key, local model, or copy-paste with your ChatGPT/Claude/Gemini subscription).
5
+ Author: Manny Ruesch
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/manny-ruesch/jobdeck
8
+ Project-URL: Issues, https://github.com/manny-ruesch/jobdeck/issues
9
+ Project-URL: Changelog, https://github.com/manny-ruesch/jobdeck/blob/main/CHANGELOG.md
10
+ Keywords: job-search,jobs,ats,resume,llm,self-hosted,privacy,cli
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Office/Business
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: PyYAML>=6.0
26
+ Requires-Dist: fastapi>=0.110
27
+ Requires-Dist: uvicorn>=0.29
28
+ Requires-Dist: pypdf>=4.0
29
+ Requires-Dist: python-multipart>=0.0.9
30
+ Provides-Extra: autofill
31
+ Requires-Dist: playwright>=1.40; extra == "autofill"
32
+ Provides-Extra: stealth
33
+ Requires-Dist: scrapling>=0.4.15; extra == "stealth"
34
+ Provides-Extra: dev
35
+ Requires-Dist: build; extra == "dev"
36
+ Requires-Dist: twine; extra == "dev"
37
+ Requires-Dist: ruff; extra == "dev"
38
+ Requires-Dist: httpx>=0.27; extra == "dev"
39
+ Requires-Dist: pytest>=8.0; extra == "dev"
40
+ Dynamic: license-file
41
+
42
+ <p align="center">
43
+ <img src="https://raw.githubusercontent.com/manny-ruesch/jobdeck/main/docs/assets/noir-webling-demo.gif" width="760" alt="JobDeck Command Center">
44
+ </p>
45
+
46
+ <h1 align="center">JobDeck</h1>
47
+
48
+ <p align="center">
49
+ <b>Any job search. Any LLM. Zero API key required.</b><br>
50
+ A private, local command center for your job search with direct ATS scanning, ghost-job detection, profile scoring, and native ATS-safe PDF generation.
51
+ </p>
52
+
53
+ <p align="center">
54
+ <img src="https://github.com/manny-ruesch/jobdeck/actions/workflows/ci.yml/badge.svg" alt="CI">
55
+ <img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="Python 3.11+">
56
+ <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License MIT">
57
+ <img src="https://img.shields.io/badge/tests-218%2B-success.svg" alt="218+ tests">
58
+ </p>
59
+
60
+ <p align="center">
61
+ English | <a href="README.fr.md">FranƧais</a>
62
+ </p>
63
+
64
+ ## Start in 60 seconds
65
+
66
+ **Option A (Temporary / Try it out):**
67
+ ```bash
68
+ uvx --from git+https://github.com/manny-ruesch/jobdeck jobdeck serve
69
+ ```
70
+
71
+ **Option B (Install & Configure):**
72
+ ```bash
73
+ pipx install git+https://github.com/manny-ruesch/jobdeck
74
+ jobdeck init
75
+ jobdeck doctor
76
+ jobdeck serve
77
+ ```
78
+
79
+ On **Windows** (from a cloned repo), you can double-click `start_command_center.bat`.
80
+ For **Docker** users, check the [Self-host on a NAS or VPS](#self-host-on-a-nas-or-vps-docker) section below.
81
+
82
+ ## Why JobDeck?
83
+
84
+ - **Zero-API-Key Mode:** Use your existing ChatGPT, Claude, or Gemini subscription. Just copy and paste. If an LLM response gets cut off mid-way, JobDeck automatically recovers the missing offers on the next prompt.
85
+ - **Built-in Sources**: **11 source engines (Ashby, Greenhouse, Lever, SmartRecruiters, Workable, WTTJ, Remotive, WWR, Jobicy, HN, Adzuna) + 50+ configured target company boards**. Additionally, auto-discovers direct company ATS boards with `jobdeck discover`. Identifies ghost/reposted jobs and highlights skill gaps with `jobdeck radar`, and matches connections with `jobdeck referrals`.
86
+ - **Standalone Local Web UI (`:5070`) + Native A4 ATS PDF Engine:** A full 4-column Kanban and sortable table entirely powered by a local SQLite database. Generates 100/100 ATS-compatible PDFs natively in Python—no LaTeX or Node dependencies required.
87
+
88
+ | SaaS Trackers ($29–$49/mo) | Agentic CLI Suites (e.g. career-ops) | **JobDeck (MIT, Local)** |
89
+ |:---|:---|:---|
90
+ | Locked into a subscription | Paid coding CLI subscription or API key | **$0 extra — existing ChatGPT/Claude/Gemini chat, free API, or local Ollama** |
91
+ | SaaS UI, zero local ownership | CLI / Markdown wrappers | **Real Local Web UI (Kanban/Table, SQLite)** |
92
+ | Weak AI formatting / Docx | LaTeX / Node / Pandoc dependencies | **Zero-LaTeX native A4 ATS PDF Engine** |
93
+ | General tech jobs only | Tech-focused | **Universal (Tech, Nurse, Finance, Legal, etc.)** |
94
+ | Black-box job freshness | Token-heavy prompt checks | **Tokenless ATS Anti-Ghost Detection** |
95
+
96
+ ## Zero-API-Key: Use the subscription you already pay for
97
+
98
+ Most tools ask for an API key, which is a separate, pay-per-use product. **Manual mode** does not.
99
+
100
+ ```
101
+ scan boards ─▶ rank with YOUR profile ─▶ batch of 10 offers becomes ONE prompt
102
+ │
103
+ scores, reasons, pitches ◀─ paste the JSON back ◀─ paste the prompt into ChatGPT / Claude / Gemini
104
+ ```
105
+
106
+ Click **Export the batch for my LLM** and copy the prompt. Paste it in the chat you already use (works from your phone too), then paste the JSON reply back into JobDeck. It never logs into your accounts and never touches your session. If the answer gets cut off, the tool keeps every finished entry and builds a follow-up prompt for **only the missing offers**.
107
+
108
+ ## Built for any job search (not just tech)
109
+
110
+ Everything personal lives in one `profile.yaml`: target roles, seniority, remote or on-site, eligible regions, languages, salary floor, companies to avoid, and your own hard rules. Same engine, different people:
111
+
112
+ ```yaml
113
+ search: # a nurse in Lyon # a remote automation engineer
114
+ titles: {primary: [infirmier, IDE]} # ... # [automation engineer, revops]
115
+ work_mode: {remote: any, cities: [Lyon]} # # {remote: required}
116
+ ```
117
+
118
+ A typo such as `seniorty` is rejected with a suggestion, never silently ignored. Every score comes with its reasons.
119
+
120
+ ## 1-Click ATS CV, Cover Letter & Warm Intros
121
+
122
+ For every qualified offer, the Command Center generates ready-to-send documents directly on your Desktop:
123
+
124
+ - **100/100 ATS-Safe Tailored CV (`cv_tailor.py`)**: Strict single-column linear reading flow (Workday, Greenhouse, Lever, Ashby, Taleo compatible), with automatic keyword alignment and bolding from the job description. Built-in ATS self-audit and zero fabricated facts.
125
+ - **Executive Cover Letter (`cover_letter_generator.py`)**: Tailored to the company's operational challenges and rendered to a clean A4 vector PDF.
126
+ - **Warm Intros (`jobdeck referrals`)**: Matches your local `Connections.csv` to find intro targets.
127
+ - **Market Intelligence**: Run `jobdeck radar` for cross-offer lexical gap analysis, or `jobdeck discover` to probe direct ATS sources.
128
+
129
+ ## Supported sources
130
+
131
+ | Source | Type | API key | Remote only | Good for | Status |
132
+ |---|---|---|---|---|---|
133
+ | **Remotive** (`remotive`) | by keyword | none | yes | remote jobs, tech and non-tech | āœ… built in |
134
+ | **Adzuna** (`adzuna`) | by keyword | free key | no | on-site and remote, many countries | āœ… built in |
135
+ | **Greenhouse** (`greenhouse`) | company boards | none | no | following specific employers | āœ… built in |
136
+ | **Ashby** (`ashby`) | company boards | none | no | AI scaleups, modern SaaS & PMEs | āœ… built in |
137
+ | **Lever** (`lever`) | company boards | none | no | scaleups & direct ATS boards | āœ… built in |
138
+ | **SmartRecruiters** (`smartrecruiters`) | company boards | none | no | European & enterprise ATS boards | āœ… built in |
139
+ | **Workable** (`workable`) | company boards | none | no | fast-growing startups & PMEs | āœ… built in |
140
+ | **Welcome to the Jungle** (`wttj`) | by keyword | none | no | French & European scaleups | āœ… built in |
141
+ | **We Work Remotely** (`wwr`) | RSS feeds | none | yes | global remote programming & ops | āœ… built in |
142
+ | **Jobicy** (`jobicy`) | JSON feed | none | yes | curated remote opportunities | āœ… built in |
143
+ | **Hacker News** (`hn`) | founder thread | none | no | YC startups & founder-direct roles | āœ… built in |
144
+ | Your own | plugin | any | any | anything with an API or a feed | 🧩 [~30 lines](docs/ADD_A_SOURCE.md) |
145
+ | LinkedIn scrapers | stealth | none | no | | āš ļø not included: opt-in only, check each site's terms |
146
+
147
+ One source breaking never stops the others, and `jobdeck doctor` tells you which one and why.
148
+
149
+ ## Use any LLM
150
+
151
+ | You have | Choose | Cost |
152
+ |---|---|---|
153
+ | A ChatGPT, Claude or Gemini **subscription** | `manual` | what you already pay |
154
+ | A **Gemini** key | `gemini` | free tier or pay-per-use |
155
+ | An OpenAI, OpenRouter, Groq or Mistral key | `openai`, `openrouter`, `groq`, `mistral` | pay-per-use |
156
+ | An **Anthropic** API key | `anthropic` | pay-per-use |
157
+ | A computer with a decent GPU or CPU | `ollama` (local, free, private) | electricity |
158
+
159
+ Model names change fast, so none is hard-coded: `jobdeck init` picks a current one from what your key can use, and `jobdeck doctor` tells you when one is retired and what to switch to. Heads-up: a free API tier may use your prompts to improve the provider's products. Read your provider's terms, or use `ollama` for full privacy.
160
+
161
+ ## Self-host on a NAS or VPS (Docker)
162
+
163
+ ```bash
164
+ git clone https://github.com/manny-ruesch/jobdeck && cd jobdeck
165
+ echo "JOBDECK_TOKEN=$(python3 -c 'import secrets;print(secrets.token_urlsafe(32))')" > .env
166
+ docker compose run --rm command-center jobdeck init # once: answers 4 questions
167
+ docker compose up -d # Command Center on http://127.0.0.1:5070
168
+ ```
169
+
170
+ The port is bound to `127.0.0.1` on purpose. Reach it from elsewhere through a reverse proxy with HTTPS or a private network such as Tailscale, never by opening the raw port. Keep the data volume on a **local disk**, not an SMB/NFS share (SQLite does not like network filesystems).
171
+
172
+ ## Privacy & Security
173
+
174
+ - **Strictly Local Storage:** Your CV, contact details, notes, and the entire SQLite database stay exclusively on your machine.
175
+ - **Secure Credentials:** API keys live in a local `.env` readable by you only. They are hidden during input and never written to `profile.yaml` or logged by `jobdeck doctor`.
176
+ - **Protected Network Interface:** `jobdeck serve` refuses to listen beyond `127.0.0.1` without an access token (`JOBDECK_TOKEN`). Generate one securely with `jobdeck token`.
177
+ - **Zero App Telemetry:** The application itself contains absolutely no tracking, no analytics, and does not automatically apply for jobs. (Note: the local Web UI does fetch its required rendering assets—Google Fonts, Mermaid.js, and GSAP—from public CDNs).
178
+
179
+ ## Contributing
180
+
181
+ Bug reports, new sources and translations are very welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). The quickest first contribution is a source: [docs/ADD_A_SOURCE.md](docs/ADD_A_SOURCE.md).
182
+ Security issue? Please read [SECURITY.md](SECURITY.md) first. Released under the [MIT License](LICENSE).
183
+
184
+ <p align="center"><sub>Made with a spider named Noir Webling. šŸ•·ļø</sub></p>
@@ -0,0 +1,143 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/manny-ruesch/jobdeck/main/docs/assets/noir-webling-demo.gif" width="760" alt="JobDeck Command Center">
3
+ </p>
4
+
5
+ <h1 align="center">JobDeck</h1>
6
+
7
+ <p align="center">
8
+ <b>Any job search. Any LLM. Zero API key required.</b><br>
9
+ A private, local command center for your job search with direct ATS scanning, ghost-job detection, profile scoring, and native ATS-safe PDF generation.
10
+ </p>
11
+
12
+ <p align="center">
13
+ <img src="https://github.com/manny-ruesch/jobdeck/actions/workflows/ci.yml/badge.svg" alt="CI">
14
+ <img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="Python 3.11+">
15
+ <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License MIT">
16
+ <img src="https://img.shields.io/badge/tests-218%2B-success.svg" alt="218+ tests">
17
+ </p>
18
+
19
+ <p align="center">
20
+ English | <a href="README.fr.md">FranƧais</a>
21
+ </p>
22
+
23
+ ## Start in 60 seconds
24
+
25
+ **Option A (Temporary / Try it out):**
26
+ ```bash
27
+ uvx --from git+https://github.com/manny-ruesch/jobdeck jobdeck serve
28
+ ```
29
+
30
+ **Option B (Install & Configure):**
31
+ ```bash
32
+ pipx install git+https://github.com/manny-ruesch/jobdeck
33
+ jobdeck init
34
+ jobdeck doctor
35
+ jobdeck serve
36
+ ```
37
+
38
+ On **Windows** (from a cloned repo), you can double-click `start_command_center.bat`.
39
+ For **Docker** users, check the [Self-host on a NAS or VPS](#self-host-on-a-nas-or-vps-docker) section below.
40
+
41
+ ## Why JobDeck?
42
+
43
+ - **Zero-API-Key Mode:** Use your existing ChatGPT, Claude, or Gemini subscription. Just copy and paste. If an LLM response gets cut off mid-way, JobDeck automatically recovers the missing offers on the next prompt.
44
+ - **Built-in Sources**: **11 source engines (Ashby, Greenhouse, Lever, SmartRecruiters, Workable, WTTJ, Remotive, WWR, Jobicy, HN, Adzuna) + 50+ configured target company boards**. Additionally, auto-discovers direct company ATS boards with `jobdeck discover`. Identifies ghost/reposted jobs and highlights skill gaps with `jobdeck radar`, and matches connections with `jobdeck referrals`.
45
+ - **Standalone Local Web UI (`:5070`) + Native A4 ATS PDF Engine:** A full 4-column Kanban and sortable table entirely powered by a local SQLite database. Generates 100/100 ATS-compatible PDFs natively in Python—no LaTeX or Node dependencies required.
46
+
47
+ | SaaS Trackers ($29–$49/mo) | Agentic CLI Suites (e.g. career-ops) | **JobDeck (MIT, Local)** |
48
+ |:---|:---|:---|
49
+ | Locked into a subscription | Paid coding CLI subscription or API key | **$0 extra — existing ChatGPT/Claude/Gemini chat, free API, or local Ollama** |
50
+ | SaaS UI, zero local ownership | CLI / Markdown wrappers | **Real Local Web UI (Kanban/Table, SQLite)** |
51
+ | Weak AI formatting / Docx | LaTeX / Node / Pandoc dependencies | **Zero-LaTeX native A4 ATS PDF Engine** |
52
+ | General tech jobs only | Tech-focused | **Universal (Tech, Nurse, Finance, Legal, etc.)** |
53
+ | Black-box job freshness | Token-heavy prompt checks | **Tokenless ATS Anti-Ghost Detection** |
54
+
55
+ ## Zero-API-Key: Use the subscription you already pay for
56
+
57
+ Most tools ask for an API key, which is a separate, pay-per-use product. **Manual mode** does not.
58
+
59
+ ```
60
+ scan boards ─▶ rank with YOUR profile ─▶ batch of 10 offers becomes ONE prompt
61
+ │
62
+ scores, reasons, pitches ◀─ paste the JSON back ◀─ paste the prompt into ChatGPT / Claude / Gemini
63
+ ```
64
+
65
+ Click **Export the batch for my LLM** and copy the prompt. Paste it in the chat you already use (works from your phone too), then paste the JSON reply back into JobDeck. It never logs into your accounts and never touches your session. If the answer gets cut off, the tool keeps every finished entry and builds a follow-up prompt for **only the missing offers**.
66
+
67
+ ## Built for any job search (not just tech)
68
+
69
+ Everything personal lives in one `profile.yaml`: target roles, seniority, remote or on-site, eligible regions, languages, salary floor, companies to avoid, and your own hard rules. Same engine, different people:
70
+
71
+ ```yaml
72
+ search: # a nurse in Lyon # a remote automation engineer
73
+ titles: {primary: [infirmier, IDE]} # ... # [automation engineer, revops]
74
+ work_mode: {remote: any, cities: [Lyon]} # # {remote: required}
75
+ ```
76
+
77
+ A typo such as `seniorty` is rejected with a suggestion, never silently ignored. Every score comes with its reasons.
78
+
79
+ ## 1-Click ATS CV, Cover Letter & Warm Intros
80
+
81
+ For every qualified offer, the Command Center generates ready-to-send documents directly on your Desktop:
82
+
83
+ - **100/100 ATS-Safe Tailored CV (`cv_tailor.py`)**: Strict single-column linear reading flow (Workday, Greenhouse, Lever, Ashby, Taleo compatible), with automatic keyword alignment and bolding from the job description. Built-in ATS self-audit and zero fabricated facts.
84
+ - **Executive Cover Letter (`cover_letter_generator.py`)**: Tailored to the company's operational challenges and rendered to a clean A4 vector PDF.
85
+ - **Warm Intros (`jobdeck referrals`)**: Matches your local `Connections.csv` to find intro targets.
86
+ - **Market Intelligence**: Run `jobdeck radar` for cross-offer lexical gap analysis, or `jobdeck discover` to probe direct ATS sources.
87
+
88
+ ## Supported sources
89
+
90
+ | Source | Type | API key | Remote only | Good for | Status |
91
+ |---|---|---|---|---|---|
92
+ | **Remotive** (`remotive`) | by keyword | none | yes | remote jobs, tech and non-tech | āœ… built in |
93
+ | **Adzuna** (`adzuna`) | by keyword | free key | no | on-site and remote, many countries | āœ… built in |
94
+ | **Greenhouse** (`greenhouse`) | company boards | none | no | following specific employers | āœ… built in |
95
+ | **Ashby** (`ashby`) | company boards | none | no | AI scaleups, modern SaaS & PMEs | āœ… built in |
96
+ | **Lever** (`lever`) | company boards | none | no | scaleups & direct ATS boards | āœ… built in |
97
+ | **SmartRecruiters** (`smartrecruiters`) | company boards | none | no | European & enterprise ATS boards | āœ… built in |
98
+ | **Workable** (`workable`) | company boards | none | no | fast-growing startups & PMEs | āœ… built in |
99
+ | **Welcome to the Jungle** (`wttj`) | by keyword | none | no | French & European scaleups | āœ… built in |
100
+ | **We Work Remotely** (`wwr`) | RSS feeds | none | yes | global remote programming & ops | āœ… built in |
101
+ | **Jobicy** (`jobicy`) | JSON feed | none | yes | curated remote opportunities | āœ… built in |
102
+ | **Hacker News** (`hn`) | founder thread | none | no | YC startups & founder-direct roles | āœ… built in |
103
+ | Your own | plugin | any | any | anything with an API or a feed | 🧩 [~30 lines](docs/ADD_A_SOURCE.md) |
104
+ | LinkedIn scrapers | stealth | none | no | | āš ļø not included: opt-in only, check each site's terms |
105
+
106
+ One source breaking never stops the others, and `jobdeck doctor` tells you which one and why.
107
+
108
+ ## Use any LLM
109
+
110
+ | You have | Choose | Cost |
111
+ |---|---|---|
112
+ | A ChatGPT, Claude or Gemini **subscription** | `manual` | what you already pay |
113
+ | A **Gemini** key | `gemini` | free tier or pay-per-use |
114
+ | An OpenAI, OpenRouter, Groq or Mistral key | `openai`, `openrouter`, `groq`, `mistral` | pay-per-use |
115
+ | An **Anthropic** API key | `anthropic` | pay-per-use |
116
+ | A computer with a decent GPU or CPU | `ollama` (local, free, private) | electricity |
117
+
118
+ Model names change fast, so none is hard-coded: `jobdeck init` picks a current one from what your key can use, and `jobdeck doctor` tells you when one is retired and what to switch to. Heads-up: a free API tier may use your prompts to improve the provider's products. Read your provider's terms, or use `ollama` for full privacy.
119
+
120
+ ## Self-host on a NAS or VPS (Docker)
121
+
122
+ ```bash
123
+ git clone https://github.com/manny-ruesch/jobdeck && cd jobdeck
124
+ echo "JOBDECK_TOKEN=$(python3 -c 'import secrets;print(secrets.token_urlsafe(32))')" > .env
125
+ docker compose run --rm command-center jobdeck init # once: answers 4 questions
126
+ docker compose up -d # Command Center on http://127.0.0.1:5070
127
+ ```
128
+
129
+ The port is bound to `127.0.0.1` on purpose. Reach it from elsewhere through a reverse proxy with HTTPS or a private network such as Tailscale, never by opening the raw port. Keep the data volume on a **local disk**, not an SMB/NFS share (SQLite does not like network filesystems).
130
+
131
+ ## Privacy & Security
132
+
133
+ - **Strictly Local Storage:** Your CV, contact details, notes, and the entire SQLite database stay exclusively on your machine.
134
+ - **Secure Credentials:** API keys live in a local `.env` readable by you only. They are hidden during input and never written to `profile.yaml` or logged by `jobdeck doctor`.
135
+ - **Protected Network Interface:** `jobdeck serve` refuses to listen beyond `127.0.0.1` without an access token (`JOBDECK_TOKEN`). Generate one securely with `jobdeck token`.
136
+ - **Zero App Telemetry:** The application itself contains absolutely no tracking, no analytics, and does not automatically apply for jobs. (Note: the local Web UI does fetch its required rendering assets—Google Fonts, Mermaid.js, and GSAP—from public CDNs).
137
+
138
+ ## Contributing
139
+
140
+ Bug reports, new sources and translations are very welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). The quickest first contribution is a source: [docs/ADD_A_SOURCE.md](docs/ADD_A_SOURCE.md).
141
+ Security issue? Please read [SECURITY.md](SECURITY.md) first. Released under the [MIT License](LICENSE).
142
+
143
+ <p align="center"><sub>Made with a spider named Noir Webling. šŸ•·ļø</sub></p>
@@ -0,0 +1,115 @@
1
+ import json
2
+ import time
3
+ import urllib.request
4
+ import urllib.error
5
+ from typing import Any
6
+ from config import GOOGLE_API_KEY, GEMINI_MODEL, APPLICANT
7
+
8
+ _CANDIDATE_NAME = APPLICANT.get("name", "the candidate")
9
+
10
+ SYSTEM_PROMPT = f"""You are an elite Tech Career Agent representing {_CANDIDATE_NAME}.
11
+ Candidate profile:
12
+ - Title: {APPLICANT['title']}
13
+ - Location: {APPLICANT['location']}
14
+ - Languages: {APPLICANT['languages']}
15
+ - Core Stack: {APPLICANT['stack']}
16
+ - Proven Impact: {APPLICANT['key_metrics']}
17
+ - Key Highlights: {APPLICANT['experience_highlight']}
18
+ - Portfolio: {APPLICANT['portfolio']} | GitHub: {APPLICANT['github']}
19
+
20
+ Your task is to analyze a remote job posting and evaluate its relevance for {_CANDIDATE_NAME}.
21
+
22
+ Scoring criteria (BE RIGOROUS, PRAGMATIC AND ADVERSARIAL):
23
+ - 9.0 - 10.0: IDEAL SWEET-SPOT (Junior to Mid Builder, Full-Time OR Part-Time/Contract). AI Automation Specialist, Solutions Engineer (Associate/Junior/Mid), Operations Automation Builder, RevOps Specialist, or Integration Specialist at a PME, startup, agency, or scale-up where the primary mission is connecting APIs, building n8n/Python pipelines, prompt chaining, and automating business workflows. Note: Part-Time (10-25h/week), Fractional, or Freelance contract roles in automation are highly valued!
24
+ - 7.5 - 8.9: STRONG FIT. SMB / Scale-up roles in Operations, Growth, or Customer Technical Solutions where the candidate's production automation experience ({APPLICANT['key_metrics']}) provides immediate, provable ROI from week 1.
25
+ - < 5.0: AUTOMATIC DISQUALIFICATION (HARD GATES):
26
+ * Seniority Mismatch: Any posting requiring 4+ or 5+ years of experience, or explicitly titled Senior / Staff / Principal / Lead / Director / Architect. The candidate has ~2 years of high-velocity automation/building experience.
27
+ * Frontier AI Lab Core Engineering (Anthropic, OpenAI, Cohere, DeepMind) demanding heavy computer science, distributed infrastructure, or model evaluations.
28
+ * Language Mismatch: If the job strictly requires "Native German" or "Fluent German" ({APPLICANT['languages']}).
29
+ * Travel / On-Site Requirement: If the job requires frequent travel (> 10%) or is not true 100% full-remote.
30
+ * Pure "Software Engineer" / "Backend Engineer" focused on distributed systems, compilers, or heavy CS algorithms/LeetCode.
31
+ * Research Scientist / Deep Learning Researcher.
32
+ * Non-technical Sales / SDR / HR / Recruiter roles.
33
+
34
+ Output strictly valid JSON with these keys:
35
+ {{
36
+ "fit_score": 8.5,
37
+ "rationale": "One-line explanation of why this matches the candidate's skills.",
38
+ "tech_match": ["n8n", "Python", "LLMs", "REST APIs"],
39
+ "pitch_hook": "2 punchy sentences connecting the candidate's real production work to this specific job's biggest need.",
40
+ "tailored_pitch": "A complete, high-converting 120-150 word application pitch written in professional English, citing the production workflows, hours saved, and linking to the candidate's portfolio.",
41
+ "proof_of_work": {{
42
+ "problem_diagnosis": "Specific operational or technical bottleneck the company is hiring to solve.",
43
+ "solution_architecture": "3 concrete technical implementation steps (Ingestion, LLM Validation/Guardrails, Action Delivery) using n8n, Python, and modern APIs.",
44
+ "mermaid_diagram": "graph LR\\n A[Inbound Lead/Event] --> B[n8n / FastAPI Router]\\n B --> C[LLM Structured Parse & Guardrails]\\n C --> D[CRM / Webhook Sync]"
45
+ }},
46
+ "cold_outreach": {{
47
+ "target_role": "Title of the hiring manager / decision maker (e.g. Head of Solutions Engineering, VP Ops, CTO)",
48
+ "subject": "Punchy message subject line under 50 chars",
49
+ "dm_text": "A concise 50-70 word cold message to the decision maker bypassing the ATS, referencing their bottleneck, key metrics, and linking to the candidate's portfolio.",
50
+ "linkedin_search_url": "https://www.google.com/search?q=site%3Alinkedin.com%2Fin+%22Company%22+%22Target+Role%22"
51
+ }}
52
+ }}
53
+ Note: If fit_score < 7.5, set proof_of_work and cold_outreach to null to conserve tokens.
54
+ """
55
+
56
+ def analyze_job(title: str, company: str, location: str, description: str) -> dict[str, Any]:
57
+ model_name = GEMINI_MODEL if GEMINI_MODEL.startswith("gemini-") else f"gemini-{GEMINI_MODEL}"
58
+ url = f"https://generativelanguage.googleapis.com/v1beta/models/{model_name}:generateContent"
59
+
60
+ prompt = f"""Evaluate this job posting for candidate {APPLICANT.get('name', 'Builder')}:
61
+
62
+ COMPANY: {company}
63
+ JOB TITLE: {title}
64
+ LOCATION: {location}
65
+ DESCRIPTION:
66
+ {description[:8000]}
67
+ """
68
+
69
+ payload = {
70
+ "contents": [{"parts": [{"text": prompt}]}],
71
+ "systemInstruction": {"parts": [{"text": SYSTEM_PROMPT}]},
72
+ "generationConfig": {"responseMimeType": "application/json"}
73
+ }
74
+
75
+ req = urllib.request.Request(
76
+ url,
77
+ data=json.dumps(payload).encode("utf-8"),
78
+ headers={
79
+ "Content-Type": "application/json",
80
+ "x-goog-api-key": GOOGLE_API_KEY or ""
81
+ }
82
+ )
83
+
84
+ for attempt in range(3):
85
+ try:
86
+ with urllib.request.urlopen(req, timeout=30) as resp:
87
+ data = json.loads(resp.read().decode("utf-8"))
88
+ candidates = data.get("candidates", [])
89
+ if candidates:
90
+ parts = candidates[0].get("content", {}).get("parts", [])
91
+ if parts and "text" in parts[0]:
92
+ raw_text = parts[0]["text"]
93
+ from rjh.jsonparse import parse_json_loose
94
+ res = parse_json_loose(raw_text)
95
+ res["analysis_status"] = "success"
96
+ return res
97
+ except urllib.error.HTTPError as e:
98
+ if e.code == 429:
99
+ time.sleep(4 * (attempt + 1))
100
+ continue
101
+ err_msg = e.read().decode("utf-8")
102
+ print(f"āš ļø Gemini API error [{e.code}]: {err_msg[:200]}")
103
+ break
104
+ except Exception as e:
105
+ print(f"āš ļø Analysis error: {e}")
106
+ time.sleep(2)
107
+
108
+ return {
109
+ "fit_score": None,
110
+ "analysis_status": "failed",
111
+ "rationale": "Analysis failed",
112
+ "tech_match": [],
113
+ "pitch_hook": "",
114
+ "tailored_pitch": ""
115
+ }
@@ -0,0 +1,161 @@
1
+ import os
2
+ import sys
3
+ import time
4
+ from pathlib import Path
5
+ from playwright.sync_api import sync_playwright
6
+
7
+ BASE_DIR = Path(__file__).resolve().parent
8
+ sys.path.append(str(BASE_DIR))
9
+
10
+ import db
11
+ from config import APPLICANT
12
+
13
+ # Dynamic Resume Path
14
+ resume_env = os.getenv("APPLICANT_RESUME_PATH", "")
15
+ CV_PATH = Path(resume_env) if resume_env and Path(resume_env).exists() else (
16
+ Path(BASE_DIR / "uploaded_cv.pdf") if Path(BASE_DIR / "uploaded_cv.pdf").exists() else Path(BASE_DIR / "cv.pdf")
17
+ )
18
+
19
+ def auto_fill_application(job_id_or_url: str):
20
+ """
21
+ Launches a headful browser, navigates to the job application page,
22
+ fills in all standard form fields (Name, Email, Phone, Links, Cover Letter),
23
+ attaches the PDF CV, and leaves the browser open for the user to review.
24
+ """
25
+ job = db.get_job_by_id(job_id_or_url)
26
+ if not job:
27
+ # Try search by URL
28
+ conn = db.get_conn()
29
+ c = conn.cursor()
30
+ c.execute("SELECT * FROM jobs WHERE url = ?", (job_id_or_url,))
31
+ row = c.fetchone()
32
+ conn.close()
33
+ job = dict(row) if row else None
34
+
35
+ if not job:
36
+ print(f"āŒ Job not found: {job_id_or_url}")
37
+ return False
38
+
39
+ url = job.get("url")
40
+ if not url:
41
+ print("āŒ Job has no URL")
42
+ return False
43
+
44
+ pitch = job.get("tailored_pitch", "")
45
+ print(f"\nšŸš€ Launching Assisted Auto-Fill for {job.get('company')} — {job.get('title')}...")
46
+ print(f"šŸ”— Target: {url}\n")
47
+
48
+ name_parts = APPLICANT.get("name", "Candidate").split()
49
+ first_name = name_parts[0] if name_parts else ""
50
+ last_name = " ".join(name_parts[1:]) if len(name_parts) > 1 else ""
51
+ loc_val = APPLICANT.get("location", "")
52
+
53
+ with sync_playwright() as p:
54
+ browser = p.chromium.launch(
55
+ headless=False,
56
+ args=["--start-maximized", "--disable-blink-features=AutomationControlled"]
57
+ )
58
+ context = browser.new_context(no_viewport=True)
59
+ page = context.new_page()
60
+
61
+ try:
62
+ page.goto(url, wait_until="domcontentloaded", timeout=45000)
63
+ time.sleep(3)
64
+
65
+ apply_triggers = page.locator("a:has-text('Apply'), button:has-text('Apply'), a:has-text('Postuler'), button:has-text('Postuler')")
66
+ if apply_triggers.count() > 0:
67
+ first_trigger = apply_triggers.first
68
+ if first_trigger.is_visible():
69
+ try:
70
+ first_trigger.click()
71
+ time.sleep(2)
72
+ except Exception:
73
+ pass
74
+
75
+ # 1. Fill First Name
76
+ fn_loc = page.locator("input[name*='first' i], input[id*='first' i], input[placeholder*='first' i], input[autocomplete*='given-name']")
77
+ if fn_loc.count() > 0:
78
+ fn_loc.first.fill(first_name)
79
+
80
+ # 2. Fill Last Name
81
+ ln_loc = page.locator("input[name*='last' i], input[id*='last' i], input[placeholder*='last' i], input[autocomplete*='family-name']")
82
+ if ln_loc.count() > 0:
83
+ ln_loc.first.fill(last_name)
84
+
85
+ # 3. Fill Full Name
86
+ if fn_loc.count() == 0 and ln_loc.count() == 0:
87
+ name_loc = page.locator("input[name*='name' i], input[id*='name' i], input[placeholder*='Full Name' i]")
88
+ if name_loc.count() > 0:
89
+ name_loc.first.fill(APPLICANT.get("name", ""))
90
+
91
+ # 4. Fill Email
92
+ email_loc = page.locator("input[type='email'], input[name*='email' i], input[id*='email' i], input[placeholder*='email' i]")
93
+ if email_loc.count() > 0:
94
+ email_loc.first.fill(APPLICANT.get("email", ""))
95
+
96
+ # 5. Fill Phone
97
+ phone_loc = page.locator("input[type='tel'], input[name*='phone' i], input[id*='phone' i], input[placeholder*='phone' i]")
98
+ if phone_loc.count() > 0:
99
+ phone_loc.first.fill(APPLICANT.get("phone", ""))
100
+
101
+ # 6. Fill Location
102
+ if loc_val:
103
+ loc_loc = page.locator("input[name*='location' i], input[id*='location' i], input[placeholder*='city' i], input[name*='city' i]")
104
+ if loc_loc.count() > 0:
105
+ loc_loc.first.fill(loc_val)
106
+
107
+ # 7. Fill LinkedIn
108
+ linkedin_loc = page.locator("input[name*='linkedin' i], input[id*='linkedin' i], input[placeholder*='linkedin' i]")
109
+ if linkedin_loc.count() > 0:
110
+ linkedin_loc.first.fill(APPLICANT.get("linkedin", ""))
111
+
112
+ # 8. Fill Website / Portfolio
113
+ web_loc = page.locator("input[name*='website' i], input[name*='portfolio' i], input[id*='portfolio' i], input[placeholder*='portfolio' i], input[placeholder*='website' i]")
114
+ if web_loc.count() > 0:
115
+ web_loc.first.fill(APPLICANT.get("portfolio", ""))
116
+
117
+ # 9. Fill GitHub
118
+ gh_loc = page.locator("input[name*='github' i], input[id*='github' i], input[placeholder*='github' i]")
119
+ if gh_loc.count() > 0:
120
+ gh_loc.first.fill(APPLICANT.get("github", ""))
121
+
122
+ # 10. Fill Cover Letter
123
+ if pitch:
124
+ cl_loc = page.locator("textarea[name*='cover' i], textarea[id*='cover' i], textarea[placeholder*='cover' i], textarea[name*='additional' i], textarea[name*='notes' i], textarea[name*='comments' i]")
125
+ if cl_loc.count() > 0:
126
+ cl_loc.first.fill(pitch)
127
+
128
+ # 11. Attach Resume / CV PDF
129
+ if CV_PATH.exists():
130
+ file_inputs = page.locator("input[type='file']")
131
+ if file_inputs.count() > 0:
132
+ try:
133
+ file_inputs.first.set_input_files(str(CV_PATH))
134
+ print(f"šŸ“Ž Attached Resume PDF: {CV_PATH.name}")
135
+ except Exception as e:
136
+ print(f"āš ļø Could not attach CV automatically: {e}")
137
+
138
+ print("āœ… Auto-Fill complete! The browser is left open in front of you.")
139
+ print("šŸ‘‰ Check the inputs, answer any custom company questions, and click 'Submit'!")
140
+
141
+ # Update status in DB to 'prefilled' rather than prematurely 'applied'
142
+ if job.get("status") not in ("applied", "interview"):
143
+ db.update_job_status(job["id"], "prefilled")
144
+
145
+ # Leave browser open until user interaction ends or window is closed
146
+ try:
147
+ page.wait_for_event("close", timeout=0)
148
+ except Exception:
149
+ pass
150
+
151
+ except Exception as e:
152
+ print(f"āš ļø Auto-fill error: {e}")
153
+ return False
154
+
155
+ return True
156
+
157
+ if __name__ == "__main__":
158
+ if len(sys.argv) > 1:
159
+ auto_fill_application(sys.argv[1])
160
+ else:
161
+ print("Usage: python auto_fill_engine.py <job_id_or_url>")