Skip to content

Any plans for Integration with SvelteKit? #766

Answered by simonswiss
Blankeos asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

Keystatic is built with React and we have no concrete plans to build a version in a different framework.

However, you should be able to run Keystatic in a subdirectory in your SvelteKit project and run it as a separate Next.js app on a different port.

You can make it store the content at the root level of your project (where the SvelteKit app lives) and then read the files from there.

The other thing that will be a bit complicated is to render content from the document field. Keystatic provides the DocumentRenderer written in React — and you could take inspiration to write a similar renderer in Svelte.

The rest should work pretty well — if you're happy with that dual-nested-app setup.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simonswiss
Comment options

@Blankeos
Comment options

Answer selected by Blankeos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants