Skip to content

dashboard#10

Draft
gwennlbh wants to merge 1 commit intomainfrom
dashboard
Draft

dashboard#10
gwennlbh wants to merge 1 commit intomainfrom
dashboard

Conversation

@gwennlbh
Copy link
Member

@gwennlbh gwennlbh commented Sep 21, 2025

for now, we either have SSR'd pages but no reactivity (handmade plugin) OR no SSR but reactivity (bun's official plugin)

thing is i would want to directly server-render from the DB, not have to make a XHR roundtrip via API which would be dumb

another alterntive is a full sveltekit project, there's some interesting work. main hurdle is sharing the drizzle schema, since we're using bun:sqlite as the driver. Using better-sqlite3 and node adapter for sveltekit results in loss of type info because the schema is not type-compatible between DB drivers, but I saw a (unofficial) bun adapter for sveltekit, so maybe we can use bun:sqlite on the svelte kit server side anyways. im excited to try out sveltekit remote functions so maybe ill go with that

but a standalone, Bun.served'd dashboard would be kinda neat (and lightweight), and I might have the opportunity to contribute to oven-sh/bun directly which would be nice, so idk. i feel like ssr for the official plugin is achievalbe (and its certainly not a roadmap prority for the bun team)

other possibility: sveltekit app with adapter-node, and import the built handler to use it on a custom server, see https://svelte.dev/docs/kit/adapter-node#Custom-server

@gwennlbh gwennlbh changed the title try with Bun.serve + standalone Svelte dashboard Sep 21, 2025
@github-actions

This comment was marked as resolved.

@github-actions
Copy link

🤖 Autorebase failed

The automatic rebase of this PR failed. This could be due to:

  • Merge conflicts that need manual resolution
  • The PR branch being out of sync with the base branch
  • Other git-related issues

Please manually rebase your branch or resolve any conflicts:

git checkout your-branch-name
git rebase main
# Resolve any conflicts if they occur
git push --force-with-lease

The autorebase will be attempted again on the next scheduled run.

for now, we either have SSR'd pages but no reactivity (handmade plugin)
OR no SSR but reactivity (bun's official plugin)

thing is i would want to directly server-render from the DB, not have to
make a XHR roundtrip via API which would be dumb

another alterntive is a full sveltekit project, there's some interesting
work. main hurdle is sharing the drizzle schema, since we're using
bun:sqlite as the driver. Using better-sqlite3 and node adapter for
sveltekit results in loss of type info because the schema is not
type-compatible between DB drivers, but I saw a (unofficial) bun adapter
for sveltekit, so maybe we can use bun:sqlite on the svelte kit server
side anyways. im excited to try out sveltekit remote functions so maybe
ill go with that

but a standalone, Bun.served'd dashboard would be kinda neat (and
lightweight), and I might have the opportunity to contribute to
oven-sh/bun directly which would be nice, so idk. i feel like ssr for
the official plugin is achievalbe  (and its certainly not a roadmap
prority for the bun team)
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