#svelte

Subscribe
Svelte is a JavaScript framework that allows developers to create fast, reactive web applications. It uses a unique approach of writing code that compiles down to optimized, small bundles of code that are sent to the browser. It does not require any external libraries or frameworks, making it incredibly lightweight and efficient. Svelte also provides powerful features such as reactivity, two-way data binding, and virtual DOM diffing.
Developing Dynamic Blogs with SvelteKit & Storyblok: A Hands-on Workshop
JSNation 2023JSNation 2023
174 min
Developing Dynamic Blogs with SvelteKit & Storyblok: A Hands-on Workshop
Top Content
Featured WorkshopFree
Alba Silvente Fuentes
Roberto Butti
2 authors
This SvelteKit workshop explores the integration of 3rd party services, such as Storyblok, in a SvelteKit project. Participants will learn how to create a SvelteKit project, leverage Svelte components, and connect to external APIs. The workshop covers important concepts including SSR, CSR, static site generation, and deploying the application using adapters. By the end of the workshop, attendees will have a solid understanding of building SvelteKit applications with API integrations and be prepared for deployment.
The Wind and the Waves: The formation of Framework Waves from the Epicenter
JSNation 2022JSNation 2022
19 min
The Wind and the Waves: The formation of Framework Waves from the Epicenter
Top Content
Our understanding of innovation is wrong. Innovations are not introduced by a single point of light. The story of who invented the computer is not linear. Many steps forward led to the development of the computer. Angular has shaped and influenced multiple JavaScript waves, and Angular v14 simplifies development with standalone components.
Full Stack Documentation
JSNation 2022JSNation 2022
28 min
Full Stack Documentation
Top Content
The Talk discusses the shift to full-stack frameworks and the challenges of full-stack documentation. It highlights the power of interactive tutorials and the importance of user testing in software development. The Talk also introduces learn.svelte.dev, a platform for learning full-stack tools, and discusses the roadmap for SvelteKit and its documentation.
Build with SvelteKit and GraphQL
GraphQL Galaxy 2021GraphQL Galaxy 2021
140 min
Build with SvelteKit and GraphQL
Top Content
Featured WorkshopFree
Scott Spence
Scott Spence
Have you ever thought about building something that doesn't require a lot of boilerplate with a tiny bundle size? In this workshop, Scott Spence will go from hello world to covering routing and using endpoints in SvelteKit. You'll set up a backend GraphQL API then use GraphQL queries with SvelteKit to display the GraphQL API data. You'll build a fast secure project that uses SvelteKit's features, then deploy it as a fully static site. This course is for the Svelte curious who haven't had extensive experience with SvelteKit and want a deeper understanding of how to use it in practical applications.

