Temel döngü: bir şekil bırak, boyutlandır, döndür, başka bir şekli oyuk yap, sonucu grupla, gerekirse DWG/DXF/STEP/STL/OBJ/GLB içe aktar ve modeli dışa aktar.
Projeler varsayılan olarak tarayıcıda saklanır. İsterseniz YakNet hesabınızla buluta yedekleyebilirsiniz; bulut isteğe bağlıdır ve yerel kopya her zaman önceliklidir. Ağır CAD kurulumu gerekmez.
Press **O** in the editor to switch between perspective and orthographic projection. The current view direction and framing are preserved when switching.
SketchForge is local-first in both modes. The app files may be served from a computer or server, but projects stay in each user's browser storage. STL and OBJ exports download through the user's browser. SketchForge does not upload models to a SketchForge cloud service.
GitHub releases include macOS DMG files for Intel (`x64`) and Apple Silicon (`arm64`) Macs. Choose the file that matches your Mac.
1. Open the downloaded DMG file.
2. Drag `SketchForge.app` to the `Applications` folder.
3. Eject the DMG file.
4. Control-click `SketchForge.app` in `Applications`.
5. Select **Open**, then select **Open** again.
Unsigned releases have `-unsigned` in the file name. macOS shows a Gatekeeper warning for these releases. If macOS does not show the **Open** option, run this command in Terminal:
Docker is the easiest way to run SketchForge for a classroom, workshop, or FabLab. It packages the build tools, Next.js server, health check, persistent shared-project storage, and restart behavior together.
The container listens on port `3000`. It also accepts connections on port `80` for backward compatibility with older UnRAID templates and forwards them to the same server. New Docker and UnRAID configurations should use container port `3000`.
Docker deployments include a shared `.skf` project library. Private projects still autosave in each user's browser. The **Shared** dashboard section lists files stored in `/data/projects`, and **Export → SKF → Save to shared** writes the current project there. Revision-matched PNG previews are stored beside the library in `/data/projects/.thumbnails` and appear on shared project cards.
Compose uses the persistent `sketchforge-shared-projects` volume by default. To use a directory on the Docker host instead, set `SKETCHFORGE_SHARED_PROJECTS_VOLUME` before starting Compose:
SKETCHFORGE_SHARED_PROJECTS_VOLUME=/srv/sketchforge-projects docker compose -f deploy/docker/compose.yaml up --build -d
```
Opening a shared file creates a private local working copy. Saving back checks the server revision first; if another user has changed the file, SketchForge refuses to overwrite it and asks the user to reload or save with another name. This is shared file storage, not simultaneous live editing.
The home dashboard's **Settings** panel checks the official version and displays an update prompt when a newer version is available. It never installs an update automatically. Choosing **Not now** dismisses only that version, so a later release will be offered again.
If you used Git, update the existing checkout in place. You do not need to remove or download the repository again:
Application updates do not clear private projects stored in the browser. Docker shared projects remain in the existing `sketchforge-shared-projects` volume or the host directory configured with `SKETCHFORGE_SHARED_PROJECTS_VOLUME`. Never add `--volumes` or `-v` to an update command.
For an administrator-managed one-click installation, configure all of the following server variables:
-`SKETCHFORGE_UPDATE_TRIGGER_URL`: an internal HTTPS endpoint that pulls/recreates only the SketchForge application while retaining its existing project volume.
-`SKETCHFORGE_UPDATE_ADMIN_KEY`: the key the administrator must enter in the confirmation dialog.
-`SKETCHFORGE_UPDATE_TRIGGER_TOKEN` (optional): a bearer token SketchForge sends only to the internal update service.
Without an administrator-managed trigger, the confirmation opens these safe update instructions instead of granting the web container access to the Docker socket.
- **`docker` is not recognized**: install Docker Desktop, open it, and try again.
- **Docker says the daemon is not running**: Docker Desktop is closed or still starting.
- **Port already in use**: use another port, for example `8080`.
- **Other computers cannot connect**: check that they are on the same network and that the server firewall allows the chosen port.
- **The page opens but old files appear**: stop and rebuild with `docker compose -f deploy/docker/compose.yaml down`, then `docker compose -f deploy/docker/compose.yaml up --build -d`.
If you already have Node.js installed, the repository also includes shortcuts:
```bash
npm run docker:up
npm run docker:down
```
## Local Development
Use this path if you want to edit SketchForge's code.
SketchForge is licensed under the **GNU Affero General Public License v3.0 only** (`AGPL-3.0-only`). If you modify SketchForge and let users interact with the modified version over a network, you must offer those users the corresponding source code under the same license. See [LICENSE](LICENSE).
The application exposes a **Source** link in the dashboard. Operators distributing or hosting a modified build should set `NEXT_PUBLIC_SOURCE_CODE_URL` at build time to the public URL containing that build's complete corresponding source code.
SketchForge includes a local MCP server for AI clients that support MCP tools. It lets an agent inspect and control a live local editor tab: list open editors, read the scene, create/update/select objects, group/cut/separate parts, list CAD edge ids, apply chamfer or fillet, inspect errors, and capture viewport images.
This is for local development only. Run SketchForge with `npm run dev`; the MCP route is disabled in production builds and Docker/static hosting.
Then add an MCP server entry to your Codex config. Use [`docs/mcp/codex-config.example.toml`](docs/mcp/codex-config.example.toml) as the template and replace the script path with the absolute path on your machine. Restart Codex after changing the config.
Once installed, ask Codex:
```text
Use $sketchforge-mcp-skill to list my open SketchForge editors and inspect the current scene.
```
### Claude
Claude does not use Codex `SKILL.md` files, but it can use the same SketchForge MCP server. Add the server to Claude Desktop's MCP config using [`docs/mcp/claude-desktop-config.example.json`](docs/mcp/claude-desktop-config.example.json) as the template, replacing the script path with the absolute path on your machine.
After restarting Claude Desktop, ask:
```text
Use the SketchForge MCP tools to list open editors, inspect the scene, and modify the selected object.
```
The main tool names are `sketchforge_list_editors`, `sketchforge_read_scene`, `sketchforge_list_objects`, `sketchforge_create_shape`, `sketchforge_update_object`, `sketchforge_list_edges`, `sketchforge_apply_edge_treatment`, and `sketchforge_capture_image`.
The cloud API runs on Apache/Laragon with PHP and MySQL.
1. Copy `.env.example` to `.env` and fill in the database and OAuth values.
2. Install PHP dependencies with `composer install`.
3. Create or update the database schema with `php database/migrate.php`.
4. Build and copy the static site with `npm run export`.
Schema changes are applied only by the migration script. `SNAPCAD_AUTO_MIGRATE=true` is a one-off escape hatch for a fresh local database and should stay `false` in production. The `database/` directory is blocked from HTTP access by `.htaccess`.
## Lisans
SnapCAD Studio, **GNU Affero General Public License v3.0 (AGPL-3.0-only)** altında lisanslanmıştır. Ayrıntılar için [LICENSE](LICENSE) dosyasına bakın.
Bu proje GNU LibreDWG (GPL-3.0) ve OpenCascade (LGPL-2.1) gibi açık kaynak bileşenler kullanır. AGPL-3.0 bu bileşenlerle uyumludur. Uygulamayı bir sunucuda değiştirerek çalıştırırsanız, AGPL-3.0 gereği kullanıcılara değiştirilmiş kaynak kodunu sunmanız gerekir.