6 Commits

Author SHA1 Message Date
superGeometry 6b796c06cf A check of security and of speed, and the words brought up to date; 0.6.0 (asked for: "check for speed and performance, also security" and "also update everything: about, help, guide text etc.").
Security. Looked for: code run from text (none: no eval, no Function made from text), text written into the page as markup, pages and messages from elsewhere, links opened, what is fetched, the packages' known faults (npm audit: none).
- A project file can come from anyone, and three things in one reached the page as markup. A body's colour was written into a tool's button ("<span style=background:...>"): a file with markup for a colour had it on the page when that body's tools were listed. A colour is given to the swatch as a colour now; and a project read from a file keeps only colours that are colours ("#rgb", "#rrggbb", "#rrggbbaa") and see-through levels that are numbers - anything else is dropped. A drawing's ids and its text's size, weight and colour went into the sheet's SVG as they were: escaped now, as its texts were.
- The site sends security headers on every file: a Content-Security-Policy (only the site's own scripts run - none written into the page, none from another site, no plugins; pictures and the Browser window's pages may come from anywhere, they are what the user opens), nosniff, and a referrer that names only the site. 'unsafe-eval' is in it for the geometry engine, which builds part of itself as it starts: without it the engine did not start (tried). With the policy, on a build served with these headers: the app opened, the engine started, the tutorial's first 24 steps were built (sketches, extrudes, chamfers), the Technical Sheet and Drawings opened - no violation reported.
- Found sound: the Browser window opens http and https pages only, in a sandboxed frame; links open with noopener; the About page escapes its text.

Speed. Measured, on a ten-step part:
- A change that leaves the model's steps as they were - a body renamed, coloured or hidden, a material, a joint, an assembly's pose (saved at the end of every drag), a pin - went to the geometry engine and back all the same: about a fifth of a second each. What is shown is brought up to date from the model there is now, the engine not asked (only when the model on the screen is the project's own, and none is being made). A change to a step still makes the model again; undo and redo as before.
- Nothing to change: the tutorial's work each frame and an assembly's parts placed on each move of a drag are a few thousandths of a millisecond; nothing is drawn while nothing happens, with the tutorial open or not.

Words. Help: Insert (Image on plane, File, Project), Assemblies (the pose is kept; Joint from two picked faces; where the parts are shown while a tool is open), the tutorial (New project at its end). About (the README): the tutorial, BIM and Assemblies, Insert, what a .super file holds, the project's joints and pose for scripts.

In the app: a project loaded with markup for a body's colour, its see-through level and a material's colour - none of it kept, nothing run, the body's tools listed; a pose saved five times - no engine call, the pose there; a colour and a name changed - shown, no engine call; a step's size changed and undone - the model made again each time. tests: joints, linked, sketchfollow, holepattern pass.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 17:01:43 +02:00
superGeometry d53ddeaa76 Version 0.5.0 (asked for: "change the app version to whatever you think it should be, and push it").
It was 0.3.0 since 5 November, 465 changes ago. Since then: the pick-first line at the bottom as the whole interface, undo and redo inside every tool, sketch constraints and variables gone through, 3D splines, thread clearance, every export checked, building twice as fast on curved bodies. Half way to 1.0, not there: it has hardly been used by anyone but its maker, and not tried on many phones.
Shown in More, and sent with feedback.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 01:32:51 +02:00
superGeometry ef9fa8ddf5 Project links taken out entirely: Feedback adds the project only as its file in a code block (filled into the post when it fits Reddit's address, else copied for pasting; one too big for a post can't be added), and the app no longer opens supergeometry.app/#p=… links. Removed io/projectLink, io/linkHash, their test and the fflate dependency. Feedback still loads on first tap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:59:44 +02:00
superGeometry 4a6bee6a37 Project links about a third shorter (half for a small project): the long made-up ids become short ones in the link (and long unique ones again when it's opened, so two linked projects never mix), and it's compressed with a dictionary of the words every project file has. The first letter is the packing's version, so links made now keep opening later. Rounding off float noise was tried and left out: it changed what the fan rebuilt into. fflate (already installed with three's types) is now a dependency of its own. Test: tests/projectlink.test.ts builds every fixture project from its file and from its link (each in a fresh process) - same bodies, volumes and errors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:23:28 +02:00
superGeometry dd43842030 0.3.0: clean edge moves, round-face arrows, freeform Fill hole / Thickness, share, fonts
- Move edge on flat-faced bodies: only the edge's two corners move (faces that
  bend are split), so repeated moves no longer pile up extra geometry
- Offset arrows on round faces (a hole's wall) point out of the material, the
  way dragging moves them
- Freeform: Fill hole (tap an edge of the hole) and Thickness… from selection;
  a new surface plane starts with the move gimbal; Union with an open surface
  explains how to close it first
- Share button next to each export and Save (phones / tablets)
- Text: choose a font (Sans, Serif, Mono, Narrow, Bold caps, Script) or import
  a .ttf / .otf / .woff
- History: the ! folds out what's wrong; Items + History open by default on
  computers and tablets, History on phones; phones: File / More close Items
- More: Reset cache & update above About; wider project name box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 15:05:21 +02:00
superGeometry fd5ca47813 supergeometry.app
A free, open-source CAD modeler that runs in the browser on any device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:58:43 +02:00