<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj" -->

---
title: Sharing a state between windows without a serve | daily.dev
description: Learn how to share a state between multiple windows without a server by using Local Storage and Shared Workers. Understand the concept of Shared Workers and...
canonical: https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Sharing a state between windows without a serve | daily.dev
og:description: Learn how to share a state between multiple windows without a server by using Local Storage and Shared Workers. Understand the concept of Shared Workers and...
og:url: https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj
og:image: https://api.daily.dev/og/posts/NrutfUXAJ.png
og:image:alt: Sharing a state between windows without a serve
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sharing a state between windows without a serve

**[DEV](https://daily.dev/sources/devto)** · 6 min read · 1257 upvotes · 41 comments

## Summary

Learn how to share a state between multiple windows without a server by using Local Storage and Shared Workers. Understand the concept of Shared Workers and their role in communication between instances of the same script.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/notachraf/sharing-a-state-between-windows-without-a-serve-23an>

## Community discussion

Top comments from developers on daily.dev.

**@revanthshalon** · 11 upvotes

> In trading a lot of the apps provide console level trading allows sync of multiple windows, now if this could be replicated by a browser, that could eliminate the need for the console applications to be installed.. I could provide an interactive ui for the same console apps which would improve the user experience.. this opens up a lot of possibilities for me .. Love this ! I think this idea is sensational and all of this started with the 3d sphere shared by Figurative

**@kenkenneed** · 9 upvotes

> Bro this is so coool

**@nzeidan** · 5 upvotes

> The power of WebWorker + localStorage

**@47kyo** · 4 upvotes

> waste of time

**@ranmaniax** · 2 upvotes

> we know this is cool, but what is it for?

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#webdev](https://daily.dev/tags/webdev)

[View this post on daily.dev](https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Sharing a state between windows without a serve","url":"https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj"},"datePublished":"2023-12-23T18:51:13.499Z","dateModified":"2024-08-30T02:18:38.339Z","description":"Learn how to share a state between multiple windows without a server by using Local Storage and Shared Workers. Understand the concept of Shared Workers and...","image":"https://res.cloudinary.com/practicaldev/image/fetch/s--cQDSy8qA--/c_imagga_scale,f_auto,fl_progressive,h_500,q_66,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8skuyne3l6gum3eud20z.gif","thumbnailUrl":"https://res.cloudinary.com/practicaldev/image/fetch/s--cQDSy8qA--/c_imagga_scale,f_auto,fl_progressive,h_500,q_66,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8skuyne3l6gum3eud20z.gif","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":41,"discussionUrl":"https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1257},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":41}],"keywords":"javascript,webdev","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Sharing a state between windows without a serve"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/sharing-a-state-between-windows-without-a-serve-nrutfuxaj","comment":[{"@type":"Comment","text":"In trading a lot of the apps provide console level trading allows sync of multiple windows, now if this could be replicated by a browser, that could eliminate the need for the console applications to be installed… I could provide an interactive ui for the same console apps which would improve the user experience… this opens up a lot of possibilities for me … Love this ! I think this idea is sensational and all of this started with the 3d sphere shared by Figurative","datePublished":"2023-12-26T06:02:51.515Z","url":"https://daily.dev/posts/NrutfUXAJ#c-Ib2AGi2fo","author":{"@type":"Person","name":"RevanthShalon","url":"https://daily.dev/revanthshalon","image":"https://avatars.githubusercontent.com/u/40984447?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11}},{"@type":"Comment","text":"Bro this is so coool","datePublished":"2023-12-24T13:37:12.546Z","url":"https://daily.dev/posts/NrutfUXAJ#c-MCYbX8asV","author":{"@type":"Person","name":"Kaiyue Guo","url":"https://daily.dev/kenkenneed","image":"https://avatars.githubusercontent.com/u/128145377?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9}},{"@type":"Comment","text":"The power of WebWorker + localStorage","datePublished":"2023-12-25T15:35:05.919Z","url":"https://daily.dev/posts/NrutfUXAJ#c-WWJUkfK6P","author":{"@type":"Person","name":"Nihad Zeidan","url":"https://daily.dev/nzeidan","image":"https://media.daily.dev/image/upload/s--WgBKkRs7--/f_auto,q_auto/v1703515703/avatars/avatar_831RkzQrThP5v2QnYaA9u"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}},{"@type":"Comment","text":"waste of time","datePublished":"2023-12-25T13:42:59.042Z","url":"https://daily.dev/posts/NrutfUXAJ#c-UIfqdWHT7","author":{"@type":"Person","name":"Panda","url":"https://daily.dev/47kyo","image":"https://avatars.githubusercontent.com/u/73402203?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"we know this is cool, but what is it for?","datePublished":"2023-12-26T10:07:16.449Z","url":"https://daily.dev/posts/NrutfUXAJ#c-tuHAVMGGM","author":{"@type":"Person","name":"ranmaniax","url":"https://daily.dev/ranmaniax","image":"https://media.daily.dev/image/upload/s--nZ5rQCot--/f_auto/v1709982339/avatars/avatar_tqHoQmZ1PG9U1ahG6TAK0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

