{"id":42699834,"url":"https://github.com/fastn-stack/spatial","last_synced_at":"2026-01-29T14:15:42.243Z","repository":{"id":329112335,"uuid":"1116050792","full_name":"fastn-stack/spatial","owner":"fastn-stack","description":"spatial support in fastn","archived":false,"fork":false,"pushed_at":"2025-12-28T10:55:05.000Z","size":2509,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T01:35:44.634Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastn-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-14T05:00:10.000Z","updated_at":"2025-12-28T10:55:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fastn-stack/spatial","commit_stats":null,"previous_names":["fastn-stack/spatial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fastn-stack/spatial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Fspatial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Fspatial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Fspatial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Fspatial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastn-stack","download_url":"https://codeload.github.com/fastn-stack/spatial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Fspatial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28879192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-01-29T14:15:41.126Z","updated_at":"2026-01-29T14:15:42.236Z","avatar_url":"https://github.com/fastn-stack.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastn - Spatial/XR Application Framework\n\nBuild spatial and XR applications in Rust with a RealityKit-inspired API. Write once, run on native (macOS/Windows/Linux) and web (WebGPU/WebXR).\n\n## Quick Start\n\n```rust\n// lib.rs\nuse fastn::{ModelEntity, MeshResource, SimpleMaterial, RealityViewContent};\n\n#[fastn::app]\nfn app(content: \u0026mut RealityViewContent) {\n    let cube = ModelEntity::new(\n        MeshResource::generate_box(0.5),\n        SimpleMaterial::new().color(0.8, 0.2, 0.2)\n    );\n    content.add(cube);\n}\n```\n\n```rust\n// main.rs\nfn main() {\n    fastn::main();\n}\n```\n\n## Commands\n\n```bash\ncargo run              # Run native shell (default)\ncargo run -- build     # Build for web (creates dist/)\ncargo run -- serve     # Build and serve web version\n```\n\n## Project Structure\n\n```\nmy-app/\n  Cargo.toml\n  src/\n    lib.rs             # Your app code with #[fastn::app]\n    main.rs            # Just calls fastn::main()\n  assets/              # Optional: GLB models, textures, etc.\n  index.html.tmpl      # Optional: custom HTML template\n```\n\n### Cargo.toml\n\n```toml\n[package]\nname = \"my-app\"\nedition = \"2024\"\n\n[lib]\ncrate-type = [\"cdylib\"]\n\n[[bin]]\nname = \"my-app\"\npath = \"src/main.rs\"\n\n[dependencies]\nfastn = { git = \"https://github.com/fastn-stack/spatial\" }\n```\n\n## Custom HTML Template\n\nCreate `index.html.tmpl` in your project root to customize the web shell:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003e{{APP_NAME}}\u003c/title\u003e\n    \u003c!-- Your custom styles --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ccanvas id=\"canvas\" data-wasm=\"{{WASM_FILE}}\"\u003e\u003c/canvas\u003e\n    \u003c!-- Standard shell scripts --\u003e\n    \u003cscript src=\"shell-common.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n        // Platform detection and initialization\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nAvailable placeholders:\n- `{{APP_NAME}}` - Your crate name\n- `{{WASM_FILE}}` - Path to the WASM file (includes hash for cache busting)\n\n## Examples\n\nSee the [examples/](examples/) directory:\n\n- **cube** - Simple red cube using programmatic mesh generation\n- **cube-glb** - Loading a 3D model from a GLB file\n\nRun an example:\n```bash\ncargo run -p cube          # Native\ncargo run -p cube -- build # Web\n```\n\n## Architecture\n\n- **fastn** - Core API crate (RealityKit-like types and #[fastn::app] macro)\n- **fastn-cli** - CLI tools embedded in fastn (build/serve/run commands)\n- **fastn-shell** - Native runtime (WebGPU + wgpu)\n- **fastn-shell-web** - Web runtime (WebGPU or WebGL+WebXR)\n\n## License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastn-stack%2Fspatial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastn-stack%2Fspatial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastn-stack%2Fspatial/lists"}