Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can I use svelte as an alternative to nuxt.js? I want to create a simple website where most of the content is written in markdown, that is rendered to static html (that can be hosted on e.g. netlify).

As it is kind of a hobby project, might as well learn the next hot thingg? Is Svelte suitable for these kind of applications? Some of the features of nuxt.js that i like: content module (put some markdown files in a folder and the routes, write a template and then all the html rendering etc is all taken care of) extensions for image resizing so images are resized to multiple resolutions as part of the build process, hot reloading in development



I believe you are looking for Sapper, which is the Next/Nuxt equivalent for Svelte. https://sapper.svelte.dev


Be aware Sapper will never reach 1.0, and instead will be replaced by just using Svelte (with SvelteKit). https://svelte.dev/blog/whats-the-deal-with-sveltekit


Thanks! Too bad SvelteKit is still in beta, cause I don't feel inclined investing any time in Sapper now I know that that is going to be deprecated. Guess I'll have to be brave and try it out

    npm init svelte@next


seems like they're trying to make it super simple to go from Sapper to SvelteKit... here's to hoping it doesn't break too many things


My "blog" (HR bait really) is exactly such a thing(using Sapper), but I had to integrate the markdown->html library by myself, I don't resize images and hit reload doesn't work.

So basically it's possible, put you have to put the thing together by yourself.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: