r/sveltejs • u/boykom • 52m ago
[Self-Promo] Artavolo, an Airtable-style database built in Svelte 5
4+ year old project. We started the frontend in Vue. About 5 months ago we decided to move to Svelte 5, mainly for two reasons: performance and bundle size. A database app lives or dies by how a big table feels when you scroll, edit and switch views, and we kept fighting the framework to get there. Every screen is Svelte 5 now.
Video above is a quick run through: editing in the grid, dragging a card on the kanban, the timeline, and comments with up/down votes on a record.
As part of the move we replaced the grid with a Svelte 5-based data grid. It's called SvGrid. The core package (@svgrid/grid) is MIT and on npm.
Things we found during the process and which may help you in your own projects:
.svelte.ts modules instead of stores. Comments, permissions, the signed in user, each one is a small file with $state at the top and normal functions around it. Super easy to test with vitest and jsdom.
$state.raw for anything big. Rows and comment lists are raw and we just replace the array when something changes. Deep reactivity on every cell of a big table is exactly what we were trying to get away from.
Field types as plain objects plus a cell component. When we added a Button field or the "only the approver can approve this record" rule, it was a few files, not a rewrite.

