Local-First: A Crazy New Way to Build Apps

This ad is not shown to multipass and full ticket holders
React Advanced
React Advanced 2026
October 23 - 26, 2026
London, UK & Online
Upcoming event
React Advanced 2026
React Advanced 2026
October 23 - 26, 2026. London, UK & Online
Bookmark
Rate this content
Sentry
Promoted
Code breaks, fix it faster

Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.

Get started

Local-first is a new way of building apps around local state (that is synced among users and server workers) instead of using traditional APIs and databases.


In this talk we'll have a look at what that looks like with my framework, Jazz (for TypeScript/React). We'll see how writing an app becomes little more than defining a data schema and building some UI.

This talk has been presented at JSNation US 2024, check out the latest edition of this JavaScript Conference.

FAQ

LocalThirst is a new approach to building apps that simplifies the process by focusing on shared state between users and devices, removing the complexity of traditional app stacks.

The main goal of LocalThirst is to simplify app development by focusing on shared state and providing tools and frameworks like Jazz to handle syncing and storage, reducing the complexity of app-specific code.

LocalThirst uses CRDTs (conflict-free replicated data types) to handle real-time multiplayer and offline support, allowing for fast, Git-like data syncing and reasonable auto-merging of changes.

Data security in LocalThirst is managed through public key cryptography, allowing for encrypted and signed data changes, which ensure read access and verifiable authorship without needing centralized API-based permissions.

Examples include Invoice Rater for managing cloud service invoices, Learn Anything for educational content sharing, and Succulent for social media scheduling, all of which leverage the local-first approach for enhanced user experience.

LocalThirst improves scalability and user experience by allowing apps to operate offline, sync data efficiently, and implement features like real-time collaboration easily, making it suitable even for scalable applications like social networks.

CRDTs play a crucial role in LocalThirst by enabling fast, conflict-free data replication across devices, simplifying the implementation of real-time multiplayer and offline functionalities.

Jazz emphasizes local-first identity and permissions using cryptography, allowing for end-to-end encryption and local data management, contrasting with other frameworks that may rely on centralized infrastructure for permissions.

Jazz is a framework for building local-first apps, and JazzCloud is its sync and storage infrastructure as a service, designed to simplify app development by focusing on local state and generalized syncing.

App development has become more complicated due to modern user expectations for advanced features like real-time multiplayer, cross-device sync, offline support, and complex permissions, which affect the frontend, backend, and database.

Anselm Eickhoff
Anselm Eickhoff
25 min
21 Nov, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Hi everyone, my name is Anselm and today I'd like to tell you about LocalThirst, a crazy new way to build apps. The traditional technologies are not made for the advanced features that users expect. Local first infrastructure simplifies the app development stack by allowing app-specific parts without a complex stack. Building apps with CRDTs enable real-time multiplayer, cross-device sync, offline support, and auto-merging of conflicts. Public key cryptography simplifies sharing, complex permissions, and enables end-to-end encryption. Local first frameworks like Jazz combine permissions, local first user identity, and cryptography. Managing schema changes in local first apps can be challenging but can be managed with patterns and caution. Backend workers in Local First work the same way as front-end workers, and Jazz allows precise access control for server workers. Jazz enables easy offline-first and local-first user experiences and is used for various apps like Invoice Rater, Learn Anything, and Succulent. Start building local-first apps with Jazz at jazz.tools.

1. Introduction to LocalThirst

Short description:

Hi everyone, my name is Anselm and today I'd like to tell you about LocalThirst, a crazy new way to build apps. We'll have a front end, a backend, some database, and maybe we'll have to interact with some Excel APIs. Unfortunately, the reality today looks more complicated, and it gets worse because users expect advanced features like real-time multiplayer, cross-device sync, offline support, sharing content with complex permissions, and user file uploads. Adding these features to the already complicated stack can be really difficult and unclear. None of the traditional technologies are made for these requirements.

Hi everyone, my name is Anselm and today I'd like to tell you about LocalThirst, a crazy new way to build apps. If we want to build an app, you're like, I've got a new idea, I want to build this app, right? Usually what we think about what we need to do is something like this, right? We'll have a front end, a backend, some database, and maybe we'll have to interact with some Excel APIs.

But unfortunately, the reality today looks more like this. It's become really, really complicated and we're like a far way away from the simple traditional server client model. And it gets worse these days because of high fidelity apps like Figma and Notion, or even Google Docs users these days expect all these kind of advanced features like real-time multiplayer, cross-device sync. More and more people are starting to expect apps to work offline. You want to be able to share content in an app and kind of define complex permissions. And if you're starting to think about how to add these even more complicated things to this already complicated stack, it gets really difficult. Like what if we wanted real-time multiplayer, where do we even need to add that? It will affect the front end, it will affect the backend, it will affect the database. None of the traditional technologies here are even really made for that. Similarly, if we want to add offline support, is that kind of just a front end thing? Will it affect the UI state? We kind of also have to think about that in the backend. It's really unclear. Cross-device sync also gets really complicated. And if we want to do some sharing between users, that actually affects all parts of our app. And it just becomes more and more complicated. And my favorite one, something as simple as user file uploads, which is like radical, right? Even just implementing that, if you've had to implement that in apps, it kind of touches everything and it's way more complicated than it should be. So all of these things that users now take for granted are either like awkward up to really hard to build.

2. Building Apps with Local First Infrastructure

Short description:

So if you look at this diagram, the code that's specific to your app is all over the place. Every stack implements shared state between users and devices. Building a stack just to get shared state is cumbersome. Local first approach simplifies the infrastructure and allows building app-specific parts without the need for a complex stack. Garden Computing is building Jazz, a framework for building local first apps with sync and storage infrastructure called JazzCloud.

So if you look at this diagram as well, the code that's specific to your app is actually all over the place. And it becomes this really complicated thing. You have to make all these tech choices, like how are you going to represent UI state? What about, how do you talk to your backend? Do you have some query library, RPCs? What do you use for auth? Do you talk to the database directly or do you want to use some ORM? Maybe for performance you need a cache. Probably you need something like a message queue for certain kinds of tasks, particularly for talking to external APIs. And you kind of need to deploy all of that. And of course there are simplified solutions that give you any combination of these as a package, but internally they still look just the same, just as complicated.

And if we zoom out a little bit here and stop thinking about in terms of the patterns that we're used to that we take for granted that this is how you build apps and you need all of these things, what does a stack really do? And I would say that every stack really just implements shared state between users and devices. And for some reason you have to build that by hand each time, again and again. And note here that I don't mean like, yeah, new apps with these cool features like real-time multiplayer, even boring stacks for boring like web 2.0, SaaS type apps. All they really do is implement shared state between users and devices. So maybe a solution for helping us out of this mess is what if we could build general tools with shared state between users in mind from the beginning.

I've built a lot of web apps. In my experience, I've been like a full-stack consultant for something like 13, 14 years, depending on how you count it for every app that I've built, I've had to build this stack just to get shared state. And only then could I start building the app specific parts. And I never really knew how to solve this until I discovered this new way of building apps that answered my question like what if we could do it a different way. And this way of building apps is called local first. This is what a local first infrastructure looks like, way simpler. You basically have your front end, which just talks to local state and you get this experience of building like a good old, old school offline app. But then your local state gets synced to other devices, to other users, and even to back end workers in a generalized way through what I would call a sync and storage infrastructure.

Disclaimer here, a lot of the ways in which I'm going to explain this stuff are slightly biased because we are building a framework for building local first apps. So this will be opinionated and you might ask, who is we? Well, it's me and my team at Garden Computing, and we're building Jazz, which is a framework for building local first apps. And we're also running JazzCloud, which is sync and storage infrastructure as a service for apps built with Jazz. So this basically means that the sync and storage infrastructure part up there is either JazzCloud or self hosted. And I really want to underline that because I don't want you to think that this talk is super biased because I'm a vendor for this sort of stuff. It's all open source. You can run it yourself. I think it's just convenient to use something like JazzCloud. But the general picture is this. And the most important and powerful part for me compared to the traditional stack is this part that, by saying that you work with local state, which gets synced a generalized way, it means that your app specific code actually just lives in this part down here. You only have to build your front end and maybe some back end workers to talk to external APIs.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Building Better Websites with Remix
React Summit Remote Edition 2021React Summit Remote Edition 2021
33 min
Building Better Websites with Remix
Top Content
Remix is a web framework built on React Router that focuses on web fundamentals, accessibility, performance, and flexibility. It delivers real HTML and SEO benefits, and allows for automatic updating of meta tags and styles. It provides features like login functionality, session management, and error handling. Remix is a server-rendered framework that can enhance sites with JavaScript but doesn't require it for basic functionality. It aims to create quality HTML-driven documents and is flexible for use with different web technologies and stacks.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
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.
SolidJS: Why All the Suspense?
JSNation 2023JSNation 2023
28 min
SolidJS: Why All the Suspense?
Top Content
Suspense is a mechanism for orchestrating asynchronous state changes in JavaScript frameworks. It ensures async consistency in UIs and helps avoid trust erosion and inconsistencies. Suspense boundaries are used to hoist data fetching and create consistency zones based on the user interface. They can handle loading states of multiple resources and control state loading in applications. Suspense can be used for transitions, providing a smoother user experience and allowing prioritization of important content.
Tanstack Start - A Client-Side First Full-Stack React Framework
React Summit US 2024React Summit US 2024
30 min
Tanstack Start - A Client-Side First Full-Stack React Framework
Top Content
We surveyed thousands of developers to show that a louder audience leads to a better presentation. There has been a shift in web app development towards server-first architectures, which has improved full-stack capabilities but at the cost of complexity and divergence from the client-centric approach. Tanstec Start is a meta-framework that aims to provide the best client-side authoring experience with powerful server-side primitives. The Tansec Router supports advanced routing features, URL state management, and JSON storage. Combined with the server-side rendering capabilities of TanStack Start, it becomes even more powerful. The TanStack Router has isomorphic loaders and integrates seamlessly with TanStack Query for additional features like polling and offline support. UseSuspenseQuery allows for dynamic streaming of data during SSR. TanStack Start also offers server-side features, API routes, server functions, and middleware. The future plans include RSCs, websockets, real-time primitives, and static pre-rendering. TanStack Start is now in beta and is suitable for building React apps. It is open source.
From GraphQL Zero to GraphQL Hero with RedwoodJS
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
Tom Pressenwurter introduces Redwood.js, a full stack app framework for building GraphQL APIs easily and maintainably. He demonstrates a Redwood.js application with a React-based front end and a Node.js API. Redwood.js offers a simplified folder structure and schema for organizing the application. It provides easy data manipulation and CRUD operations through GraphQL functions. Redwood.js allows for easy implementation of new queries and directives, including authentication and limiting access to data. It is a stable and production-ready framework that integrates well with other front-end technologies.

Workshops on related topic

