Skip to content

feat(frontend): add svelte#4532

Open
jog1t wants to merge 1 commit intomainfrom
03-30-feat_frontend_add_svelte
Open

feat(frontend): add svelte#4532
jog1t wants to merge 1 commit intomainfrom
03-30-feat_frontend_add_svelte

Conversation

@jog1t
Copy link
Copy Markdown
Contributor

@jog1t jog1t commented Mar 30, 2026

This pull request introduces the new @rivetkit/svelte package, providing a Svelte 5 adapter for RivetKit actors with Svelte-first ergonomics and robust action middleware. The changes include the package manifest, comprehensive documentation, initial type-checking support, and a full suite of tests for action middleware. Additionally, the project configuration is updated to recognize .svelte files and apply appropriate linting rules for Svelte and similar frameworks.

New Svelte Integration Package

  • Added the @rivetkit/svelte package, including its package.json, with Svelte 5 peer dependency, build/test/typecheck scripts, and exports for both main and testing subpaths. This package provides Svelte-first APIs for RivetKit actors and integrates with Svelte runes/reactivity.
  • Included a detailed AGENTS.md describing the package's architecture, API, usage patterns, SSR safety, action middleware design, and integration expectations for consumers.
  • Added a type-checking placeholder component (noop.svelte) to ensure Svelte type checks pass in the workspace.

Testing and Quality

  • Implemented a comprehensive test suite for action middleware in createReactiveActor, covering state tracking, error handling, timeouts, connection guards, lifecycle callbacks, and cascading defaults.

Project Configuration Updates

  • Updated biome.json to:
    • Recognize .svelte files in the rivetkit-typescript workspace for linting and formatting.
    • Add custom linting rules for .svelte, .astro, and .vue files, disabling certain rules that are not compatible or necessary for these file types.

These changes lay the groundwork for first-class Svelte support in RivetKit, with strong testing and clear documentation to guide adoption and extension.

Important

This feature was entirely contributed by @brittianwarner. Thank you so much for hard work!

@railway-app
Copy link
Copy Markdown

railway-app bot commented Mar 30, 2026

🚅 Deployed to the rivet-pr-4532 environment in rivet-frontend

Service Status Web Updated (UTC)
frontend-cloud 😴 Sleeping (View Logs) Web Mar 30, 2026 at 8:22 pm
frontend-inspector 😴 Sleeping (View Logs) Web Mar 30, 2026 at 8:22 pm
website 😴 Sleeping (View Logs) Web Mar 30, 2026 at 8:21 pm
kitchen-sink ❌ Build Failed (View Logs) Web Mar 30, 2026 at 8:18 pm
mcp-hub ✅ Success (View Logs) Web Mar 30, 2026 at 8:11 pm
ladle ❌ Build Failed (View Logs) Web Mar 30, 2026 at 8:11 pm

Copy link
Copy Markdown
Contributor Author

jog1t commented Mar 30, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Co-authored-by: brittianwarner <bjwarner13@gmail.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 30, 2026

More templates

@rivetkit/cloudflare-workers

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/cloudflare-workers@4532

@rivetkit/framework-base

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/framework-base@4532

@rivetkit/next-js

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/next-js@4532

@rivetkit/react

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/react@4532

rivetkit

pnpm add https://pkg.pr.new/rivet-dev/rivet/rivetkit@4532

@rivetkit/sql-loader

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/sql-loader@4532

@rivetkit/sqlite-vfs

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/sqlite-vfs@4532

@rivetkit/svelte

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/svelte@4532

@rivetkit/traces

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/traces@4532

@rivetkit/workflow-engine

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/workflow-engine@4532

@rivetkit/virtual-websocket

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/virtual-websocket@4532

@rivetkit/engine-runner

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/engine-runner@4532

@rivetkit/engine-runner-protocol

pnpm add https://pkg.pr.new/rivet-dev/rivet/@rivetkit/engine-runner-protocol@4532

commit: a27bc7c

@jog1t jog1t force-pushed the 03-30-feat_frontend_add_svelte branch from cb7115c to a27bc7c Compare March 30, 2026 20:18
@jog1t jog1t marked this pull request as ready for review March 30, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant