Skip to content

Contributing to Thingport

Thanks for taking the time. Bug reports, fixes and features are all welcome.

  • Small fix? Just open a pull request.
  • Something bigger — a new provider, a schema change, a new page — please open an issue first so we can agree on the shape before you write it. It’s no fun to have a large PR turned down over a design decision that could have been a two-message conversation.

Getting the project running locally is covered in docs/DEVELOPMENT.md. To translate Thingport into your language, see docs/TRANSLATING.md — it needs no code.

  1. Fork the repository and clone your fork.

  2. Branch from develop. Name it after what it does: fix/firefox-background-importscripts, feat/printables-collections.

  3. Commit using Conventional Commits — this repo’s history uses feat:, fix:, docs:, refactor: and ci:, with an optional scope:

    fix(extension): load common.js on Firefox, where importScripts is undefined
    feat: show model usage in memory size

    The type also decides the next version of what you touched (feat: minor, fix: and perf: patch, ! major; anything else none). The backend, the frontend, Bridge and the browser extension are each versioned on their own, from the commits under their folder: the backend, frontend and Bridge when a release is merged into main, the extension weekly — see extension/CONTRIBUTING.md. Each gets a CHANGELOG.md and a GitHub release.

  4. Push to your fork and open a pull request against develop.

develop is where work comes together; main is what’s released. Neither takes direct pushes: changes reach develop by pull request, and a release is a pull request from develop into main, merged with a merge commit, never a squash.

A husky pre-commit hook formats your staged files and runs oxlint over whichever project you touched. If it blocks your commit, fix the lint error rather than passing --no-verify.

Run whatever covers the area you changed:

Terminal window
npm --prefix frontend run verify # typecheck + lint + tests + build
npm --prefix backend run lint

Backend tests need their own throwaway database — see the warning in docs/DEVELOPMENT.md before running them, because the default configuration points at your development database.

Formatting is checked on every pull request (npm run format:check), and so are the files written from providers/ (npm run providers:check), from the widget and tool SDK’s types in frontend/src/sdk/types.ts (npm run sdk:check, which also type-checks the examples in docs/developers/examples/), and Studio’s backend copies of frontend/src/studio/ (npm run studio:check). The other workflows are path-filtered, so only the parts you touched run:

You changed CI runs
backend/**oxlint, then a multi-arch Docker image build (which runs tsc)
frontend/**oxlint, tsc --noEmit, then a Docker image build
extension/**oxlint, tsc --noEmit, the Chrome/Edge/Firefox builds, and web-ext lint on the Firefox build
bridge/**go test ./... and a build for Windows, Linux and macOS
tools/**validateTools.ts; tools built from source/ rebuilt to match what’s committed, and tested
community-widgets/**validateCommunityWidgets.ts

The regression pack, which runs end-to-end browser scenarios against the full stack, isn’t run on pull requests. It runs weekly on main.

Nothing is published from a pull request. A merge into develop publishes a :dev image for testers who want changes early, but only for the project it touches: the backend’s when it changes backend/**, the frontend’s when it changes frontend/**, once any running backend build has finished. Only a release, merged into main, gets a version and :latest. It isn’t tested again there, since its pull request was, so merge one only once that pull request’s checks have passed: main’s rules don’t require it. When a release changes both projects, their images go out together, the backend’s first, so nobody pulls a new frontend for an old backend.

If you’re a brand-new GitHub account, your first PR’s workflows wait for a maintainer to approve them before running. That’s a GitHub setting, not something wrong with your PR.

Explain the problem, not just the patch. A description that covers symptom, cause, fix and how you verified it is much faster to review than a diff alone — especially for a bug fix, where the reviewer otherwise has to reconstruct your reasoning from scratch.

If you couldn’t verify something end to end, say so. That’s useful information, not a weakness.

CodeRabbit reviews pull requests into develop, and each push to them. An account kept for it watches CodeRabbit’s checks and the pushes, and asks for what a pull request is still owed once it’s due, so there’s no need to ask yourself: @coderabbitai review for a push it didn’t review (full review if it never reviewed the pull request, stacked ones included), the same ask again once a rate limit’s wait is over, and full review when a review had nothing to say or CodeRabbit answers “Already reviewed the last commit”. Comment @coderabbitai pause to stop its reviews of your pull request, and @coderabbitai resume to start them again.

A provider is a model site Thingport imports from. How they’re built, the approaches the existing ones take and the checklist for a new one are in docs/PROVIDER_DEVELOPMENT.md. Open an issue first.

A tool is a small app that opens in a window from the Tools page. The format, the rules its script follows and the steps to get one merged are in docs/TOOL_DEVELOPMENT.md; a tool’s script runs in its users’ browsers, so it’s read before it’s merged.

Studio, the CAD page, has one rule: everything a person can do to a design is a command, which is also an MCP tool, so an AI can do it too. How that’s built and the steps for a new command are in docs/STUDIO_DEVELOPMENT.md.

The printers Thingport knows, their beds and each slicer’s names for them, are built from the slicers’ own profiles by npm run printers:update and committed. How it’s built and how to update it or add a slicer are in docs/PRINTERS_DEVELOPMENT.md.

Connected Thingport instances see each other’s people as if they were on one instance, so every social feature has to work for a partner’s people too. Each social route says how it crosses to partners in backend/src/federation/socialSurfaces.ts, and a test fails for one that doesn’t. How it’s built, the security rules and the steps for a federating feature are in docs/FEDERATION_DEVELOPMENT.md.

  • Match the surrounding code. This codebase uses long explanatory comments that say why something is the way it is — particularly where behaviour is non-obvious or a workaround exists. Follow that where it helps; don’t narrate what the code already says.
  • Prettier formats everything it can (config in .prettierrc.json), gofmt the bridge and prisma format the schema. Run npm run format at the repo root; the pre-commit hook does it for staged files.
  • oxlint is the linter for every TypeScript project (backend, frontend, extension).
  • The extension is TypeScript + SCSS built with esbuild, and its background has to run as a Chrome service worker and a Firefox event page. See extension/CONTRIBUTING.md before changing it.
  • Frontend is TypeScript with strict: true. Don’t reach for any to get past a type error.
  • .env files — backend/.env and root .env are gitignored and hold real credentials.
  • data/, backend/storage/, dist/, node_modules/ — all runtime or build output.

Thingport is copyright (C) 2026 Tautvydas Deržinskas and licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only). By contributing, you agree that your contributions are licensed under the same terms.

Something unclear, wrong or missing on this page? Say so here, or react. It’s kept in GitHub Discussions. Something broken? Report it as a bug.