Introduction to Sapper
Explore Sapper as a backend framework built on Svelte for cloud native web apps. Understand its benefits like flexible routing and fast navigation, while comparing alternatives such as Routify, Next.js, NuxtJS, and Angular Universal to help you decide the best fit for your project.
We'll cover the following...
Sapper
Sapper is a framework that is built on Svelte (which will be covered in the upcoming lessons) for building web applications. We will use Sapper to build our Cloud Native Web Application.
Alternatives
Let’s explore the alternatives to Sapper.
Routify
Routify offers a great developer experience to build the routes for your Svelte app. It is actively maintained but does not have quite as many features as Sapper and is more of a router for Svelte applications.
Next.js (React)
Next.js is an open-source React front-end development web framework that enables functionality, such as server-side rendering and generating static websites for React-based web applications.
If React is your frontend library of choice, we recommend you look at Next.js. It’s provided by Vercel, and they also offer deployment services. The Vercel team releases new versions regularly and provides excellent tools in general.
NuxtJS (Vue.js)
Nuxt.js is a free and open-source web application framework based on Vue.js, Node.js, Webpack, and Babel.js. The framework is advertised as a “meta-framework for universal applications”. Nuxt.js is very similar to Next.js, but for Vue.js web applications.
Angular Universal (Angular)
Angular is an application design framework and development platform for creating efficient and sophisticated single-page apps.
Angular Universal is Angular’s approach to server-side rendering.
Why use sapper?
Sapper provides us with:
- the ability to develop web apps of all sizes.
- a simple and delightful development experience to get up to speed.
- a blazing-fast runtime performance.
- complete offline support.
Unlike single-page apps, Sapper doesn’t compromise on SEO, progressive enhancement, or the initial load experience. However, unlike traditional server-rendered apps, navigation is instantaneous for that app-like feel.
Key features
Here are some of the key features of Sapper:
- Flexible Filesystem-Based Routing
- Server Routes
- Instantaneous Navigation
Let’s discuss these key features in detail!