Skip to content
tangency-labsPublic

About

SolidCraft Workshop: community models and plugins, and the signed index the app reads

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SolidCraft Workshop

workshop.solidcraft.io: a community site for models and plugins made in SolidCraft, and the signed index the app reads (RFC 0017 in tangency-labs/solidcraft).

  • Browse and share: image-first grid, featured, trending, new, categories and tags; item pages with a gallery and a 3D viewer (STL and 3MF previews), files, versions, licence and an "Open in SolidCraft" button next to a plain Download link.
  • Community: GitHub sign-in, author profiles with bio and followers, likes, comments and builds (photos of what people built).
  • Parts libraries: every library in the solidcraft-parts index is listed HACS-style, with its tier and an Open in SolidCraft link.
  • Publishing: upload a model (.sc plus STEP/3MF/STL previews and pictures), or list a GitHub repository with a solidcraft-workshop.json manifest (models and plugins). See docs/manifest.md.
  • Tiers: Official (Tangency Labs), Community (reviewed and signed), Unverified (machine-checked only, the default). Set by admins, who are the tangency-labs org owners.
  • App index: /api/index.json, signed with Ed25519, with per-version manifests, delisted and revoked records. See docs/index-format.md and docs/link-scheme.md.
  • Safety: files are checked by type and content and capped in size; plugin listings are refused if they ask for network access; Official items may not name other companies' products; loading a page never starts a download.

Develop

Needs Bun 1.4+ and Postgres.

bun install
docker run -d --name workshop-postgres -e POSTGRES_USER=app -e POSTGRES_PASSWORD=app -p 127.0.0.1:5441:5432 postgres:16-alpine
cp .env.example .env            # AUTH_DEV_LOGIN=true for local sign-in
bun run build                   # the SPA the API serves
bun run --filter @app/api dev   # or `bun run dev` for Vite on :5173 with hot reload
bun run lint && bun run typecheck && bun run test

Example content for local development: bun scripts/demo-seed.ts http://localhost:4100, then bun scripts/screenshots.ts http://localhost:4100 out --covers renders card pictures from the STL previews.

Schema changes: edit packages/db/src/schema/app.ts, then bun run db:generate. Auth config changes: bun run --filter @app/api auth:generate.

Deploy

Dockerfile builds one image; .railway/railway.ts (Railway IaC: railway config plan, then apply) runs it with Postgres and a private S3-compatible bucket for files. Variables are listed in .env.example. Make an index signing key with bun apps/api/src/server.ts new-signing-key and set INDEX_SIGNING_KEY.

Next steps (not in this version)

  • The SolidCraft side: the solidcraft:// link handler and the in-app Workshop client that reads and verifies the index. Those are separate SolidCraft PRs.
  • Collections.
  • Payments.
  • Rendering .sc designs to previews on the server (today the cover is rendered in the uploader's browser from an STL or 3MF preview).
  • Themes as a third kind (RFC 0017).
  • Signed build attestations for Community plugins, and key rotation with more than one published key.

About

SolidCraft Workshop: community models and plugins, and the signed index the app reads

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages