{"id":48590592,"url":"https://github.com/forge18/writ","last_synced_at":"2026-04-08T19:03:25.120Z","repository":{"id":343057103,"uuid":"1172870527","full_name":"forge18/writ","owner":"forge18","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-08T18:50:11.000Z","size":1304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-08T20:38:09.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/forge18.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2026-03-04T19:20:09.000Z","updated_at":"2026-03-08T18:50:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/forge18/writ","commit_stats":null,"previous_names":["forge18/writ"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/forge18/writ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge18%2Fwrit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge18%2Fwrit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge18%2Fwrit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge18%2Fwrit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forge18","download_url":"https://codeload.github.com/forge18/writ/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge18%2Fwrit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31569401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-04-08T19:03:08.953Z","updated_at":"2026-04-08T19:03:25.112Z","avatar_url":"https://github.com/forge18.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Writ\n\n[![CI](https://github.com/forge18/writ/actions/workflows/ci.yml/badge.svg)](https://github.com/forge18/writ/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/forge18/writ/branch/main/graph/badge.svg)](https://codecov.io/gh/forge18/writ)\n[![alpha](https://img.shields.io/badge/status-alpha-orange)](https://github.com/forge18/writ)\n[![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)\n\n\u003e **⚠ Alpha:** Writ is not production-ready. APIs will change, features are incomplete, and there are known bugs. Use at your own risk.\n\nNative speed. Familiar syntax. Scripting for games.\n\nWrit is a statically typed scripting language designed for game developers. It embeds directly into Rust with near-zero interop cost — no marshalling, no runtime overhead, no fighting the borrow checker. Familiar to anyone who has written GDScript or C#. Fast enough to run in a real-time game loop. Write game logic in Writ. Let Rust handle the rest.\n\n---\n\n## What it looks like\n\n```writ\nstruct Vec2 {\n    x: float\n    y: float\n\n    func length() -\u003e float {\n        return sqrt(x * x + y * y)\n    }\n}\n\nclass Player extends Entity {\n    public health: float = 100.0\n        set(value) { field = clamp(value, 0.0, 100.0) }\n\n    public func takeDamage(amount: float) {\n        health -= amount\n        if health \u003c= 0 { die() }\n    }\n\n    func respawn() {\n        yield seconds(3.0)   // wait without blocking the host\n        health = 100.0\n        setActive(true)\n    }\n}\n```\n\n---\n\n## Embedding\n\n```rust\nuse writ::Writ;\n\nlet mut vm = Writ::new();                           // create a sandboxed VM\nvm.set_tick_source(|| engine.delta_time());         // drive coroutine timers from your engine\nvm.load(\"scripts/game.writ\").unwrap();              // compile and load a script\nvm.call(\"onStart\", \u0026[]).unwrap();                   // call any top-level function by name\n```\n\n---\n\n## Features\n\n- **Statically typed** — catch mistakes at compile time, not during a play session\n- **Clean Rust interop** — derive `WritObject` on any Rust struct; no wrappers, no copying\n- **Sandboxed by default** — scripts start with zero access; register exactly what they can call\n- **Hot reload** — swap bytecode mid-session without restarting; VM state and coroutines survive\n- **Coroutines** — `yield` suspends a function and resumes it next tick; no threads, no callbacks\n- **Standard library** — math, strings, collections, regex, noise, tweening, timers; each module toggleable per VM\n\n---\n\n## Installation\n\n```toml\n[dependencies]\nwrit = { git = \"https://github.com/forge18/writ\" }\n```\n\n---\n\n## Editor Support\n\nExtensions for **[VS Code](extensions/vscode-writ)**, **[Vim / Neovim](extensions/vim-writ)**, and **[JetBrains IDEs](extensions/jetbrains-writ)** — syntax highlighting, LSP diagnostics \u0026 completions, and hot reload.\n\n---\n\n## Documentation\n\n**[forge18.github.io/writ](https://forge18.github.io/writ)** — language reference, embedding guide, examples, and stdlib docs.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge18%2Fwrit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforge18%2Fwrit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge18%2Fwrit/lists"}