Sveltekit Blog screenshot

Sveltekit Blog

Author Avatar Theme by Pararell
Updated: 19 Aug 2025
13 Stars

Latest SvelteKit v.2 blog - can create page or blog with Markdown or Jodit(wysiwyg editor) - Created pages and blogs are in header and they are server-side rendered for SEO and client-side for interaction

Categories

Overview

This is a product analysis of a blog made with SvelteKit. The blog uses Markdown for content formatting and incorporates an FE (front-end) framework called SvelteKit. The back-end is built with Express and utilizes SQLite for data storage. The product supports environment variables and requires setting up a .env file in the main directory as well as in the /serveradmin subdirectory. The email feature allows for adding, editing, and removing pages and blogs. Optional integration with Disqus enables comments on the blog posts. The product requires Node.js version 16+ and offers build and development server functionalities. Both the server and client run on the same port, and the server includes server-side rendering (SSR) when the build is available. The product utilizes jsonwebtoken for authorization and express-session for session management in Express. It also includes language switching capabilities using the svelte-i18n library.

Features

  • SvelteKit Integration: The blog is built using SvelteKit, a powerful front-end framework that simplifies development and enhances performance.
  • Markdown Support: Content in the blog can be formatted using Markdown syntax, allowing for easy editing and styling of blog posts.
  • Email Administration: An email feature is provided, allowing users to add, edit, and remove pages and blogs using the provided email address.
  • Optional Disqus Integration: Users have the option to enable comments on their blog posts using Disqus, a popular commenting platform.
  • Environment Variables: The product supports the use of environment variables by setting up a .env file in the main directory as well as in the /serveradmin subdirectory.
  • Node.js Compatibility: The product works with Node.js version 16 and above, ensuring compatibility with the latest versions of the server-side JavaScript runtime.
  • Build and Development Server: The product provides build and development server functionalities, enabling efficient testing and deployment of the blog.
  • Server-Side Rendering: When the build is available, the server includes server-side rendering (SSR), enhancing the performance and user experience of the blog.
  • Authorization with jsonwebtoken: The product utilizes the jsonwebtoken library for authorization, providing secure access control to the blog’s administrative features.
  • Session Management with express-session: Express-session is used for session management in the Express back-end, ensuring secure and efficient handling of user sessions.
  • Language Switching with svelte-i18n: The product incorporates the svelte-i18n library, allowing for easy language switching and localization support in the blog.
  • Pages and Blogs Creation with marked: The product uses the marked library for creating and rendering pages and blogs, providing a simple and efficient way to generate content.

Installation

To install the SvelteKit blog, follow these steps:

  1. Set up a .env file in the main directory and include the necessary environment variables such as email, disqusSrc, cookieSecret, cookieName, and TOKEN_KEY.

  2. In the /serveradmin subdirectory, create another .env file and include the same environment variables mentioned above.

  3. Ensure that you have Node.js version 16 or above installed on your system.

  4. Open your terminal and navigate to the project’s server directory by running the command cd server.

  5. Build the server by running the command npm run build.

  6. Start the development server by running the command npm run devServer.

  7. The server and client will run on the same port. If the build exists, the server will include server-side rendering (SSR) using SvelteKit.

  8. To enable authorization, incorporate the jsonwebtoken library for handling user authentication and access control.

  9. For session management in Express, utilize the express-session library to ensure secure and efficient handling of user sessions.

  10. Use the svelte-i18n library to implement language switching and localization support in the blog.

  11. Create and render pages and blogs using the marked library for efficient content generation.

Summary

The SvelteKit blog offers a robust and efficient solution for creating and managing a blog. With features such as Markdown support, email administration, Disqus integration, environment variable support, Node.js compatibility, build and development server functionality, server-side rendering, authorization and session management, language switching, and efficient content generation, this product provides a comprehensive and user-friendly experience for bloggers and administrators. The installation process ensures easy setup and integration of the required libraries and dependencies.