galacticcouncil / galacticcouncil/sdk

Explore using sdk from webworker

Open
#161 0 comments 0 reactions 0 assignees View on GitHub
area/sdk kind/feature
Dominant language
TypeScript
Stars
28
Forks
32
Avg merge
1d 4h
Merged PRs (30d)
10

Description

This would improve in-browser performance in multiple ways:
1. Multiple pages can connect to single websocket connection via [shared worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker) (not compatible with mobile chrome)
2. All the RPC connection logic can run independently of browser window
3. We can cache whole sdk state in separate thread with all the computations and not block frontend
4. We will need to solve potentially running different environments (testnets) or connection to different chains at the same time

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified. Begin by mapping the SDK's browser, RPC, websocket, and state-management architecture, then evaluate SharedWorker support and how simultaneous testnet or chain environments would be isolated. Done would require an agreed design and implementation plan for these cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.