@hadoku/jobplatform 3.42.109 → 3.42.111

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 (2) hide show
  1. package/README.md +22 -148
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,7 +13,8 @@ application packets need an account.
13
13
 
14
14
  This is one app in the [hadoku.me](https://hadoku.me) ecosystem — a personal platform
15
15
  where each app ships as an independently versioned npm package and gets mounted by a
16
- parent site. Nothing here runs standalone; see [How it fits together](#how-it-fits-together).
16
+ parent site. Nothing here runs standalone; see
17
+ [The problem it solves](#the-problem-it-solves) below.
17
18
 
18
19
  ---
19
20
 
@@ -21,129 +22,23 @@ parent site. Nothing here runs standalone; see [How it fits together](#how-it-fi
21
22
 
22
23
  Job boards rank by recency and their own incentives. Searching them means re-reading
23
24
  the same 200 postings weekly to find the four that changed. This inverts that: describe
24
- the role you want _once_, and every scrape run re-ranks the whole corpus against it.
25
-
26
- Three things make that non-trivial, and most of the interesting code is in the answers:
27
-
28
- **No ATS publishes seniority.** Not Greenhouse, not Lever, not Ashby. "Staff Engineer"
29
- vs "Engineering Manager" exists only in the title string. So role is inferred at ingest
30
- ([`worker/src/roleClassify.ts`](worker/src/roleClassify.ts)) along **two orthogonal
31
- axes** rather than one list:
32
-
33
- - `track` — `ic` or `manager`. Answers "does this job have direct reports?"
34
- - `level` — the rung on that track's ladder.
35
-
36
- They're orthogonal because a flat list makes `senior` and `manager` look like
37
- alternatives to each other, which is nonsense — they're answers to different questions.
38
- Classification reads the _head_ of the title, before the first comma, so
39
- "Software Engineer, Ads Manager" correctly lands as an IC. Only the genuinely ambiguous
40
- `lead` family falls back to probing the description body.
41
-
42
- **Filtering and ranking are different requests.** "Only show me IC roles" is not "rank
43
- IC roles higher." Company, `track`, and salary floor are **hard SQL filters**; everything
44
- else is a weighted score. Conflating the two produces a feed that's technically sorted
45
- and practically useless.
46
-
47
- **Salary is mostly absent.** `salary_min` is NULL on most postings, so scoring it
48
- returned a neutral ~0.5 for nearly everything — pure noise dressed as signal. It was
49
- removed as a score factor and demoted to a view filter. Postings with no listed salary
50
- survive the filter, because hiding them would empty the feed rather than narrow it.
51
-
52
- ### Scoring
53
-
54
- Runs on read, per request — so a score always reflects the profile as it is _now_
55
- rather than as it was when some batch job last ran. (The precomputed match table was
56
- dropped in migration 0008 for exactly this reason.)
57
-
58
- | Signal | Weight | What it measures |
59
- | --------------- | -----: | ------------------------------------------- |
60
- | `keyword_match` | 0.40 | profile keywords against the description |
61
- | `title_match` | 0.30 | profile keywords against the title |
62
- | `level_match` | 0.15 | distance on the seniority ladder |
63
- | `remote_match` | 0.15 | remote / hybrid / onsite against preference |
64
-
65
- `level_match` grades by _distance_, not equality: exact rung 1.0, one rung off 0.7,
66
- further or off-track 0.2 — and an unclassified job scores 0.5, because no signal is not
67
- the same as a bad match. Full algorithm and data model:
68
- [`ARCHITECTURE.md`](./ARCHITECTURE.md).
69
-
70
- ---
71
-
72
- ## Architecture
73
-
74
- Two independently published packages live in this repo:
75
-
76
- | Package | Path | What it is |
77
- | ---------------------------- | --------- | ----------------------------------------------- |
78
- | `@wolffm/jobplatform` | `src/` | React micro-frontend, exports `mount`/`unmount` |
79
- | `@wolffm/jobplatform-worker` | `worker/` | Cloudflare Worker API (Hono + D1) |
80
-
81
- The pipeline, end to end:
82
-
83
- ```
84
- Profile: keywords, track, levels, remote pref, companies
85
- │
86
- ▼
87
- GET /directives ──────────► hadoku-scrape (Python, separate repo)
88
- the union of every │ resolves company → (ats, slug)
89
- profile's companies + │ enumerates Greenhouse / Lever / LinkedIn
90
- keywords. The scraper │ archives raw postings to Cloudflare KV
91
- PULLS this each run. │
92
- ▼
93
- POST /ingest (full postings inline, batches of 25)
94
- │
95
- ▼
96
- ┌───────────────────────────┐
97
- │ jobplatform-worker │
98
- │ • dedup by URL │
99
- │ • classify track + level │
100
- │ • parse (ats, slug) │
101
- │ • store in D1 │
102
- └───────────┬───────────────┘
103
- │ score on read, per request
104
- ▼
105
- ┌───────────────────────────┐
106
- │ jobplatform (React) │
107
- │ • ranked feed + filters │
108
- │ • triage: interested / │
109
- │ saved / applied / … │
110
- │ • job detail + breakdown │
111
- └───────────┬───────────────┘
112
- │ service binding
113
- ▼
114
- resume-api → resume, cover letter, intro email,
115
- screening answers → one shareable packet
116
- ```
117
-
118
- Companies are a **directive the scraper pulls**, not targets this app pushes. The worker
119
- publishes what it wants scraped at `GET /directives`; the scraper reads that on its next
120
- run and registers targets itself. That keeps registry ownership in one place — the
121
- scraper owns _how_ to scrape, this app owns _what_ is worth scraping.
122
-
123
- Full API table and design rationale: [`CLAUDE.md`](./CLAUDE.md).
124
-
125
- ---
126
-
127
- ## How it fits together
128
-
129
- ```
130
- hadoku_site (parent)
131
- ├── mounts @wolffm/jobplatform at hadoku.me/jobplatform
132
- └── hosts @wolffm/jobplatform-worker at hadoku.me/jobplatform/api
133
- │
134
- ┌───────────────────┼───────────────────┐
135
- ▼ ▼ ▼
136
- hadoku-scrape resume-bot Cloudflare D1
137
- (postings) (resume/cover) (scored corpus)
138
- ```
25
+ the role you want _once_, as a profile, and every scrape run re-ranks the whole corpus
26
+ against it — filtering and ranking kept as separate questions, scored against signals
27
+ chosen because a listing rarely states seniority or salary in a structured way. The
28
+ scorer, role classifier and full data model are in
29
+ [contributing.md#architecture](docs/guide/contributing.md#architecture) and
30
+ [`ARCHITECTURE.md`](./ARCHITECTURE.md); what each screen does day to day is in
31
+ [features.md](docs/guide/features.md).
32
+
33
+ Two independently published packages live in this repo: `@wolffm/jobplatform` (the
34
+ React micro-frontend, `src/`) and `@wolffm/jobplatform-worker` (the Cloudflare Worker
35
+ API, `worker/`). The pipeline end to end, and how companies reach the feed as something
36
+ the scraper pulls rather than this app pushes, is in
37
+ [contributing.md#architecture](docs/guide/contributing.md#architecture).
139
38
 
140
39
  Push to `main` publishes both packages to GitHub Packages and fires a
141
- `packages_updated` dispatch; the parent site pulls the new versions and redeploys.
142
-
143
- Auth is tier-ranked (`public < friend < service < admin`), gated in-worker. The parent's
144
- edge router resolves a session cookie into a user key and stamps the tier; the worker
145
- trusts that stamp only when its provenance header verifies, so a request that bypasses
146
- the edge degrades to `public` rather than being trusted.
40
+ `packages_updated` dispatch that tells the parent site (hadoku_site) to pull the new
41
+ versions and redeploy — see [contributing.md#how-it-deploys](docs/guide/contributing.md#how-it-deploys).
147
42
 
148
43
  ---
149
44
 
@@ -162,37 +57,16 @@ The identity to ask for is `jobplatform-service-key`. Once you have it, `pnpm de
162
57
 
163
58
  ## Development
164
59
 
165
- Requires Node 22+ and `pnpm`. Installing and every check need nothing else; the dev
166
- server needs a credential (see [Getting access](#getting-access)).
60
+ Requires Node 22+ and `pnpm`.
167
61
 
168
62
  ```bash
169
63
  pnpm install
170
-
171
- pnpm dev # dev server on :5173
172
- pnpm build # build both packages
173
- pnpm lint # eslint
174
- pnpm lint:css # stylelint + theme-token check
175
- pnpm typecheck
176
-
177
- cd worker && pnpm test # node:test, no framework
64
+ pnpm dev # dev server on :5173, needs a credential — see Getting access above
178
65
  ```
179
66
 
180
- To act as an authenticated user in dev, pass `?apiKey=<key>` once — the harness in
181
- `index.html` exchanges it for a session id through the same code path production uses.
182
- The URL parameter is dev-only and never accepted in production.
183
-
184
- **Colors** come from `@wolffm/themes` as semantic CSS custom properties
185
- (`var(--color-primary)`, `var(--color-on-primary-bg)`, …). Light and dark are automatic;
186
- never branch on theme mode, and never hardcode a hex value. `pnpm lint:css` fails the
187
- build on a reference to a token the theme doesn't define — worth running, since an
188
- undefined token renders as nothing rather than erroring.
189
-
190
- **Logging** goes through the logger from `@wolffm/task-ui-components`, not `console.log`:
191
-
192
- ```typescript
193
- import { logger } from '@wolffm/task-ui-components'
194
- logger.info('Message', { key: 'value' })
195
- ```
67
+ The rest of the commands, the theming and logging conventions, and how a change
68
+ reaches production are in
69
+ [contributing.md](docs/guide/contributing.md).
196
70
 
197
71
  ---
198
72
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/jobplatform",
3
- "version": "3.42.109",
4
- "gitHead": "ea2e4b8d767aae9d84bd54f6079cc4e99b3c1327",
3
+ "version": "3.42.111",
4
+ "gitHead": "28541b188925d53e04d98b8e42d200dd523c6d16",
5
5
  "description": "Job listings aggregation and tracking dashboard",
6
6
  "license": "MIT",
7
7
  "type": "module",