{"id":35008726,"url":"https://github.com/layerdynamics/forge","last_synced_at":"2026-05-23T10:02:23.131Z","repository":{"id":328476031,"uuid":"1115131053","full_name":"LayerDynamics/forge","owner":"LayerDynamics","description":"Forge is an Electron-like desktop application framework using Rust and Deno. Apps are 100% TypeScript/JavaScript - no per-app Rust required. The runtime provides native system access through a secure, capability-based API.","archived":false,"fork":false,"pushed_at":"2025-12-20T03:22:07.000Z","size":13988,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T11:35:42.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LayerDynamics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T11:39:56.000Z","updated_at":"2025-12-20T03:18:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/LayerDynamics/forge","commit_stats":null,"previous_names":["layerdynamics/forge"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LayerDynamics/forge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fforge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fforge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fforge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fforge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LayerDynamics","download_url":"https://codeload.github.com/LayerDynamics/forge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fforge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33390972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T04:55:27.364Z","updated_at":"2026-05-23T10:02:23.125Z","avatar_url":"https://github.com/LayerDynamics.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Forge\n\n\u003e Build cross-platform desktop apps with TypeScript and native capabilities as well as wasm, bundle and weld support.\n\nForge is an Electron-like desktop application framework using **Rust** and **Deno**. Apps are 100% TypeScript - no per-app Rust required. The runtime provides native system access through a secure, capability-based API.\n\n**Status:** Alpha (v1.0.0p-steel-donut 🍩)\n\n## Features\n\n- **Native Performance** - Rust runtime runtime with system WebViews (not Chromium)\n- **TypeScript First** - Write app logic in TypeScript with full type support\n- **Capability Security** - Explicit permission model for system access\n- **Cross-Platform** - Build for macOS, Windows, and Linux from one codebase\n- **Multiple Frameworks** - React, Vue, Svelte, or vanilla JS templates\n- **Hot Reload** - Live updates during development\n\n## Installation\n\n### Quick Install (macOS/Linux)\n\n```bash\ncurl -fsSL https://forge-deno.com/install.sh | sh\n```\n\n### Manual Download\n\nDownload the latest release for your platform from [GitHub Releases](https://github.com/LayerDynamics/forge/releases) and extract to `~/.forge/bin/`:\n\n```bash\n# Linux\ntar -xzf forge-x86_64-unknown-linux-gnu.tar.gz -C ~/.forge/bin/\n\n# macOS\ntar -xzf forge-aarch64-apple-darwin.tar.gz -C ~/.forge/bin/\n\n# Add to PATH (add to ~/.bashrc or ~/.zshrc)\nexport PATH=\"$HOME/.forge/bin:$PATH\"\n```\n\n### From Source (for contributors)\n\n```bash\ncargo install --path crates/forge_cli\ncargo install --path crates/forge-runtime\n```\n\n## Quick Start\n\n```bash\n# Copy an example to start a new app\ncp -r examples/react-app my-app\ncd my-app\n\n# Run in development mode\nforge dev .\n\n# Build for production\nforge build .\nforge bundle .\n```\n\n## Host Modules\n\nAccess native capabilities through `runtime:*` imports:\n\n```typescript\n// Window management\nimport { openWindow, dialog, createTray } from \"runtime:ui\";\n\n// File system\nimport { readTextFile, writeTextFile, watch } from \"runtime:fs\";\n\n// Networking\nimport { fetchJson } from \"runtime:net\";\n\n// System operations\nimport { clipboard, notify, info } from \"runtime:sys\";\n\n// Process management\nimport { spawn } from \"runtime:process\";\n```\n\n## Project Structure\n\n```ascii\nmy-app/\n├── manifest.app.toml   # App config \u0026 capabilities\n├── deno.json           # Deno configuration\n├── src/\n│   └── main.ts         # Deno entry point\n└── web/\n    └── index.html      # UI entry point\n```\n\n## Example\n\n**src/main.ts:**\n\n```typescript\nimport { openWindow, windowEvents } from \"runtime:ui\";\n\nconst win = await openWindow({\n  url: \"app://index.html\",\n  title: \"My App\",\n  width: 800,\n  height: 600\n});\n\nfor await (const event of windowEvents()) {\n  console.log(\"Event:\", event.channel, event.payload);\n}\n```\n\n**web/index.html:**\n\n```html\n\u003cscript\u003e\n  window.host.send(\"hello\", { message: \"Hi!\" });\n  window.host.on(\"update\", (data) =\u003e console.log(data));\n  window.host.emit(\"ready\");\n\u003c/script\u003e\n```\n\n## Documentation\n\n- [Getting Started](docs/getting-started.md)\n- [API Reference](docs/api/)\n- [Architecture](docs/architecture.md)\n- [Examples](examples/)\n\n## Example Apps\n\n| App | Demonstrates |\n|-----|--------------|\n| [example-deno-app](examples/example-deno-app) | Minimal starter app |\n| [react-app](examples/react-app) | React with TypeScript and IPC |\n| [nextjs-app](examples/nextjs-app) | Next.js-style routing patterns |\n| [svelte-app](examples/svelte-app) | Svelte with TypeScript |\n| [todo-app](examples/todo-app) | File persistence, menus, IPC |\n| [text-editor](examples/text-editor) | Dialogs, context menus, file watching |\n| [weather-app](examples/weather-app) | HTTP fetch, notifications, tray |\n| [system-monitor](examples/system-monitor) | System info, multi-window |\n\n## Crate Structure\n\n### Core Crates\n\n| Crate | Description |\n|-------|-------------|\n| `forge-runtime` | Main runtime binary with extension registry |\n| `forge_cli` | CLI tool (dev, build, bundle, sign, icon, docs) |\n| `forge-weld` | Code generation framework for TypeScript bindings |\n| `forge-weld-macro` | Proc macros (#[weld_op], #[weld_struct], #[weld_enum]) |\n| `forge-etch` | Documentation generation and TypeScript parsing |\n| `forge-smelt` | Binary compilation and transpilation |\n\n### Extensions (runtime:* modules)\n\n| Extension | Module | Description |\n|-----------|--------|-------------|\n| `ext_window` | `runtime:window` | Window management, menus, trays, dialogs |\n| `ext_fs` | `runtime:fs` | File operations (read, write, watch, stat) |\n| `ext_ipc` | `runtime:ipc` | Deno ↔ Renderer communication |\n| `ext_net` | `runtime:net` | HTTP fetch, network operations |\n| `ext_sys` | `runtime:sys` | System info, clipboard, notifications |\n| `ext_process` | `runtime:process` | Spawn child processes |\n| `ext_app` | `runtime:app` | App lifecycle and info |\n| `ext_crypto` | `runtime:crypto` | Cryptographic operations |\n| `ext_storage` | `runtime:storage` | Persistent key-value storage |\n| `ext_database` | `runtime:database` | Database operations |\n| `ext_shell` | `runtime:shell` | Cross-platform shell commands |\n| `ext_wasm` | `runtime:wasm` | WebAssembly module loading |\n| `ext_bundler` | `runtime:bundler` | App bundling operations |\n| `ext_codesign` | `runtime:codesign` | Code signing (macOS/Windows/Linux) |\n| `ext_dock` | `runtime:dock` | macOS dock integration |\n| `ext_encoding` | `runtime:encoding` | Text encoding/decoding |\n| `ext_etcher` | `runtime:etcher` | Documentation generation |\n| `ext_image_tools` | `runtime:image_tools` | Image conversion (PNG, SVG, WebP, ICO) |\n| `ext_svelte` | `runtime:svelte` | SvelteKit integration |\n| `ext_web_inspector` | `runtime:web_inspector` | Chrome DevTools Protocol bridge |\n| `ext_weld` | `runtime:weld` | Runtime binding system access |\n| `ext_devtools` | `runtime:devtools` | Developer tools integration |\n| `ext_webview` | `runtime:webview` | WebView management |\n| `ext_updater` | `runtime:updater` | App update system |\n| `ext_monitor` | `runtime:monitor` | System monitoring |\n| `ext_display` | `runtime:display` | Display information |\n| `ext_log` | `runtime:log` | Logging operations |\n| `ext_trace` | `runtime:trace` | Tracing and diagnostics |\n| `ext_lock` | `runtime:lock` | File locking |\n| `ext_path` | `runtime:path` | Path manipulation |\n| `ext_protocol` | `runtime:protocol` | Custom protocol handlers |\n| `ext_os_compat` | `runtime:os_compat` | OS compatibility layer |\n| `ext_debugger` | `runtime:debugger` | Debugger integration |\n| `ext_shortcuts` | `runtime:shortcuts` | Keyboard shortcuts |\n| `ext_signals` | `runtime:signals` | Signal handling |\n| `ext_timers` | `runtime:timers` | Timer operations |\n\n## Development (For Contributors)\n\nThese commands are for developers contributing to the Forge framework itself.\nIf you're building apps with Forge, you only need Deno - just use the `forge` CLI commands shown above.\n\n```bash\n# Build everything\ncargo build --workspace\n\n# Run tests\ncargo test --workspace\n\n# Run the example app\ncargo run -p forge_cli -- dev examples/example-deno-app\n\n# Build with release optimizations\ncargo build --workspace --release\n```\n\n## Requirements\n\n**For App Developers:**\n\n- Deno 1.40+\n\n**For Forge Contributors:**\n\n- Rust 1.70+\n- Deno 1.40+\n\n## License\n\nMIT\n\n## Disclaimer\n\nThis is alpha software. APIs may change. Not recommended for production use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayerdynamics%2Fforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fforge/lists"}