Table of contents:
- Kick-off and Svelte introduction
- Initialise frontend project
- Tour of the SvelteKit skeleton project
- Configure backend project
- Query Data with GraphQL
- Fetching data to the frontend with GraphQL
- Styling
- Svelte directives
- Routing in SvelteKit
- Endpoints in SvelteKit
- Deploying to Netlify
- Navigation
- Mutations in GraphCMS
- Sending GraphQL Mutations via SvelteKit
- Q&A
Building Dynamic Websites with SvelteKit and Storyblok
Building Dynamic Websites with SvelteKit and Storyblok
Article
Building a Gemstack site using SvelteKit and StoryblokDifferences between traditional CMS and headless CMSIntegrating SvelteKit with Storyblok's API for content managementBenefits of using a headless CMS like StoryblokDeploying a static site generated by SvelteKitCreating a dynamic and efficient website often involves choosing the right tools and frameworks. SvelteKit and Storyblok offer a powerful combination for building a Gemstack site. Storyblok is a headless content management system (CMS) that provides a robust backend for managing content, while SvelteKit is a modern front-end framework that enables developers to build fast and responsive websites.In the past, traditional monolithic CMS platforms allowed users to create and manage websites without coding. These systems were easy to start with but limited in terms of customization and performance. They required deploying the entire system, even for minor changes, as the front end was tightly coupled with the backend.Headless CMS, like Storyblok, offers a different approach by decoupling the backend and frontend. This separation allows developers to manage content independently from the website's front end. The content is managed and delivered through APIs, offering developers the flexibility to choose their preferred front-end framework, whether it's SvelteKit, Next.js, or others.With Storyblok, content creators can manage, review, and deploy content using a user-friendly admin interface. The system exposes content through APIs, enabling developers to integrate it seamlessly into their chosen front-end framework. For example, using SvelteKit, developers can focus on building the front end and integrate Storyblok's APIs to fetch and display content dynamically.Headless CMS platforms provide several advantages over traditional systems. They offer greater flexibility and freedom, allowing developers to choose their technology stack and avoid being locked into a specific templating system. Content reusability is enhanced, enabling components to be reused across pages, which improves development efficiency.Headless CMS platforms also improve performance by delivering content via a CDN, such as CloudFront in the case of Storyblok. This setup allows developers to optimize front-end performance and scalability, as the CMS endpoints are managed as a SaaS application on the cloud. Additionally, headless CMS systems are often more secure, as they limit the interface between the end user and the backend through APIs.To start building a SvelteKit project with Storyblok, developers can create an empty SvelteKit application using npm and integrate Storyblok's SDK to connect the front end with the CMS. This integration involves setting up the Storyblok API, retrieving content based on user actions, and rendering it on the website.The flexibility of SvelteKit allows developers to create a structured content model with Storyblok, enabling dynamic content management and rendering. A common setup includes creating components in SvelteKit that correspond to content blocks in Storyblok. Developers can use Storyblok's admin interface to create and organize content, which is then fetched by the front end via APIs.Deploying a SvelteKit site involves generating static files that can be hosted on platforms like Netlify or AWS S3. This process involves configuring SvelteKit's adapter to generate static HTML files during the build process. These static files can be deployed to a CDN, allowing users to access the website efficiently without relying on server-side rendering.In summary, SvelteKit and Storyblok provide a powerful combination for developers looking to build dynamic websites with modern technology. By utilizing a headless CMS, developers gain flexibility, improved performance, and better content management capabilities. The integration between SvelteKit and Storyblok enables developers to create responsive and scalable websites that meet the demands of today's digital landscape.
Progressive Enhancement - What It Is and Isn’t, a Practical Introduction With Svelte
JSNation 2023JSNation 2023
20 min
Progressive Enhancement - What It Is and Isn’t, a Practical Introduction With Svelte
Progressive enhancement is a strategy that provides a baseline experience for all users while enhancing it for those with modern browsers. Feature detection and graceful degradation are complementary approaches to achieve this. Polyfills can emulate new browser functionality in old browsers. Progressive enhancement is about meeting user needs while considering performance. Building apps in SvelteKit allows for easy development of progressively enhanced apps. Svelte components and DOM content provide a convenient way to structure and update the UI. Form submission and progressive enhancement can be achieved by enabling file upload and processing when JavaScript is disabled.
Building with SvelteKit and GraphQL
JSNation 2022JSNation 2022
170 min
Building with SvelteKit and GraphQL
Workshop
Scott Spence
Scott Spence
Want to get familiar with the framework that took the top spot for most loved framework on the Stack Overflow developer survey in 2021?Svelte is a super versatile framework with no virtual dom unlike React and Vue, it's a compiler that builds your projects into vanilla HTML, CSS and JavaScript.This workshop will go over the basics of setting up with SvelteKit and querying data from a GraphQL API and using that data in SvelteKit to retrieve data for use in the client (browser).Key learnings:How to use SvelteKit to build a simple project retrieve data from a GraphQL API and display it in the client. Many of the core concepts of Svelte and SvelteKit will be covered in this workshop.
Build Full Featured Frontend App with Svelte
React Summit 2020React Summit 2020
192 min
Build Full Featured Frontend App with Svelte
Workshop
Mikhail Kuznetsov
Mikhail Kuznetsov
Svelte is a new prominent JS framework exposing “write less do more” philosophy. During this workshop you will get proficiency as a Svelte developer. We will be building an app that mimics the famous Q&A website stackoverflow.com. Will start developing from simple front end components, later we'll connect it to a real running backend and then test it and optimise for production.Attending a workshop is the fastest way to acquire a body of knowledge about building web apps with Svelte.