{"id":15147197,"url":"https://gitlab.com/joblist/workers","last_synced_at":"2025-09-29T15:32:11.377Z","repository":{"id":60520068,"uuid":"20984001","full_name":"joblist/workers","owner":"joblist","description":"Gitlab-ci triggered node.js workers; populate a sqlite3 database with jobs and companies","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":null,"default_branch":"main","last_synced_at":"2024-09-27T12:23:46.914Z","etag":null,"topics":["gitlab-ci","gitlab-workers","node.js","sqlite3","static-api"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":null,"metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-07T13:45:25.757Z","updated_at":"2024-04-15T06:34:31.661Z","dependencies_parsed_at":"2022-09-30T19:30:21.889Z","dependency_job_id":null,"html_url":"https://gitlab.com/joblist/workers","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/joblist%2Fworkers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/joblist%2Fworkers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/joblist%2Fworkers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/joblist%2Fworkers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/joblist","download_url":"https://gitlab.com/joblist/workers/-/archive/main/workers-main.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4516889,"owners_count":6657,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["gitlab-ci","gitlab-workers","node.js","sqlite3","static-api"],"created_at":"2024-09-26T12:23:35.565Z","updated_at":"2025-09-29T15:32:05.681Z","avatar_url":null,"language":null,"funding_links":[],"categories":["How to use the project"],"sub_categories":["Other ressources"],"readme":"# workers for joblist.city\n\nThe **workers**:\n- clone a list of companies, stored as a git repostiry: [github/joblistcity/companies](https://github.com/joblistcity/companies)\n- fetch all available job positions from every companies by talking with job-boards providers APIS\n- job-board providers implemented are: `greenhouse`, `recruitee`, `smartrecruiters` ... (see https://gitlab.com/joblist/job-board-providers).\n- uploads the normalized data to populate an algolia search index\n- jobs data is searchable on [joblist.today](https://joblist.today), etc.\n\n## Development\n\n- install dependencies: `npm install`\n- run the script: `npm run` to find all available scripts\n- check the file `.env.example` and create the `.env` file with the correct values\n\n\u003e the default `NODE_ENV` values should not be `production`, and can be anything else (or left empty). All scripts should work with development databases by default, so we don't break anything in production when developing.\n\n## Deployment\n\n\u003e When not run for development purpose, set `process.env.NODE_ENV` to `production'`\n\nInside `.gitlab-ci.yaml` files, are defined jobs, triggered as\n*schedules* via the Gitlab interface.\n\nThat way, jobs will be fetched for all companies, and an algolia index populated; triggered once daily.\n\n## Job board providers\n\nThe possible **values** of the **key** `company.job_board_provider`, is one of those known to https://gitlab.com/joblist/job-board-providers\n## Database(s)\n\n\u003e Tried firebase, algolia, supabase, static files.\n\nNow the status is that the data is edited in static files (markdown on\nthe github data repository), and then consolidated into a [sqlite\nwasm](https://www.npmjs.com/package/@sqlite.org/sqlite-wasm) database.\n\nIt is stored as an artifact in gitlab workers repo, then fetched by\nthe client (which fetches the latest).\n\n- run `sqlite3 .db-sqlite/joblist.db` to create/open/use the database.\n- run `npm run save-companies` or `npm run save-jobs` to load the\n  database with its data\n\n### Tips\n\n#### export to json with sqlite\n\n```bash\nsqlite3 .db-sqlite/joblist.db '.mode json' '.once out.json' 'select * from companies'\n```\n\u003e [source](https://stackoverflow.com/questions/5491858/how-to-export-sqlite-to-json)\n\n#### attach an other db with sqlite\n\n```bash\nsqlite .db-sqlite/joblist.db\n```\nthen in the sqlite3 shell\n```bash\nATTACH DATABASE '.db-sqlite/stripe.db' AS stripeDb;\nselect * from stripeDb.highlight_companies;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fjoblist%2Fworkers","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fjoblist%2Fworkers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fjoblist%2Fworkers/lists"}