{"id":50512904,"url":"https://github.com/vmvarela/silvia-castillo","last_synced_at":"2026-06-02T21:32:53.706Z","repository":{"id":360021827,"uuid":"1248349349","full_name":"vmvarela/silvia-castillo","owner":"vmvarela","description":"Juego educativo de iptables — Tauri v2 + SvelteKit + Rust","archived":false,"fork":false,"pushed_at":"2026-05-24T15:56:42.000Z","size":301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T17:29:27.751Z","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/vmvarela.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-24T14:26:23.000Z","updated_at":"2026-05-24T15:56:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vmvarela/silvia-castillo","commit_stats":null,"previous_names":["vmvarela/silvia-castillo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vmvarela/silvia-castillo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fsilvia-castillo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fsilvia-castillo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fsilvia-castillo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fsilvia-castillo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmvarela","download_url":"https://codeload.github.com/vmvarela/silvia-castillo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fsilvia-castillo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33838216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-02T21:32:52.704Z","updated_at":"2026-06-02T21:32:53.699Z","avatar_url":"https://github.com/vmvarela.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏰 Castillo de Silvia\n\nAprende iptables protegiendo el castillo de la princesa Silvia de mensajeros peligrosos.\n\n## Qué es esto\n\nUn juego de escritorio (Mac / Linux / Windows) donde escribes comandos `iptables` reales en una consola para superar 8 misiones. Cada nivel tiene una historia, unos patitos que necesitan protección, y unos guardias (cadenas INPUT/OUTPUT/FORWARD) que obedecen tus reglas.\n\n## Descargar\n\n[Releases en GitHub →](https://github.com/tu-usuario/silvia-castillo/releases)\n\n| Sistema | Archivo |\n|---------|---------|\n| macOS | `.dmg` |\n| Linux | `.AppImage` |\n| Windows | `.msi` |\n\n\u003e Primera vez en macOS: botón derecho → Abrir (app sin firma).  \n\u003e Primera vez en Windows: \"Más información\" → \"Ejecutar de todas formas\".\n\n## Desarrollo\n\n### Requisitos\n\n- [Rust](https://rustup.rs/) 1.77+\n- Node 20+\n- En macOS: Xcode Command Line Tools (`xcode-select --install`)\n- En Linux: `libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf`\n- En Windows: [WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/)\n\n### Arrancar en modo dev\n\n```bash\nnpm install\nnpm run tauri dev\n```\n\n### Compilar para distribución\n\n```bash\nnpm run tauri build\n```\n\n### Tests\n\n```bash\n# Tests Rust (parser + engine)\ncd src-tauri \u0026\u0026 cargo test\n\n# Comprobación de tipos Svelte\nnpm run check\n\n# Regenerar tipos TypeScript desde Rust\nnpm run sync-types\n```\n\n## Arquitectura\n\n```\nsilvia-castillo/\n├── src-tauri/          Backend Rust (Tauri)\n│   └── src/\n│       ├── engine/     Parser iptables + ruleset + pipeline\n│       ├── levels/     Niveles YAML embebidos\n│       ├── translate/  Humanizador en español\n│       ├── progress/   Persistencia JSON local\n│       ├── commands.rs Comandos Tauri (#[tauri::command])\n│       └── state.rs    AppState (Mutex\u003cRuleset\u003e)\n└── src/                Frontend SvelteKit (SPA)\n    ├── lib/\n    │   ├── tauri/      Wrappers invoke() tipados\n    │   ├── stores/     Estado reactivo Svelte 5\n    │   └── components/ Castle, NetworkDiagram, Console, ...\n    └── routes/\n        ├── +page.svelte        Menú principal\n        └── level/[n]/          Pantalla de nivel\n```\n\nEl frontend nunca toca el ruleset directamente: todo cambio va a través de `invoke('execute_command')` y el backend Rust devuelve el estado nuevo. Cero drift entre motor y UI.\n\n## Niveles\n\nLos niveles son ficheros YAML en `src-tauri/src/levels/data/`. Para añadir uno, crea `NN-nombre.yaml` — sin codegen ni registro manual.\n\n## Licencia\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmvarela%2Fsilvia-castillo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmvarela%2Fsilvia-castillo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmvarela%2Fsilvia-castillo/lists"}