Static marketing site for BlueCollar-Systems — precision software for fabricators, welders, and detailers.
| Product | Description | Link |
|---|---|---|
| Steel Logic | Job Clock for fitter and welder time, plus AISC v16.0 shapes, calculators, converters, and inventory. The Android beta is free with ads. A free version and a paid Pro version are the plan; iOS is in development. | Check Android test access (Google sign-in) |
| BlueCollar Tag Logic | Hang tags with a QR code that opens the piece in Steel Logic. New tags start with an editable BCS1: prefix; older CS1: tags still scan. Published v10.48 on GitHub; downloads require access to its GitHub repository. Contact support if you need access; there is no public download from this website. Save a JSON Job Backup before changing versions and extract the whole ZIP. | Tag Logic access |
| Free Shape Packs | Public-domain SketchUp + DXF/DWG shape packs | Shapes Hub |
| SketchUp PDF Importer | Vector-accurate PDF geometry import for SketchUp | GitHub |
| FreeCAD PDF Importer | PDF vector import workbench for FreeCAD | GitHub |
| Blender PDF Importer | PDF vector import add-on for Blender | GitHub |
| LibreCAD PDF Converter | PDF-to-DXF converter for LibreCAD workflows | GitHub |
- Vanilla HTML5
- Custom utility-class CSS (Tailwind-style naming, zero build dependencies)
- No JavaScript framework
Open index.html in a browser. No build step required.
To see exactly what gets published, run python tools/build_site.py. It copies only the public site files into _site/ (ignored by git) and fails if a repository-only file would be published or an on-site link points at a missing file.
For a working local preview with the same page and part-tag routes as the hosted
site, run python tools/preview_site.py and open
http://127.0.0.1:8082/. Stop it with Ctrl+C. The preview uses only public site
files; it does not publish anything. This also lets Report Doctor copy buttons
use a secure localhost clipboard instead of a file: page.
To check every link and download button the way a visitor sees them (no login, no token), run python tools/check_public_links.py. A dead link (404 or 410) or a download that needs a login fails the check. A site that stays busy or unreachable (5xx, 429, network errors) after about a minute of retries is reported as a warning naming the page and URL, so brief GitHub throttling cannot block a deploy. --offline checks on-site links with no network; --base https://bluecollar-systems.com checks the live pages after a deploy.
Set ko_fi_url and/or github_sponsors_url in support-config.json
to the owner's confirmed public profile URLs. Both can be enabled together.
Use https://ko-fi.com/<profile> and https://github.com/sponsors/<account>;
leave a field empty to hide that channel. The homepage hides the entire support
section until at least one valid URL is configured, and also hides it if the
configuration cannot be loaded. There are no placeholder donation buttons.
These are public URLs, never API tokens or account credentials. Confirm each
profile belongs to the intended recipient and accepts contributions before
deployment. The default configuration is blank pending the owner's URLs.
Use the localhost preview above to test the configuration; browsers can block
JSON fetches when opening index.html directly with file:.
Run node tests/support_links_test.js to check both channels and rejected URLs.
Deployed to Cloudflare Pages (project bluecollar-website) via GitHub Actions workflow .github/workflows/website-ci.yml.
- Pushes to
mainrunwebsite-ci. static-checksmust pass beforedeploy-pagesruns. There are two ways to deploy production, both frommainonly:- Manual: a
website-cirun onmainwithdeploy_production=true. Its default is validation only. This is the only way to publish page, style, script or other site changes. - Importer release: an importer's
product-releasedispatch deploys by itself, so the version badges and Download buttons follow each release with no separate GO (owner decision O13). It is deploy-only: no website snapshot release. It may change nothing but the download metadata; see Release deploys change only download metadata.
- Manual: a
deploy-pagessyncs and validates release metadata, builds_site/withtools/build_site.py(public files only), publishes that folder with Wrangler, then verifies exact public metadata, repository-file 404s and live links. It retains the verified HTML/metadata as an Actions artifact for a reviewed source update; it never pushes tomain. Both ways in use these same steps and secrets.- Prepare
VERSIONand its matching footer through a normal reviewed PR. A manualauto-releaserun onmainwithpublish_release=truepublishes that committed version as a source-pinned GitHub snapshot. It never bumps or pushes source. Its default builds an inspection artifact without publishing. Dispatches never start it. - Pushes, pull requests, the six-hour schedule and the
product-update,steel-shapes-releaseandsteel-shapes-updatedispatches run validation only. They do not deploy or publish releases. - A shape pack (
steel-v*) release never deploys the site by itself; run the manual deploy after each one. See Shape pack releases need a manual deploy. - The daily
release-driftworkflow turns red when the live downloads have lagged GitHub releases for more than 24 hours; see Release drift check.
See RELEASE_CHECKLIST.md for app launch/update steps (Google Play + iOS).
Merging to main alone does not deploy. A manual production run publishes
approved site changes; an importer product-release dispatch can publish only
metadata and stamped badges after the guard above proves that no other public
changes would ship. main can therefore be ahead of what visitors see. To check:
-
Footer version. Compare the footer version on https://bluecollar-systems.com/ (for example
v1.0.109) withVERSIONonmain. A lower live number means the site is behind. The number changes only when a manualauto-releaserun bumps it, so a match alone does not prove the pages are the same. -
Release metadata. From an up-to-date checkout of
main, runpython tools/verify_deployed_metadata.py --expected repo-metadata.json --attempts 1. It passes only if the live/repo-metadata.jsonhas exactly the bytes of the file onmain(same release tags, download links andgenerated_at) and repository files such as/README.mdanswer 404. It only reads the site. -
Page changes since the last deploy. Find the commit the last production run published, then list what
mainhas added since:gh run list -R BlueCollar-Systems/BlueCollar-Website --workflow website-ci.yml --limit 100 --json databaseId,headSha,createdAt,event gh run view <RUN_ID> -R BlueCollar-Systems/BlueCollar-Website # deploy-pages must show success, not skipped git log --oneline <headSha>..origin/main
Select the newest run whose Deploy to Cloudflare Pages step succeeded, whether it was manual or a
product-releasedispatch. Validation-only runs do not count; extend the history if none appears in these 100 runs. Theverified-website-metadata-<run>-<attempt>artifact records that same deploy.tools/build_site.pypublishes only its allowlist. README, docs and tests are not public files, but build or badge-stamping tool changes can alter the public output, and workflow changes affect subsequent runs. The log identifies commits to review; it does not by itself prove which public bytes differ.
A product release reaches the live site only after a successful production run. An importer release normally triggers that run automatically; the guard can hold it when undeployed site changes need an approved manual deployment. Shape-pack releases follow the manual-deploy route described below.
The Google Group is an access/coordination route, not an app download. The existing Google Play testing URL requires sign-in; eligibility depends on the account and test track. The site therefore says Check Test Access rather than promising enrollment or a download. Contact support if access is unavailable. A public Google Play release has not been announced. This copy does not publish or configure an app, and does not offer a public APK from this website.
Product versions and ZIP download URLs are not hardcoded in HTML for versioned /releases/download/v… paths. Instead:
| Layer | Role |
|---|---|
repo-metadata.json |
Build-time snapshot of each GitHub repo's importer release plus any steel-v* release channel (generated in CI). It records each release's exact target commit and immutable GitHub asset digests. Primary installers/downloads stay first for the download UI, while published verification sidecars such as attestations remain available. |
tools/sync_repo_metadata.py |
Fetches GitHub API data and optionally stamps data-repo-version fallbacks in *.html. When nothing a visitor can see has changed (only the run time, or a push date no badge shows), it leaves repo-metadata.json and the pages byte-for-byte unchanged, so the 6-hour schedule adds no badge-stamp commit. It refuses to run if a tracked repo is private, because its download links would be dead for visitors. |
nav.js |
Client-side enhancement: loads /repo-metadata.json (Cache-Control: no-store) and updates data-repo-version, data-repo-release-link, and data-repo-asset-link elements. Supports data-release-channel="steel" for shape-pack downloads hosted by importer repos. |
| Static HTML fallbacks | releases/latest links and version badges work if JavaScript or metadata fetch fails. |
Tracked repos: PDF-Importer-SketchUp, PDF-Importer-FreeCAD, PDF-Importer-Blender, and PDF-Importer-LibreCAD. Private Steel Logic and BlueCollar Tag Logic release assets are not exposed in this public snapshot. The former standalone SketchUp and DXF/DWG shape repos are now represented by steel-v* releases in the SketchUp and FreeCAD importer repos.
- Importer repo
auto-release(or manualrelease: published) creates/updates a GitHub Release. - Same pipeline dispatches
repository_dispatchtoBlueCollar-Systems/BlueCollar-Websitewith event typeproduct-release(orproduct-update). - A
product-releasedispatch runs every static check, thendeploy-pagesonmain: it re-runssync_repo_metadata.py(all four importers, not only the one that dispatched), validates the metadata, builds_site/, confirms the deploy changes only download metadata, and deploys to Cloudflare Pages. Aproduct-updatedispatch only validates. tools/verify_deployed_metadata.pyrequests the public metadata with cache bypass headers and a unique query, allowing up to 12 attempts with 10 seconds between attempts and a 15-second request timeout. It requires exact bytes, so stale tags, download URLs, source revisions, asset digests, or an older snapshot fail the job. Only a verified deployment retains the stamped HTML/metadata artifact; any repository update goes through a reviewed PR.- The daily drift check reports any release the site still lacks after 24 hours.
Shape pack (steel-v*) releases do not take this path; see
Shape pack releases need a manual deploy.
Release and manual deploys share one concurrency group, so two deploys never
overlap. A release deploy waits for a running deploy instead of cancelling it,
and when several importers release at once, the newest waiting run replaces
the older waiting ones; it reads every repo's latest release anyway. A manual
deploy_production=true run still cancels a deploy in progress, as before.
A local metadata-sync PR is optional: every production run fetches fresh metadata itself. The separate website auto-release publishes a GitHub site snapshot and does not deploy Pages; dispatches never start it.
A product-release dispatch is a GO for new downloads, not for other website
changes that were merged to main but never deployed. Before upload, the
release deploy runs tools/check_metadata_only_deploy.py:
- It finds the approved commit: the head commit of the newest manual
website-cirun onmain(deploy_production=true) whose Deploy to Cloudflare Pages step succeeded. It reads the Actions API with the run's own read-only token, back through the newest 1,000 manual runs (the most the API lists). Dispatch runs are never read, so no amount of dispatch traffic can push the last manual deploy out of reach. A release deploy never becomes the approved commit: it only proved that its commit builds the same folder as the approved one for that day's metadata. If that commit's tools behave differently for some later metadata (for example a banner that appears once a tag starts withv9.), that difference was never approved. So every release deploy is compared with the last manual deploy, and what it uploads is what that approved commit builds with the new metadata. - It builds two public folders the same clean way, each in its own new
temporary worktree and its own new output folder: one from the commit about
to be deployed, one from the approved commit. Both get the same freshly synced
repo-metadata.json, and each commit's own tools do the work, run with that worktree as the working folder and only its owntools/importable: itstools/sync_repo_metadata.py(stamp_html_versions) stamps the version badges, and itstools/build_site.py --source . --out <folder>builds the folder. - It requires the
_site/about to be uploaded to be byte-for-byte the clean build of its own commit (so no uncommitted or leftover file rides along), and that build to be byte-for-byte the approved commit's build. All three folders may hold only plain files and folders: Wrangler follows links when it uploads, so a link, a Windows junction or any other kind of entry is refused instead of compared.
_site/ is the whole upload. The deploy step starts Wrangler in a new empty
folder outside the checkout and hands it the absolute path of _site/.
Started in the checkout, Wrangler 4.83.0 would also build and upload Pages
Functions from functions/, read a wrangler.toml, wrangler.json or
wrangler.jsonc found in that folder or any parent folder, and load .env
and .env.local; the guard compares none of those. The step refuses to upload
if its folder is inside the checkout or has a Wrangler config file above it,
or if _site/ holds anything but plain files and folders. Every Wrangler
option is passed as one --name=value argument, because Wrangler reads a
separate value that starts with - as an option of its own (a commit message
such as --cwd=<checkout> would have sent it back into the checkout). The
commit message is only the deployment's label: the subject on one line,
without leading dashes, at most 200 characters.
This holds for manual deploys too: this site has no Pages Functions, and
adding one needs a deliberate change to the deploy step.
The guard runs from tools/ of the very checkout it judges, so website-ci
starts it with python -I, which keeps tools/ off Python's import path: a
tools/json.py or tools/filecmp.py on main cannot stand in for the
standard library inside the guard. Started without -I, the guard drops every
import-path entry inside the repository before its first import, and refuses
to run if any module it loaded comes from the repository. Each commit's own
stamping and build run as python -I -B too, in their worktree, with
tools/ added to the end of the import path (after the standard library) and
an environment holding only what Python needs: no token or other secret, and
no GITHUB_ENV, GITHUB_PATH, GITHUB_OUTPUT, GITHUB_STEP_SUMMARY or
GITHUB_STATE. Before any of a commit's code runs, the guard refuses the
commit (and the checkout) if it tracks a Python cache or a module named after
a standard module; see Python runs isolated.
So only repo-metadata.json and the badges stamped from it can differ from
production. repo-metadata.json itself is written by main's
sync_repo_metadata.py, so a change to what the sync records ships with the
next release deploy. Files outside _site/ never reach Cloudflare, so the
README, tests and most of tools/ can change freely. A change to how the
public folder is made counts like a page change: if main's
tools/build_site.py publishes a different set of
files, or main's badge stamping writes different HTML, the two builds differ
and the release deploy refuses. If main holds any public change that is not
live yet (a page, a style, a script, a new or removed file, or such a tool
change), the release deploy stops before upload, names the files and deploys
nothing. Run website-ci manually on main with deploy_production=true once
those changes are approved; it publishes them and the new downloads together.
The guard also refuses, deploying nothing, whenever it cannot prove the
result: no successful manual deploy is found in the manual run history (the
message says how many runs it read and why it stopped), or the approved commit
cannot be fetched or cannot be rebuilt with its own tools. An approved commit
older than tools/build_site.py, or one whose tools lack
stamp_html_versions() or the --source and --out options, is refused with the note that a manual deploy is needed. Manual deploys skip
this step. The guard compares built files only.
To see what a release deploy would decide, commit your changes, then run
python -I -B tools/sync_repo_metadata.py, python -I -B tools/build_site.py
and python -I -B tools/check_metadata_only_deploy.py (add
--deployed-sha <commit> to skip the Actions API lookup). It only reads; it
never deploys. An uncommitted change to a public file makes _site/ differ
from the clean build of HEAD, and the guard refuses.
Threat model. main changes only through reviewed pull requests: the
website ruleset requires a pull request for every change to main. Neither
deployment nor snapshot publication commits or pushes source. The deploy job
retains its publicly verified HTML and repo-metadata.json as an artifact for
a reviewed update. The metadata-only release deploy guard exists for two things:
- to stop benign but owner-unapproved public site changes that are already
merged to
mainfrom being published automatically by an importer-release deploy; and - to stop accidental or unsafe inputs (stray links, Python caches, helper files named after standard-library modules, odd commit messages) from changing what is uploaded.
It is not a sandbox against deliberately malicious code merged to main.
Such code is out of scope: pull request review is what keeps it off main.
Code from main runs inside the deploy job, so code written on purpose to get
around the guard can do so. For example, it could leave a process running that
rewrites _site/ after the guard compares it, write to $GITHUB_ENV or
$GITHUB_PATH in its own step to change later steps, read the GITHUB_TOKEN
that actions/checkout keeps in .git/config for the badge push, or change
website-ci.yml itself. The guard does not try to stop that, and a change to
any file listed below needs the same review as a change to the workflow.
What code from main runs in the deploy job, and which secrets it has.
deploy-pages runs only on main, after static-checks passed on the same
commit (static-checks runs that commit's tests and tools; besides the
GITHUB_TOKEN that its own checkout stores, its only secret is GH_TOKEN, in
its metadata sync step). The deploy job's steps, in order:
| Step | Code from main that runs |
Secrets in its environment |
|---|---|---|
| Checkout | none (actions/checkout@v7) |
actions/checkout stores the job's GITHUB_TOKEN (contents: write, actions: read) in .git/config for the whole job; the last step pushes with it |
| Build repository metadata snapshot | python -I -B tools/sync_repo_metadata.py |
GH_TOKEN (the metadata read token, or GITHUB_TOKEN) |
| Validate final immutable release metadata | python -I -B tools/validate_static_metadata.py |
none |
| Build site folder | python -I -B tools/build_site.py |
none |
| Confirm a release deploy changes only download metadata (release deploys only) | python -I -B -X utf8 tools/check_metadata_only_deploy.py; it runs, in temporary worktrees, the deployed commit's and the approved commit's tools/sync_repo_metadata.py (stamp_html_versions) and tools/build_site.py, each as python -I -B with no secrets and no GitHub step files |
guard: GH_TOKEN (the job's GITHUB_TOKEN); the tools it runs: none |
| Deploy to Cloudflare Pages | no repository file: only this step's inline script from website-ci.yml (the credential check as python -I -B -, the label cleaner as python -I -B -X utf8 -c, shell checks), git rev-parse/show/status, and npx --yes wrangler@4.83.0, started in an empty folder outside the checkout |
CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID (this step only) |
| Verify public download metadata | python -I -B tools/verify_deployed_metadata.py |
none |
| Check live links the way a visitor sees them | python -I -B tools/check_public_links.py --base https://bluecollar-systems.com (it imports tools/build_site.py, added to the end of the import path) |
none |
| Retain verified metadata for a reviewed update | actions/upload-artifact (public HTML and metadata only) |
the job's read-only repository token |
The Cloudflare token is present only in the Deploy to Cloudflare Pages
step, after the guard passed (release deploys) and before the upload. Nothing
in that step imports or runs a file from the repository. Every other step that
runs code from main has no Cloudflare token.
Every Python in website-ci.yml, in both jobs, starts as python -I -B and
is given its script by path (tools/<name>.py, tests/<name>.py, or the
step's own inline -/-c code), never by module name. -I puts neither the working folder (the checkout root, for python -
and -c), nor the script's own folder (tools/ or tests/), nor
PYTHONPATH, nor the user's site-packages on the import path. So a stray
json.py, urllib/ or email/ in the checkout is never imported in place
of the standard library, and never sees a token. -B writes no
__pycache__, and the workflow also sets PYTHONDONTWRITEBYTECODE=1 for any
Python started without -E. The one deploy tool that imports a sibling module,
tools/check_public_links.py (it uses tools/build_site.py), adds tools/ to
the end of the import path itself, after the standard library; so does the
guard's stamp driver, to import a commit's tools/sync_repo_metadata.py.
Two kinds of tracked file are refused outright. static-checks refuses them
first, before any other Python runs (python -I -B tools/check_python_files.py).
The release deploy guard refuses them in the checkout and in every commit it
rebuilds:
- Python caches: anything in a
__pycache__/folder, and any*.pycor*.pyofile. Python can run a committed.pycinstead of the reviewed.py, and-Bdoes not stop it reading one..gitignorelists__pycache__/,*.pycand*.pyo. - Standard-module names: a module (
.py,.pyw,.pyc,.pyo,.pyd,.so) or a package (a folder holding any Python file) named after a module insys.stdlib_module_names, orsitecustomize/usercustomize, at the repository root, intools/or intests/. Those are the folders Python puts first on the import path when this repository's code runs without-I. Rename the file instead (for examplejson_helpers.py).
A shape pack (steel-v*) release never deploys the site by itself. The
steel-shapes-release.yml workflow in the SketchUp and FreeCAD repos publishes
the release with GITHUB_TOKEN, and GitHub starts no other workflow from an
event made with that token, so notify-website-deploy does not run and no
product-release dispatch reaches the website. (A steel-shapes-release
dispatch only validates.) After every shape pack release, run website-ci
manually on main with deploy_production=true. The next importer release
deploy also picks the pack up, because every deploy reads all channels. If
neither happens, the daily drift check turns red after 24 hours, and its issue
says the shape pack needs the manual deploy.
.github/workflows/release-drift.yml
runs once a day (13:41 UTC), and on demand from the Actions tab. It runs
tools/check_release_drift.py, which reads the
live https://bluecollar-systems.com/repo-metadata.json (cache bypassed) and
compares each importer with the release a deploy would publish now: the newest
published, final v* release, and the newest steel-v* shape-pack release in
the SketchUp and FreeCAD repos. The check reads that rule from
sync_repo_metadata.py (importer_tag_prefix(); a tracked repo outside the
PDF importers would follow GitHub's /releases/latest in both). A normal
deploy clears available-release drift. If the last final release was withdrawn,
the sync retains its previous snapshot: that needs an approved replacement or
explicit retirement, rather than a metadata refresh alone. Drafts and
prereleases never count as replacements.
- Behind for less than 24 hours: a warning only; the job stays green. The release deploy normally closes this within minutes. A shape pack waits for the manual deploy (see above), and the report says so.
- Behind for more than 24 hours: the job turns red and opens one issue, Live site downloads are behind GitHub releases, or updates it if it is already open. The age counts from the publish time of the first release the site is missing, so a fresh release on top of an old gap does not reset it.
- A live release that GitHub no longer lists (deleted, back to draft or prerelease) turns red at once, because its Download link may be dead. This includes withdrawal of the channel's last final release; a truly empty channel with no advertised release remains in sync.
- In sync again: the next run comments with the result and closes the issue.
- The check could not run (site or GitHub API unreachable, or an error in the tool itself): red with status 2, and the issue is not opened, edited or closed. Only a finished check that found stale downloads (exit 1, with the stale marker in its report) can open the issue, so a crash never reads as drift.
For available-release drift, the fix is the manual website-ci run with
deploy_production=true once that deployment is approved. If no final
replacement exists, approve a replacement release or a website change that
retires the affected download; syncing alone retains the withdrawn snapshot.
The report identifies the applicable recovery and never automatically unlinks
or republishes anything. The workflow never builds, deploys or pushes. Pull
requests that change the check run it read-only and never touch the issue.
To check by hand: python tools/check_release_drift.py (exit 0 in sync or
within the grace period, 1 stale, 2 could not check; --grace-hours and
--report drift.md are optional).
To check a prepared snapshot manually, run python tools/verify_deployed_metadata.py --expected repo-metadata.json. This reads the public metadata; it does not deploy or change any content.
Importer workflows: .github/workflows/auto-release.yml and .github/workflows/notify-website-deploy.yml in each product repo.
Configure under Settings → Secrets and variables → Actions:
| Secret | Required | Purpose |
|---|---|---|
CLOUDFLARE_ACCOUNT_ID |
Yes (deploy) | Cloudflare account for Pages API / Wrangler. |
CLOUDFLARE_PAGES_API_TOKEN |
Yes (deploy) | Preferred. Needs Account → Cloudflare Pages: Edit and Account Settings: Read. Alternatives: CLOUDFLARE_API_TOKEN, CF_API_TOKEN. |
REPO_METADATA_TOKEN |
Recommended | PAT or fine-grained token that can read public org repos (and any private product repos). Used only in CI to call api.github.com for sync_repo_metadata.py. Scope: public_repo (classic) or repository read on each product repo. If missing, workflow falls back to GITHUB_TOKEN (same-repo only; org repos may 404). |
Do not put GitHub or Cloudflare tokens in HTML, nav.js, or committed config.
| Secret | Required | Purpose |
|---|---|---|
WEBSITE_DISPATCH_TOKEN |
Recommended | PAT or fine-grained token allowed to trigger repository_dispatch on BlueCollar-Systems/BlueCollar-Website. Classic PAT: repo scope (or fine-grained: Actions: Read and write on BlueCollar-Website). Aliases accepted in workflows: BLUECOLLAR_WEBSITE_DISPATCH_TOKEN, REPO_DISPATCH_TOKEN. |
If WEBSITE_DISPATCH_TOKEN is unset, releases still publish on GitHub, but no product-release dispatch arrives, so the site does not update by itself; the daily drift check turns red after 24 hours. Every website change other than download metadata always requires the manual deployment described above.
Dispatch payload (informational; website workflow re-syncs all repos, it does not merge this JSON into the site):
{
"source_repo": "BlueCollar-Systems/PDF-Importer-SketchUp",
"source_event": "auto-release",
"source_ref": "refs/heads/main",
"source_sha": "<commit>",
"release_tag": "v3.7.2",
"release_name": "v3.7.2",
"release_url": "https://github.com/BlueCollar-Systems/PDF-Importer-SketchUp/releases/tag/v3.7.2"
}Event types listened by website-ci: product-release (validates, then deploys download metadata), product-update, steel-shapes-release, steel-shapes-update (validate only).
MIT License. See LICENSE for details.