{"_id":"@caravela/svelte","_rev":"3-718f5158b6fcedd1150a7d42e7a3c573","name":"@caravela/svelte","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.1":{"name":"@caravela/svelte","version":"0.1.1","author":{"name":"Rui Sousa"},"license":"MIT","_id":"@caravela/svelte@0.1.1","maintainers":[{"name":"rsousacode","email":"rsousa@codeliturgy.com"}],"homepage":"https://github.com/rsousacode/caravela_svelte#readme","bugs":{"url":"https://github.com/rsousacode/caravela_svelte/issues"},"dist":{"shasum":"04f29ae528dc10b1617739d7944e0ef305cce907","tarball":"https://registry.npmjs.org/@caravela/svelte/-/svelte-0.1.1.tgz","fileCount":26,"integrity":"sha512-Csh8Zkaa45X9LFtaeLXJ2jd7I2zIAO5t0z4QVy3ZEeq/a4uR1saI9r8NFl7u5UY11HpOgXy4rM7LbL+e7pqYmA==","signatures":[{"sig":"MEYCIQDc6Vk9GaHLPk7A6invnnXk7u0hSGE/SUU6Cy1Ke4XkPQIhANLLszd1C7T8lZSsyJIkRglXet496FG1wYgV7LDgiFZp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109816},"type":"module","types":"./assets/js/caravela_svelte/types.d.ts","exports":{".":{"types":"./assets/js/caravela_svelte/types.d.ts","import":"./assets/js/caravela_svelte/index.ts"},"./rest":{"import":"./assets/js/caravela_svelte/rest/index.ts"},"./vitePlugin":"./assets/js/caravela_svelte/vite_plugin.js"},"gitHead":"2c6934be69750fc06f10b42ef7f4e0b7cfd3b183","scripts":{"format":"npx prettier --write ."},"_npmUser":{"name":"rsousacode","email":"rsousa@codeliturgy.com"},"repository":{"url":"git://github.com/rsousacode/caravela_svelte.git","type":"git"},"_npmVersion":"11.12.1","description":"Svelte + Phoenix with pluggable render modes (LiveView WebSocket or Inertia-style HTTP).","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.53.7","prettier":"^3.8.1","prettier-plugin-svelte":"^3.5.1"},"_npmOperationalInternal":{"tmp":"tmp/svelte_0.1.1_1776635317510_0.05156246286497668","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@caravela/svelte","version":"0.1.2","author":{"name":"Rui Sousa"},"license":"MIT","_id":"@caravela/svelte@0.1.2","maintainers":[{"name":"rsousacode","email":"rsousa@codeliturgy.com"}],"homepage":"https://github.com/rsousacode/caravela_svelte#readme","bugs":{"url":"https://github.com/rsousacode/caravela_svelte/issues"},"dist":{"shasum":"6859ddb327f963071c7e94111cf87ee77a6c7cc7","tarball":"https://registry.npmjs.org/@caravela/svelte/-/svelte-0.1.2.tgz","fileCount":26,"integrity":"sha512-1jZMBuW9q1WrQfiFag3UMVXcQqVewzcdr7sOTJ/79v0wrMteL8J1/uYFx4IFMRI7rGWRYKg080C3cwZK4FzURg==","signatures":[{"sig":"MEUCIFSHUSyXhtKwk46st11r8UJWvOFYPp3AP9CPEKMnrvjvAiEA33IZCQTvlTDG9hJGpme4fG+e87+/Z2XHeCR7ubvkeOk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@caravela%2fsvelte@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":109816},"type":"module","types":"./assets/js/caravela_svelte/types.d.ts","exports":{".":{"types":"./assets/js/caravela_svelte/types.d.ts","import":"./assets/js/caravela_svelte/index.ts"},"./rest":{"import":"./assets/js/caravela_svelte/rest/index.ts"},"./vitePlugin":"./assets/js/caravela_svelte/vite_plugin.js"},"gitHead":"113a33246ffa315f0b71c4b1d7c469589bac66f5","scripts":{"format":"npx prettier --write ."},"_npmUser":{"name":"rsousacode","email":"rsousa@codeliturgy.com"},"repository":{"url":"git://github.com/rsousacode/caravela_svelte.git","type":"git"},"_npmVersion":"10.8.2","description":"Svelte + Phoenix with pluggable render modes (LiveView WebSocket or Inertia-style HTTP).","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.53.7","prettier":"^3.8.1","prettier-plugin-svelte":"^3.5.1"},"_npmOperationalInternal":{"tmp":"tmp/svelte_0.1.2_1776636328151_0.21096541288885473","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@caravela/svelte","version":"0.1.3","type":"module","description":"Svelte + Phoenix with pluggable render modes (LiveView WebSocket or Inertia-style HTTP).","license":"MIT","types":"./assets/js/caravela_svelte/types.d.ts","author":{"name":"Rui Sousa"},"scripts":{"format":"npx prettier --write ."},"devDependencies":{"prettier":"^3.8.1","prettier-plugin-svelte":"^3.5.1","svelte":"^5.53.7"},"exports":{".":{"import":"./assets/js/caravela_svelte/index.ts","types":"./assets/js/caravela_svelte/types.d.ts"},"./rest":{"import":"./assets/js/caravela_svelte/rest/index.ts"},"./vitePlugin":"./assets/js/caravela_svelte/vite_plugin.js"},"repository":{"type":"git","url":"git://github.com/rsousacode/caravela_svelte.git"},"_id":"@caravela/svelte@0.1.3","gitHead":"bcd35ca92d2456f1425f3f0b0e6e2043997594aa","bugs":{"url":"https://github.com/rsousacode/caravela_svelte/issues"},"homepage":"https://github.com/rsousacode/caravela_svelte#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-FV9T6PModNArLJdrXqzsV5wQmYcS8KdlyO4MxYLCkxerHh/7T6O5Bv4D2ZX4pAujKv2cG0l51fBfJE6Pt6hb6Q==","shasum":"ee5ee2193a284edf586db0c685d90baf9b4909c3","tarball":"https://registry.npmjs.org/@caravela/svelte/-/svelte-0.1.3.tgz","fileCount":26,"unpackedSize":109816,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@caravela%2fsvelte@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFHMrKJnvWiSYI1tQ6tU6Wm4c9OBE4/yZWJ6KVjw8gCFAiBLsoueQbKRlCFUP939jeBze396pYic0EZiLHo3nXGDCA=="}]},"_npmUser":{"name":"rsousacode","email":"rsousa@codeliturgy.com"},"directories":{},"maintainers":[{"name":"rsousacode","email":"rsousa@codeliturgy.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte_0.1.3_1776638551771_0.2849051802765188"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-19T21:48:37.380Z","modified":"2026-04-19T22:42:32.198Z","0.1.1":"2026-04-19T21:48:37.650Z","0.1.2":"2026-04-19T22:05:28.293Z","0.1.3":"2026-04-19T22:42:31.937Z"},"bugs":{"url":"https://github.com/rsousacode/caravela_svelte/issues"},"author":{"name":"Rui Sousa"},"license":"MIT","homepage":"https://github.com/rsousacode/caravela_svelte#readme","repository":{"type":"git","url":"git://github.com/rsousacode/caravela_svelte.git"},"description":"Svelte + Phoenix with pluggable render modes (LiveView WebSocket or Inertia-style HTTP).","maintainers":[{"name":"rsousacode","email":"rsousa@codeliturgy.com"}],"readme":"# CaravelaSvelte\n\n**Svelte + Phoenix with pluggable render modes.**\n\n`CaravelaSvelte` lets you mount the same Svelte component over two\ndifferent transports, chosen per route:\n\n- **`:live`** — LiveView WebSocket (diff-based, real-time). This is\n  today's `live_svelte` story.\n- **`:rest`** — Inertia-style HTTP (first-load HTML + SPA navigation\n  over JSON). Cacheable, offline-tolerant, no persistent socket.\n\nSame components. Same prop contract. Same SSR pipeline. Same client\nbundle. Per-route mode selection.\n\n```elixir\nuse CaravelaSvelte.Router\n\ncaravela_live \"/dashboard\", DashboardLive                   # real-time (LiveView)\ncaravela_rest \"/library/books\", BookController              # classic CRUD\ncaravela_rest \"/metrics\", MetricsController, realtime: true # CRUD + SSE push\n```\n\n## Documentation\n\n- [Render modes](docs/render_modes.md) — overview + pick-a-mode\n  decision tree\n- [Getting started](docs/getting_started.md) — installation +\n  first page in each mode\n- [`:live` mode reference](docs/live.md)\n- [`:rest` mode reference](docs/rest.md) — router, controller,\n  client helpers, SSE real-time, polling fallback\n- [Caravela integration](docs/caravela.md) — field-access,\n  changeset errors, entity-scoped SSE topics\n\n## Status\n\n**Phase C.1 — Caravela generator integration.** Transports are\ncomplete: `:live` (LiveView) and `:rest` (Inertia-compatible HTTP)\nboth ship, router macros (`caravela_live` / `caravela_rest`) pick\nper-route, and opt-in SSE real-time for `:rest` is wired. The\ncaravela_svelte-side enrichment helpers\n(`CaravelaSvelte.Caravela`) are live; the matching Caravela\ngenerator templates are the in-progress part of C.1.\n\nSee the [phase plan](https://github.com/rsousacode/caravela_plan/blob/master/phoenix/render_modes.md)\nfor the roadmap.\n\n## Relation to `live_svelte`\n\nCaravelaSvelte is a fork of [live_svelte](https://github.com/woutdp/live_svelte)\nby Wout De Puysseleir. See [NOTICE.md](NOTICE.md) for attribution\nand [UPSTREAM.md](UPSTREAM.md) for the sync policy.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","readmeFilename":"README.md"}