Skip to content

Instantly share code, notes, and snippets.

@spigelli
Last active July 23, 2023 06:58
Show Gist options
  • Save spigelli/625f41dfcd97862cc337fb105416246a to your computer and use it in GitHub Desktop.
Save spigelli/625f41dfcd97862cc337fb105416246a to your computer and use it in GitHub Desktop.

Offline Apps

Edge PG with neon is awesome. But I feel like there's still a some holes in the edge/ts/nextjs ecosystem broadly when it comes to data and offline apps. Basically

  • Offline through periodic polling

    Periodically pushing a list of changes and pulling a list of changes

  • Offline/collaborative through subscriptions

    Through a long lived connection

And I think the former is an issue maybe drizzle could have some stake in.

Offline flows

Periodic polling

  • Periodically push a list of changes

Subscriptions

  • Through a long lived connection

What do we care about?

Current offerings

State focused

React Native

  • Redux (with redux-offline and redux-persist)

    react-native-offline only supports transient network outage I think and doesn't seem very active

  • Apollo client (fully offline first with a lot of links)
  • Relay (haven't looked into offline specifically)
  • WatermelonDB (sqlite)

Flutter

PWA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment