example-deno-app
The simplest Forge app - demonstrates basic window creation and IPC communication.
Overview
This example shows:
- Minimal
manifest.app.tomlconfiguration - Basic window creation
- Deno ↔ WebView IPC pattern
Project Structure
example-deno-app/├── manifest.app.toml├── deno.json├── src/│ └── main.ts└── web/ └── index.htmlRunning
forge dev examples/example-deno-appmanifest.app.toml
[app]name = "ExampleDenoApp"identifier = "com.example.denoapp"version = "0.1.0"
[windows]width = 960height = 600resizable = true
[capabilities.channels]allowed = ["*"] # Allow all IPC channelsKey Concepts
Window Configuration
The [windows] section defines default window properties:
width/height- Initial dimensionsresizable- Whether user can resize
IPC Channels
The capabilities.channels.allowed = ["*"] permits all IPC communication between Deno and WebView.
Use As Template
This is the ideal starting point for new apps:
cp -r examples/example-deno-app my-app# Edit manifest.app.toml with your app detailsforge dev my-app