Building WebApps That Light Up the Internet with QwikCity
JSNation 2023JSNation 2023
170 min
Building WebApps That Light Up the Internet with QwikCity
WorkshopFree
Miško Hevery
Miško Hevery
Building instant-on web applications at scale have been elusive. Real-world sites need tracking, analytics, and complex user interfaces and interactions. We always start with the best intentions but end up with a less-than-ideal site.
QwikCity is a new meta-framework that allows you to build large-scale applications with constant startup-up performance. We will look at how to build a QwikCity application and what makes it unique. The workshop will show you how to set up a QwikCitp project. How routing works with layout. The demo application will fetch data and present it to the user in an editable form. And finally, how one can use authentication. All of the basic parts for any large-scale applications.
Along the way, we will also look at what makes Qwik unique, and how resumability enables constant startup performance no matter the application complexity.
Back to the Roots With Remix
React Summit 2023React Summit 2023
106 min
Back to the Roots With Remix
Workshop
Alex Korzhikov
Pavlik Kiselev
2 authors
The modern web would be different without rich client-side applications supported by powerful frameworks: React, Angular, Vue, Lit, and many others. These frameworks rely on client-side JavaScript, which is their core. However, there are other approaches to rendering. One of them (quite old, by the way) is server-side rendering entirely without JavaScript. Let's find out if this is a good idea and how Remix can help us with it?
Prerequisites- Good understanding of JavaScript or TypeScript- It would help to have experience with React, Redux, Node.js and writing FrontEnd and BackEnd applications- Preinstall Node.js, npm- We prefer to use VSCode, but also cloud IDEs such as codesandbox (other IDEs are also ok)
Let AI Be Your Docs
JSNation 2024JSNation 2024
69 min
Let AI Be Your Docs
Workshop
Jesse Hall
Jesse Hall
Join our dynamic workshop to craft an AI-powered documentation portal. Learn to integrate OpenAI's ChatGPT with Next.js 14, Tailwind CSS, and cutting-edge tech to deliver instant code solutions and summaries. This hands-on session will equip you with the knowledge to revolutionize how users interact with documentation, turning tedious searches into efficient, intelligent discovery.
Key Takeaways:
- Practical experience in creating an AI-driven documentation site.- Understanding the integration of AI into user experiences.- Hands-on skills with the latest web development technologies.- Strategies for deploying and maintaining intelligent documentation resources.
Table of contents:- Introduction to AI in Documentation- Setting Up the Environment- Building the Documentation Structure- Integrating ChatGPT for Interactive Docs
Learn Fastify One Plugin at a Time
Node Congress 2021Node Congress 2021
128 min
Learn Fastify One Plugin at a Time
Workshop
Matteo Collina
Matteo Collina
Fastify is an HTTP framework for Node.js that focuses on providing a good developer experience without compromising on performance metrics. What makes Fastify special are not its technical details, but its community which is wide open for contributions of any kind. Part of the secret sauce is Fastify plugin architecture that enabled developers to write more than a hundred plugins.This hands-on workshop is structured around a series of exercises that covers from basics "hello world", to how to structure a project, perform database access and authentication.

https://github.com/nearform/the-fastify-workshop
Build a Product Page with Shopify’s Hydrogen Framework
React Advanced 2022React Advanced 2022
81 min
Build a Product Page with Shopify’s Hydrogen Framework
Workshop
David Witt
David Witt
Get hands on with Hydrogen, a React-based framework for building headless storefronts. Hydrogen is built for Shopify commerce with all the features you need for a production-ready storefront. It provides a quick start, build-fast environment so you can focus on the fun stuff - building unique commerce experiences. In this workshop we’ll scaffold a new storefront and rapidly build a product page. We’ll cover how to get started, file-based routing, fetching data from the Storefront API, Hydrogen’s built-in components and how to apply styling with Tailwind.You will know:- Get started with the hello-world template on StackBlitz- File-based routing to create a /products/example route- Dynamic routing /products/:handle- Hit the Storefront API with GraphQL- Move the query into the Hydrogen app- Update the query to fetch a product by handle- Display title, price, image & description.- Tailwind styling- Variant picker and buy now button- Bonus if there’s time: Collections page
Prerequisites: - A Chromium-based browser (StackBlitz)- Ideally experience with React. A general web development background would be fine.
Build a Universal Reactive Data Library with Starbeam
JSNation 2023JSNation 2023
66 min
Build a Universal Reactive Data Library with Starbeam
WorkshopFree
Yehuda Katz
Yehuda Katz
This session will focus on Starbeam's universal building blocks. We'll use Starbeam to build a data library that works in multiple frameworks.We'll write a library that caches and updates data, and supports relationships, sorting and filtering.Rather than fetching data directly, it will work with asynchronously fetched data, including data fetched after initial render. Data fetched and updated through web sockets will also work well.All of these features will be reactive, of course.Imagine you filter your data by its title, and then you update the title of a record to match the filter: any output relying on the filtered data will update to reflect the updated filter.In 90 minutes, you'll build an awesome reactive data library and learn a powerful new tool for building reactive systems. The best part: the library works in any framework, even though you don't think about (or depend on) any framework when you built it.
Table of contents- Storing a Fetched Record in a Cell- Storing multiple records in a reactive Map- Reactive iteration is normal iteration- Reactive filtering is normal filtering- Fetching more records and updating the Map- Reactive sorting is normal sorting (is this getting a bit repetitive?)- Modelling cache invalidation as data- Bonus: reactive relationships