{"repo":"Greenheart/keystatic-sveltekit","free":true,"listed":false,"github":"https://github.com/Greenheart/keystatic-sveltekit","clone":"git clone https://github.com/Greenheart/keystatic-sveltekit.git","description":"📝 Convenient Keystatic integration for SvelteKit, featuring Markdoc content with interactive Svelte components and a modern editing UX for your entire team.","language":"JavaScript","stars":13,"topics":["cms","integration","keystatic","markdoc","svelte","sveltekit"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"keystatic-sveltekit Library for integrating the Git-based Keystatic CMS with SvelteKit. This allows you to serve the CMS from the same server as your main SvelteKit app. You can read the blog post to learn more about why this is useful, and the background to this project. Library key features - Make it easy to integrate a high-quality Git-based CMS with SvelteKit projects. - This library allows serving Keystatic CMS with the same server as SvelteKit. This improved both development and production builds by removing the need to install and maintain a separate metaframework just for the CMS. If you already use SvelteKit, why not use it for the CMS as well? - Supports hot reloading during development to make it simple and enjoyable to edit keystatic.config.ts and quickly see the results in the CMS. Get started You need a SvelteKit project before adding keystatic-sveltekit . Install the required dependencies: Alternatively, if you plan to only use Keystatic CMS locally during development: Adding Keystatic CMS in your SvelteKit project Add keystatic.config.ts to your project root directory: Add the Vite plugin: Register the Keystatic routes in a SvelteKit server hook. This will serve both the CMS frontend and API routes. You can also pass in additional configuration like environment variables, which is useful if you have nonstandard names for your environment variables. Refer to the parameters of handleKeystatic() for more info. --- Once all steps are completed, you can run pnpm de","default_branch":null,"files":null,"tree":[],"storefront":"/r/Greenheart","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Greenheart/keystatic-sveltekit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}