MakerWorld import¶
Paste a MakerWorld model URL into BamDude, pick a plate, and the 3MF lands in your local library — no slicer round-trip, no manual download. Each imported file keeps a provenance link back to the original page, the full design metadata (title, author, license, sliced-for printer, compatibility list, materials), and a locally-cached cover image so the UI never re-hotlinks MakerWorld's CDN.
The integration is paste-driven, not search-driven: the public design/search endpoint returns empty results from server-originated requests, so duplicating MakerWorld's catalog inside BamDude isn't viable. The actual discovery pattern users already follow — Reddit links, YouTube descriptions, shared chats — fits a paste-first flow cleanly without that limitation.
MakerWorld is a tab of the Model sources page: open Model sources in the sidebar and pick the MakerWorld tab. The tab strip is shown when you can use more than one source; with MakerWorld alone the page opens straight on it. Links and bookmarks to /makerworld open this tab. The other tab, Manyfold, browses a self-hosted model library — see Manyfold library.
The MakerWorld tab splits into two underline-style tabs of its own:
- Import — paste a URL, resolve the design, preview every plate with its compatibility badge and per-variant import state, then click Import on the one (or all) you want.
- History — paginated 4-column grid of everything you've already imported, search across filename / title / author, sort by date / title / author, locally-cached cover thumbnails.
The active tab persists in localStorage.
How it works¶
You paste MakerWorld URL ─→ BamDude /resolve ─→ shows plates
│
└→ Click Import on a plate ─→ BamDude /import ─→ 3MF in library
| Step | What happens |
|---|---|
| 1. Paste URL | Accepts any MakerWorld model URL — /en/models/123-slug?from=search, /de/models/123#profileId-456, scheme-optional. The locale prefix and tracking query are stripped; the #profileId-N fragment (if present) selects a specific plate. An inline Clear (×) button appears inside the URL input on the right as soon as the field has content or a resolved preview is on screen — one click wipes the URL, the resolved model, and the per-variant import cache. |
| 2. Resolve | Anonymous calls to api.bambulab.com/v1/design-service/design/{N} and …/instances fetch the design metadata + every published plate. Per-plate printer compatibility (sliced for A1, also marked compatible with H2D / P1S / …) is merged in so the picker can highlight a plate matching your hardware. |
| 3. Pick plate | The resolve response includes a per-variant dedupe map (already_imported_by_profile_id) — for every plate already in your library it surfaces an Already imported badge + a View in Library deep-link to the exact row, so you don't pay a redundant download and you can jump straight to the existing file. The legacy whole-model dedupe (URL with no #profileId-) lands under the conventional "0" bucket. |
| 4. Import | BamDude asks Bambu's API for a signed download link with your Bambu Cloud sign-in, downloads the plate's 3MF (with size cap + SSRF guard), checks that it is a readable 3MF, saves it under the library's auto-managed MakerWorld folder, downloads the model-level + variant-level cover images locally, captures full design + instance metadata into the library_file_makerworld_meta child table, and tags the row with source_type='makerworld' + canonical URL. |
When MakerWorld's answer cannot be used¶
An import — and a Re-download — saves a file only after MakerWorld has handed over a working download. Three answers are refused with a message that names MakerWorld, shown in the toast:
| Message | What it means |
|---|---|
| MakerWorld did not return a download URL | MakerWorld answered, but gave no download link for the plate. |
| MakerWorld returned a download address that is not an HTTPS link | The link is not an https:// address. BamDude does not fetch it. |
| MakerWorld sent a file that is not a valid 3MF | The download is not a readable 3MF — a truncated file, or an error page served in its place. |
In all three cases nothing is saved: no library file, no metadata row, no cover images, and a Re-download leaves the existing file exactly as it was. The failure is on MakerWorld's side (the API answers 502), so try again later, or use Open on MakerWorld to download the file in your browser.
Authentication¶
BamDude reuses your existing Bambu Cloud sign-in for downloads — there's no separate OAuth flow.
- Anonymous calls (URL parsing, design metadata, plate enumeration) work without a token.
- Download calls (
/design-service/instance/{instanceId}/f3mf, and/iot-service/api/user/profile/{profileId}when the first gives no link) require your stored Bambu Cloud bearer.
If no token is stored, the MakerWorld tab shows a Bambu Cloud sign-in required to download banner and the Import and Print buttons stay disabled — sign in to Bambu Cloud on the Profiles page first.
A stored token that has expired is renewed with the stored refresh token, and the import simply goes through (see Token lifetime). If Bambu Cloud cannot be reached for that renewal, the import answers Bambu Cloud could not be reached to renew the expired sign-in. Try again shortly. and the stored sign-in is kept.
If a token is stored but Bambu has stopped accepting it and refuses the renewal, the banner says Bambu Cloud sign-in expired instead, and the buttons stay disabled until you sign in again. A download refused for that reason answers Your Bambu Cloud sign-in has expired. Open the Profiles page and sign in to Bambu Cloud again. A single stray 401 does not sign you out: only Bambu's own expiry answer marks the token as dead.
API-key callers use the key owner's token
Requests authenticated with an API key (X-API-Key / Bearer bd_…) that carries the cloud-access scope resolve the key owner's stored Bambu Cloud token, so has_cloud_token / can_download reflect that user. Extension and Home Assistant imports succeed as long as the key's owner has signed into Bambu Cloud.
Permissions¶
| Permission | Grants |
|---|---|
makerworld:view |
Browse the MakerWorld tab, paste URLs, see resolved metadata, see Recent imports. |
makerworld:import |
Actually trigger a download into the library. |
The default groups grant both to Operators and only makerworld:view to Viewers. Admins get both.
Where files land¶
| Field | Value |
|---|---|
| Folder | Top-level MakerWorld folder, auto-created on the first import. You can manually move files into sub-folders afterwards — the provenance row stays attached. |
| Filename | The file name MakerWorld sends with the download — the model's name — with .3mf added when it is missing; makerworld-<model id>.3mf when MakerWorld sends none. On-disk storage uses a UUID, so you can rename freely. |
source_type |
'makerworld' — drives the MakerWorld glyph badge in File Manager. |
source_url |
Canonical https://makerworld.com/models/{m}#profileId-{p} — the badge becomes a one-click link back to the page. |
| Plate-keyed dedup | Two different plates of the same model = two library entries (each plate is downloaded independently from MakerWorld). The same plate imported a second time returns the existing row instead of re-downloading. |
Per-plate actions¶
Once a model is resolved, each plate row carries its own action strip:
| Action | What it does |
|---|---|
| Save | Downloads the 3MF and files it into the library. The plate row gets a green "Already in library" badge afterwards. |
| Save & Slice in Bambu Studio | Same as Save, plus opens the saved file in Bambu Studio if you've configured Slicer Integration. |
| Save & Slice in OrcaSlicer | Same as Save, plus opens it in OrcaSlicer. MakerWorld plates are unsliced source files so the slicer is the right next step before printing. |
| Re-download | Appears on plates that are already in your library (in place of Save). Re-fetches the 3MF bytes from MakerWorld and overwrites the existing file in place at library_files.file_path. The library_file_id stays stable — queue items, project links, archives, and any other FK references continue to resolve to the same row. file_size, file_hash, file_metadata, the meta-table row (title / author / sliced-for / compatibility / …), and the locally-cached cover images are all refreshed. Use case: the author pushed an update on MakerWorld and you want the fresh bytes without losing your local links. |
| Delete | Per-plate trash button on already-imported rows — goes through the standard BamDude confirm modal, removes both the library row and the file on disk. ON DELETE CASCADE drops the meta-table row + cover-image files alongside it. The plate can be re-imported from MakerWorld any time. |
| View in Library | Jumps to the library row for the imported plate. Shown both inline on the resolve preview (driven by the per-variant dedupe map) and on every History tab card. |
Import all plates¶
For multi-plate models, the Import all button sequentially downloads every plate of the model in one click. The button shows live progress with the format:
Plates already in your library are skipped (no redundant download); the counter still advances so you can see progress against the full set.
History tab¶
The History tab is a server-paginated 4-column grid (responsive down to 1 column on narrow viewports) of every MakerWorld file you've ever imported. Each card surfaces:
- Cover image — the locally-cached variant cover, falling back to the model cover, falling back to the library thumbnail. No hot-linking to MakerWorld's CDN at render time.
- Title — the design title captured at import.
- Author — name + click-through to the MakerWorld profile.
- Sliced-for badge — which printer model the variant was sliced for (A1 / P1S / X1C / H2D / …).
- Action buttons — Slice / Open in Bambu Studio / Open in OrcaSlicer / View in Library / Delete.
| Control | Behaviour |
|---|---|
| Search | Debounced (300 ms) across library_files.filename, meta.title, and meta.author_name at once — the backend joins library_files against library_file_makerworld_meta so a single query hits all three fields. |
| Sort | imported_at (default newest first) / title / author. Persisted in localStorage. |
| Page size | 12 / 24 / 48 / 96 / All. Matches the Archives convention; All drops LIMIT/OFFSET on the SQL side. Persisted in localStorage. |
| Refresh | The grid auto-refetches after import / delete / redownload mutations via TanStack Query invalidation. |
The legacy recent-imports endpoint is still exposed for backwards-compat but the page itself drives off /api/v1/makerworld/imports.
Metadata captured per import¶
Every import writes a 1:1 child row in library_file_makerworld_meta (ON DELETE CASCADE from library_files), capturing the full source-of-truth view that the resolve response surfaces:
| Field | What it holds |
|---|---|
title, description |
Design title and Markdown/HTML description (sanitised with DOMPurify at render time). |
author_name, author_url |
MakerWorld user display name + canonical profile URL. |
license |
License key as published on the model page (Creative Commons variant, CC BY-SA, etc.). |
variant_title, variant_description, variant_url |
Per-plate name / description / canonical #profileId-N URL. |
sliced_for |
The printer model the variant was sliced against (e.g. "P1S"). |
compatible_models |
Full list of compatible printers — used by the resolve UI to highlight a plate matching your hardware. |
requires_ams |
Whether the variant is AMS-required. |
material_count, filaments |
Slot count + per-slot material/colour list as published. |
original_design_id |
If the design is a remix, the integer design id of its parent. |
makerworld_model_id |
Alphanumeric model id (e.g. US2bb73b106683e5) — needed to re-mint download URLs for Re-download. |
raw_payload |
The combined design + instance JSON, stored verbatim for future-extension forensics — never read by routine code paths. |
Migration m056 introduces this table; it also best-effort backfills historical imports (rows that exist in library_files with source_type='makerworld' from before m056). Per-row backfill failures are swallowed (logged) so the migration completes either way — a backfill miss just means the History card falls back to the bare filename until you re-import or Re-download.
Cover images¶
Cover images are downloaded locally at import time and served from BamDude, not hot-linked from MakerWorld's CDN. Two flavours per row:
- Model cover — the design's hero image. Saved to
<data_dir>/library/makerworld-covers/<library_file_id>-cover.<ext>. - Variant cover — the plate-level image (if MakerWorld publishes one separately). Saved to
<data_dir>/library/makerworld-covers/<library_file_id>-variant.<ext>.
History-tab cards prefer the variant cover, fall back to the model cover, then fall back to the library file's regular thumbnail. The image endpoints are:
GET /api/v1/makerworld/imports/{library_file_id}/cover
GET /api/v1/makerworld/imports/{library_file_id}/cover-variant
<img src> browser fetches can't carry an Authorization header, so both take the page's media token in ?token= (or the ordinary headers) and are served under the library file's own visibility rule: the cover of a file you cannot see is not served.
The JSON metadata endpoint at …/meta needs makerworld:view, and the details of an import can be read by whoever can see that library file. For a user limited to their own files another user's import answers the same 404 as a file that has no MakerWorld metadata, and so does an import in the trash.
Re-download refreshes both cover files alongside the 3MF bytes. Deleting a library file CASCADE-drops the meta row, and the cover files are unlinked from disk.
Legacy thumbnail proxy¶
For thumbnails on the Import tab (the resolve preview shows MakerWorld's hosted gallery images before you click Import), BamDude still exposes a thumbnail proxy at /api/v1/makerworld/thumbnail?url=... for signed-in users (it takes the page's media token and makerworld:view) that:
- Server-side fetches the image,
- Restricts the upstream host to the MakerWorld CDN allowlist (
makerworld.bblmw.com,public-cdn.bblmw.com) — not a generic open proxy, - Returns the bytes with a long
immutablecache window (filenames are content-hashed).
<img> tags can't send Authorization headers, so the media token rides in the URL. Once you click Import, BamDude downloads its own copy of the cover — served the same way, under the library file's own permissions — and never proxies the same image again.
Limitations¶
Presigned S3 downloads trust the same certificates as everything else
MakerWorld often hands the 3MF out as an Amazon S3 link. BamDude verifies that download against the same certificate bundle as every other connection, not the operating system's store — on Windows the system store fills lazily, and an import would fail with unable to get local issuer certificate on a machine that has not met that Amazon root yet. Behind a TLS-inspecting proxy, point SSL_CERT_FILE (or SSL_CERT_DIR) at its CA: every connection, this one included, honours it.
MakerWorld 418 — application-level CAPTCHA
MakerWorld occasionally challenges your IP with a CAPTCHA (HTTP 418 with {"captchaId":...}). This is application-level, not Cloudflare-edge — there's no server-side solve, since CAPTCHAs are intentionally unsolvable without a real browser. BamDude does one short-backoff retry, then surfaces the upstream message verbatim. Wait 1–4 hours of quiet traffic, or use Open on MakerWorld to import manually via your browser.
- No search/browse UI. MakerWorld's public
design/searchreturns empty results from server-side requests, so BamDude doesn't try to mirror the catalog. Workflow is paste-driven by design. - No price/points handling. Plates that are content-gated (paid, region-locked, points-required) return
HTTP 403with MakerWorld's own refusal message, surfaced verbatim in the toast. - 3MF size cap: 200 MB. Larger plates fail the SSRF-guarded download with a clear error.
Bambu Cloud token has ~90-day lifetime
Bambu Cloud bearers expire after roughly 90 days. BamDude renews an expired one with the stored refresh token and the import goes on. When the renewal is refused — or the token was pasted by hand and has no refresh token — the MakerWorld tab shows Bambu Cloud sign-in expired: sign in to Bambu Cloud again on the Profiles page. Cloud profiles and firmware checks use the same sign-in, so one sign-in restores all three.
Privacy, security, and compliance¶
- BamDude is not affiliated with or endorsed by MakerWorld or Bambu Lab.
- The integration only uses community-documented endpoints —
api.bambulab.com/v1/design-service/*for metadata and the download URL, andapi.bambulab.com/v1/iot-service/api/user/profile/{pid}as the second source of that URL. Credit to Pr0zak/YASTL#51 for publishing the iot-service endpoint shape that makes the import flow possible. - Thumbnails and CDN images are proxied through
/api/v1/makerworld/thumbnailso the user's IP is never exposed to MakerWorld's CDN on page render. The proxy enforces a host allowlist and does not follow redirects. - The MakerWorld description HTML (model summary, instructions) is sanitised with DOMPurify before rendering — user-authored content can't inject scripts, event handlers, or
javascript:URLs. - The Bambu Cloud bearer is sent only to
api.bambulab.com; it is never forwarded to the MakerWorld CDN or to S3 presigned fetches. - Filenames returned by MakerWorld responses are sanitised with
os.path.basenamebefore persistence so a malicious response cannot surface path-traversal strings into the UI. On-disk storage uses UUID filenames regardless of the human-readable name shown in the library.
Settings¶
There is no MakerWorld section in Settings:
- Sign-in state — shown on the MakerWorld tab as a banner when downloads are off (no token, or an expired one);
GET /api/v1/makerworld/statusreturns the same. - Default folder — the auto-created top-level
MakerWorldfolder. Override per import via the folder picker on the import button.
Credentials live on the Profiles page (Bambu Cloud sign-in); the CDN host allowlist is fixed for security.
Developer reference¶
Endpoints¶
| Endpoint | Method | Auth | Purpose |
|---|---|---|---|
/api/v1/makerworld/status |
GET | makerworld:view |
has_cloud_token, can_download, and sign_in_expired — a stored token Bambu has rejected (can_download is then false). |
/api/v1/makerworld/resolve |
POST | makerworld:view |
Resolve URL → design + plate list + flat already-imported IDs + per-variant dedupe map (already_imported_by_profile_id). |
/api/v1/makerworld/import |
POST | makerworld:import |
Download a specific plate (profile_id) into the library. Writes the meta row + cover images alongside the 3MF. An unusable answer from MakerWorld is a 502 with its message and writes nothing. Optional source_type names the model provider (default makerworld, the only value this route accepts — Manyfold has its own routes); any other value is a 400 before anything is written. |
/api/v1/makerworld/imports |
GET | makerworld:view |
Server-paginated grid for the History tab. Query params: page, per_page (1–200, default 24), search (filename, meta title or author), sort_by (date-desc / date-asc / name-asc / name-desc). Returns the standard {data, meta:{total, current_page, per_page, last_page}} envelope. |
/api/v1/makerworld/imports/{id}/meta |
GET | makerworld:view + the library file is visible to the caller |
The captured meta-table row (title / author / license / sliced-for / compatibility / materials). 404 for a file the caller cannot see, a file in the trash, or one without MakerWorld metadata. |
/api/v1/makerworld/imports/{id}/cover |
GET | media token, library:read_all / library:read_own |
Locally-cached model cover image. The token rides in ?token= because <img src> can't send auth headers. |
/api/v1/makerworld/imports/{id}/cover-variant |
GET | media token, library:read_all / library:read_own |
Locally-cached variant cover image, gated like /cover. |
/api/v1/makerworld/imports/{id}/redownload |
POST | makerworld:import |
Re-fetch the 3MF bytes and overwrite the existing file at library_files.file_path. Stable library_file_id; refreshes file_size / file_hash / file_metadata / meta row / covers. |
/api/v1/makerworld/recent-imports |
GET | makerworld:view |
Legacy: last N MakerWorld library files (default 10, clamped [1, 50]). Superseded by /imports — kept for backwards-compat. |
/api/v1/makerworld/thumbnail |
GET | media token, makerworld:view |
Proxy MakerWorld / public-cdn for <img> rendering on the Import-tab preview — host-allowlisted, no redirects. History-tab cards use the local /cover endpoints instead. |
Upstream flow¶
The reverse-engineered flow against api.bambulab.com (undocumented by Bambu; reverse-engineered via Pr0zak/YASTL#51):
GET https://api.bambulab.com/v1/design-service/design/{designId}— public metadata. Returns{id, modelId, title, coverUrl, instances[], …}. ThemodelIdfield is the alphanumeric identifier (e.g.US2bb73b106683e5) — different from the integerdesignIdfrom the URL.GET https://api.bambulab.com/v1/design-service/instance/{instanceId}/f3mf?type=downloadwithAuthorization: Bearer {cloud_token}. Returns{name, url}whereurlis a short-lived signed download URL.instanceIdis theidof the entry in the design'sinstanceswhoseprofileIdis the plate — not theprofileIditself. When this gives no link, or no instance is listed for the plate, BamDude asksGET https://api.bambulab.com/v1/iot-service/api/user/profile/{profileId}?model_id={modelId}with the same bearer; a refusal from the instance endpoint is reported as it is, without the second request. No link from either, or a link that is not HTTPS, ends the import with its message.- Fetch the presigned URL without following redirects and without re-encoding the query string — S3 signatures are computed over the exact query bytes, so any normalising HTTP client (httpx default, requests, aiohttp without
raw_path) breaks them withSignatureDoesNotMatch. BamDude usesurllib.requestwith a no-opHTTPRedirectHandlerfor this step, and an explicit TLS context built from thecertifibundle (urllib would otherwise use the operating system's store). The downloaded bytes must be a readable 3MF before anything is written.
The same …/design-service/instance/{id}/f3mf path on the makerworld.com host, which some reverse-engineering projects document, is cookie-gated at Cloudflare and returns "Please log in to download models" regardless of bearer. The api.bambulab.com host does not go through that gate.
Code¶
backend/app/services/model_providers/— the model-provider interface (base.py) and registry (registry.py). A model site is aModelProviderdescriptor plus a per-requestProviderService; the routes pick the provider through the registry and never talk to the site directly. MakerWorld is the first provider.backend/app/services/model_providers/makerworld/—provider.py(descriptor),service.py(API client, download, thumbnail proxy),http.py(constants, User-Agent, S3 download),url.py(URL parsing + canonical dedupe key),errors.py,meta.py(build_meta_dict()/download_covers()/cleanup_cover_files()— the m056 meta-table writer + local cover-image fetcher).backend/app/services/bambu_cloud_credentials.py— where the stored Bambu Cloud token lives and whether Bambu rejected it; shared with the cloud routes.backend/app/models/library_file_makerworld_meta.py— SQLAlchemy model for the meta child table (1:1 withlibrary_files,ON DELETE CASCADE).backend/app/migrations/m056_library_file_makerworld_meta.py— schema migration + best-effort backfill of historical imports.backend/app/api/routes/makerworld.py— FastAPI routes.backend/app/schemas/makerworld.py— Pydantic request/response models (MakerWorldAlreadyImportedEntry,MakerWorldImportsPage, …).frontend/src/components/MakerWorldImportModal.tsx+frontend/src/pages/MakerworldPage.tsx— UI: Import + History tabs, paste field with inline Clear, preview, plate list with per-variant dedupe badges, image gallery, paginated grid, search, sort, page-size selector.
Related¶
- File Manager — where MakerWorld imports land. The provenance badge column is documented there.
- Manyfold library — the other tab of Model sources: browse a self-hosted Manyfold and import its files.
- Slicer API — pair MakerWorld imports with server-side slicing if a plate isn't pre-sliced for your printer model.
- Bambu Cloud setup — required once before the first download.