posit-dev / posit-dev/shinylive

Feature suggestion: Be able to use cache when offline from service workers

Open
#188 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
251
Forks
25
Avg merge
19m
Merged PRs (30d)
2

Description

I see that you already use service workers in shinylive. It would be awesome if shinylive could also work offline using the previous loaded cache of the first online connection.

The idea from @udurraniAtPresage is attempted here https://github.com/udurraniAtPresage/shinylive_app, but as we couldn't make it work I build here https://github.com/jrosell/playground4offline a simple example with an offline static html site of what is the goal to achieve with shinylive, if possible.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Shinylive's existing service-worker implementation and the linked shinylive_app and playground4offline examples. Done means a Shinylive app can load its previously cached resources and work offline after an initial online connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.