FluidKit - write Python, get SvelteKit remote functions (feedback welcome) #15508
AswanthManoj
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've always been more comfortable in Python than Node/TypeScript, but I love how Svelte handles templating and how SvelteKit thinks about data flow. When remote functions dropped, the
query/form/command/prerendermodel mapped so naturally to Python decorators that I had to try building it.FluidKit lets you write this:
It reflects on your Python functions, registers them as FastAPI endpoints, and generates
.remote.tsfiles, so on the Svelte side it's just normal remote functions:Types come from Python annotations and Pydantic models → TypeScript interfaces. Single-flight mutations, cookie forwarding, file uploads, redirects all wired up.
pip install fluidkit→fluidkit init→fluidkit devto get started, no system Node needed.Still early, would love feedback from people who've been using remote functions, especially around patterns I might be handling wrong or things I should support differently.
Website
Docs
GitHub
PyPI
Beta Was this translation helpful? Give feedback.
All reactions