# LocalStorage

LocalStorage is a web-storage mechanism and API for storing name-value pairs on the client side across multiple windows and beyond the current session; the localStorage getter provides access to a page's local storage area.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Article: Building an Offline-First AI Coding Tutor for Low-End Android Phones

DevFeed: [Article: Building an Offline-First AI Coding Tutor for Low-End Android Phones](<https://devfeed.tech/articles/article-building-an-offline-first-ai-coding-tutor-for-low-end-android-phones-104256.md>)

Original publisher: [Read original article](<https://www.infoq.com/articles/building-offline-first-android-app-low-end-devices/>)

Author: Chidi Nwaogu

Published: 2026-10-28T09:00:00Z

Content type: article

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [human centric design](<https://devfeed.tech/topics/human-centric-design.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Android](<https://devfeed.tech/topics/android.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [africa](<https://devfeed.tech/tags/africa.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [app-updates](<https://devfeed.tech/tags/app-updates.md>), [article](<https://devfeed.tech/tags/article.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [beginner](<https://devfeed.tech/tags/beginner.md>), [building-offline-first-android-app-low-end-devices](<https://devfeed.tech/tags/building-offline-first-android-app-low-end-devices.md>), [coding](<https://devfeed.tech/tags/coding.md>), [development](<https://devfeed.tech/tags/development.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [failure](<https://devfeed.tech/tags/failure.md>), [india](<https://devfeed.tech/tags/india.md>), [laptop](<https://devfeed.tech/tags/laptop.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mobile-first-in-africa](<https://devfeed.tech/tags/mobile-first-in-africa.md>), [nigeria](<https://devfeed.tech/tags/nigeria.md>), [offline](<https://devfeed.tech/tags/offline.md>), [offline-first](<https://devfeed.tech/tags/offline-first.md>), [operating-systems](<https://devfeed.tech/tags/operating-systems.md>), [quota](<https://devfeed.tech/tags/quota.md>), [storage](<https://devfeed.tech/tags/storage.md>), [users](<https://devfeed.tech/tags/users.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

### AI overview

Efiwe runs coding lessons offline in a smartphone browser, with Python and SQL executed locally through WebAssembly in deferred Web Workers. The excerpt's central engineering lesson is to treat limited storage and intermittent connectivity as normal: cache writes must not block rendering, and storage failures should degrade offline availability without preventing a course from opening. The team replaced synchronous localStorage with IndexedDB, using a guarded dual-read migration to preserve existing users' data. Hosted AI feedback has a four-second timeout and falls back to deterministic analysis plus a local model; the article notes that local model quality remains a limitation. Field pilots also exposed first-run caching failures, shared-device needs addressed with profile-scoped storage, and a language control that was functionally invisible in the footer. WebAssembly cold starts and opaque browser storage quotas remain unresolved.

### Source excerpt

This article is about engineering an offline-first app for low-end devices based on our experience in Nigeria and India. The interesting problems in this space are storage, quota, cold start, and failure-path design. Our approach applies to any product whose users are on constrained devices and intermittent connections, when the assumption they have a laptop and broadband access do not hold. By Chidi Nwaogu

## Next.js Hydration Errors from localStorage: 3 Ways to Fix Them

DevFeed: [Next.js Hydration Errors from localStorage: 3 Ways to Fix Them](<https://devfeed.tech/articles/next-js-hydration-errors-from-localstorage-3-ways-to-fix-them-90895.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/nextjs-hydration-error-localstorage/>)

Author: SitePoint Team

Published: 2026-10-20T15:45:07Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [17](<https://devfeed.tech/tags/17.md>), [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [actions](<https://devfeed.tech/tags/actions.md>), [added](<https://devfeed.tech/tags/added.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [compare](<https://devfeed.tech/tags/compare.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [effects](<https://devfeed.tech/tags/effects.md>), [errors](<https://devfeed.tech/tags/errors.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [js](<https://devfeed.tech/tags/js.md>), [next](<https://devfeed.tech/tags/next.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [programming](<https://devfeed.tech/tags/programming.md>), [reading](<https://devfeed.tech/tags/reading.md>), [ssr](<https://devfeed.tech/tags/ssr.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Direct localStorage reads during Next.js server pre-rendering can crash because Node.js has no `window`; guarding the read avoids that crash but may render different initial values on the server and client, causing a hydration mismatch. The excerpt compares three fixes: `useEffect` defers the read until after mount, keeping hydration consistent but briefly showing default state; `useSyncExternalStore` supplies an explicit server snapshot and can synchronize changes across tabs, but still allows a flash and needs subscription logic; cookies let the server read preferences before rendering, avoiding that flash for values such as theme or locale, at the cost of added cookie handling and a roughly 4 KB size limit. It targets Next.js 15.x, React 18.x, and the App Router, noting that `await cookies()` applies to Next.js 15 and later.

### Source excerpt

localStorage access during SSR causes ReferenceErrors and hydration mismatches in Next.js. Compare three fixes: effects, useSyncExternalStore, and cookies. Continue reading Next.js Hydration Errors from localStorage: 3 Ways to Fix Them on SitePoint.

## Reattaching \`tmux\` to your Xorg session

DevFeed: [Reattaching \`tmux\` to your Xorg session](<https://devfeed.tech/articles/reattaching-tmux-to-your-xorg-session-88815.md>)

Original publisher: [Read original article](<https://www.jvt.me/posts/2026/10/16/tmux-reattach/>)

Author: Jamie Tanna

Published: 2026-10-16T13:11:52Z

Content type: tutorial

Language: en

Sources: [Jamie Tanna](<https://devfeed.tech/sources/articles-on-jamie-tanna-software-engineer.md>)

Topics: [Zellij](<https://devfeed.tech/topics/zellij.md>), [Text-based user interface](<https://devfeed.tech/topics/tui.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [blogumentation](<https://devfeed.tech/tags/blogumentation.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [tmux](<https://devfeed.tech/tags/tmux.md>), [xorg](<https://devfeed.tech/tags/xorg.md>)

### AI overview

When existing tmux panes lose access to a restarted Xorg/X11 session, check the current DISPLAY value in a new terminal and export it in affected panes. The post also describes tmux's update-environment behavior and setting DISPLAY for new panes.

### Source excerpt

It happens infrequently enough to not investigate too much further, but sometimes I'll end up with my Xorg/X11 session crashing, or something else happening which leads to my existing tmux sessions failing to interact with the new X session, with errors like: % gh repo view --web Opening ... in your browser. Error: cannot open display: :0 % xsel xsel: Can't open display: (null) : Connection refused In this case, the existing panes/windows may end up seeing a related error about failing to connect to the display, but any new panes/windows created will be able to interact as expected. This is a bit of an annoying one, but one way we can solve this is to nudge these panes to use the new DISPLAY. In a new pane/window/terminal session, check the DISPLAY environment variable: % echo $DISPLAY :1 That's likely different to what it shows in one of those existing panes - if so, run: % export DISPLAY=:1 After which, you can then run commands that interact with your X session. It's possible to run: % tmux set-environment DISPLAY :0 Which will update all new panes - but as mentioned, tmux likely already handled that for you, as DISPLAY is one of the environment variables it updates, as per: % tmux show-options -g update-environment update-environment[0] DISPLAY ... Instead of doing this by hand, it's also possible (Via) to script this to ??.

## React 19.3 Adds a Canary browser() API for Opting Components Out of Server Rendering

DevFeed: [React 19.3 Adds a Canary browser() API for Opting Components Out of Server Rendering](<https://devfeed.tech/articles/react-19-3-adds-a-browser-api-giving-client-only-rendering-a-first-class-name-85215.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/10/react-19-3-browser-api/>)

Author: Daniel Curtis

Published: 2026-10-12T10:52:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [React](<https://devfeed.tech/topics/react.md>), [view transitions](<https://devfeed.tech/topics/view-transitions.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [developers](<https://devfeed.tech/tags/developers.md>), [development](<https://devfeed.tech/tags/development.md>), [feature](<https://devfeed.tech/tags/feature.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [news](<https://devfeed.tech/tags/news.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [react](<https://devfeed.tech/tags/react.md>), [react-19-3-browser-api](<https://devfeed.tech/tags/react-19-3-browser-api.md>), [react-dom](<https://devfeed.tech/tags/react-dom.md>), [rendering](<https://devfeed.tech/tags/rendering.md>), [server-side-rendering](<https://devfeed.tech/tags/server-side-rendering.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

React 19.3 adds the react-dom browser() API, which suspends a component during server rendering and lets it render normally in the browser. It can help with client-only data and hydration mismatches, and is currently marked Canary in the use reference.

### Source excerpt

React 19.3 was released on September 9, introducing several features including the react-dom browser() API. This API allows components to opt out of server-side rendering, addressing issues with components that rely on client-specific data. It provides a cleaner solution for managing hydration mismatches and supports conditional data fetching, enhancing flexibility for developers. By Daniel Curtis

## Inside Dogear's SwiftUI Architecture

DevFeed: [Inside Dogear's SwiftUI Architecture](<https://devfeed.tech/articles/inside-dogear-s-swiftui-architecture-62273.md>)

Original publisher: [Read original article](<https://hackernoon.com/inside-dogears-swiftui-architecture?source=rss>)

Author: Rockindash

Published: 2026-09-29T18:30:56Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [context-architecture](<https://devfeed.tech/topics/context-architecture.md>)

Tags: [apple-vision-ocr](<https://devfeed.tech/tags/apple-vision-ocr.md>), [dogear](<https://devfeed.tech/tags/dogear.md>), [json](<https://devfeed.tech/tags/json.md>), [local-first](<https://devfeed.tech/tags/local-first.md>), [open-library-api](<https://devfeed.tech/tags/open-library-api.md>), [revenuecat-storekit](<https://devfeed.tech/tags/revenuecat-storekit.md>), [shipaton](<https://devfeed.tech/tags/shipaton.md>), [storage](<https://devfeed.tech/tags/storage.md>), [swiftdata-local-storage](<https://devfeed.tech/tags/swiftdata-local-storage.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>), [swiftui-reading-app](<https://devfeed.tech/tags/swiftui-reading-app.md>), [visionkit-live-text](<https://devfeed.tech/tags/visionkit-live-text.md>)

### AI overview

The article explains Dogear's iOS architecture, including SwiftUI, local-first storage, book search APIs, widgets, and extensions. It describes how the app stores books and related reading material locally, shares limited snapshots with widgets, and searches multiple catalogs for books.

### Source excerpt

Inside Dogear's SwiftUI stack: SwiftData, VisionKit OCR, book APIs, widgets, RevenueCat purchases, and local-first storage.

## Loading Casio CZ-101 patch banks into the CZP-1 browser synth

DevFeed: [Loading Casio CZ-101 patch banks into the CZP-1 browser synth](<https://devfeed.tech/articles/boards-of-casio-61183.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/09/28/boards-of-casio/>)

Author: Anne Barela

Published: 2026-09-28T15:41:19Z

Content type: article

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [Web](<https://devfeed.tech/topics/web.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [browsing](<https://devfeed.tech/tags/browsing.md>), [casio](<https://devfeed.tech/tags/casio.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [extension](<https://devfeed.tech/tags/extension.md>), [google-drive](<https://devfeed.tech/tags/google-drive.md>), [how-tos](<https://devfeed.tech/tags/how-tos.md>), [json](<https://devfeed.tech/tags/json.md>), [midi](<https://devfeed.tech/tags/midi.md>), [music](<https://devfeed.tech/tags/music.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

A developer loaded shared Casio CZ-101 MIDI system exclusive patch data into the CZP-1 browser synth by converting it to a JSON bank file with Claude. The synth stores banks in browser slots and can share patch data through JSON files or URLs, without storing it on a server. Its web version omits the patches' post-processing effects.

### Source excerpt

The developer behind CZP-1, a web based recreation of the Casio CZ-101, came across a YouTube video by oliveoil22 and wanted those sounds in the browser synth. oliveoil22 had shared the CZ-101 patch data, so the next step was getting it loaded. The patch files came from a Google Drive link on the video page [...]

## No cheating allowed!!

DevFeed: [No cheating allowed!!](<https://devfeed.tech/articles/no-cheating-allowed-27397.md>)

Original publisher: [Read original article](<http://engineering.khanacademy.org/posts/no-cheating-allowed.htm>)

Author: Khan Academy

Published: 2015-08-17T22:00:00Z

Content type: article

Language: en

Sources: [Khan Academy](<https://devfeed.tech/sources/khan-academy.md>)

Topics: [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [API](<https://devfeed.tech/topics/api.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [cheating](<https://devfeed.tech/tags/cheating.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [classroom](<https://devfeed.tech/tags/classroom.md>), [client](<https://devfeed.tech/tags/client.md>), [code](<https://devfeed.tech/tags/code.md>), [control](<https://devfeed.tech/tags/control.md>), [cut-out](<https://devfeed.tech/tags/cut-out.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [experience](<https://devfeed.tech/tags/experience.md>), [failed](<https://devfeed.tech/tags/failed.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [function](<https://devfeed.tech/tags/function.md>), [hint](<https://devfeed.tech/tags/hint.md>), [hints](<https://devfeed.tech/tags/hints.md>), [image](<https://devfeed.tech/tags/image.md>), [images](<https://devfeed.tech/tags/images.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [internet](<https://devfeed.tech/tags/internet.md>), [news](<https://devfeed.tech/tags/news.md>), [students](<https://devfeed.tech/tags/students.md>), [web-frontend](<https://devfeed.tech/tags/web-frontend.md>)

### AI overview

Students could take hints while offline because the client's hint request was lost, leaving the server to count the problem as correct. Khan Academy changed the client to save user actions in a local-storage queue and retry failed requests after reconnection, using linear backoff to avoid repeatedly sending requests while offline. This improves reliability on spotty connections and could support a later offline mode. The tradeoff is that someone who edits local storage can erase a queued hint request; the article says this was accepted because typical classroom users were unlikely to do so and the activity could be visible to a teacher.

### Source excerpt

By Phillip Lemons The problem Recently, a number of students on Khan Academy found a way to cheat ... Read more

## JavaScript Broadcast Channel API Tab Sync with Fallbacks

DevFeed: [JavaScript Broadcast Channel API Tab Sync with Fallbacks](<https://devfeed.tech/articles/javascript-broadcast-channel-api-tab-sync-with-fallbacks-50857.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/javascript-broadcast-channel-api-tab-sync/>)

Author: SitePoint Team

Published: 2026-09-06T00:04:09Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [browser](<https://devfeed.tech/topics/browser.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [storage](<https://devfeed.tech/tags/storage.md>), [sync](<https://devfeed.tech/tags/sync.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

A TypeScript-focused tutorial on synchronizing state across browser tabs with the Broadcast Channel API. It explains a storage-event fallback, runtime support detection, deduplication, conflict resolution, cleanup, and Playwright testing.

### Source excerpt

Synchronize state across browser tabs using the JavaScript Broadcast Channel API, with localStorage storage event fallbacks and conflict handling. Continue reading JavaScript Broadcast Channel API Tab Sync with Fallbacks on SitePoint.

## Migrating 1,100 files to Redux Toolkit v2 without freezing the Kibana monorepo

DevFeed: [Migrating 1,100 files to Redux Toolkit v2 without freezing the Kibana monorepo](<https://devfeed.tech/articles/migrating-1-100-files-to-redux-toolkit-v2-without-freezing-the-kibana-monorepo-78883.md>)

Original publisher: [Read original article](<https://www.elastic.co/search-labs/blog/redux-toolkit-v2-migration-kibana-monorepo>)

Author: Walter Rafelsberger

Published: 2026-08-28T15:20:00Z

Content type: tutorial

Language: en

Sources: [Elasticsearch Labs](<https://devfeed.tech/sources/elasticsearch-labs.md>)

Topics: [Redux](<https://devfeed.tech/topics/redux.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>)

Tags: [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [eslint](<https://devfeed.tech/tags/eslint.md>), [inside-elastic](<https://devfeed.tech/tags/inside-elastic.md>), [kibana](<https://devfeed.tech/tags/kibana.md>), [migration](<https://devfeed.tech/tags/migration.md>), [monorepo](<https://devfeed.tech/tags/monorepo.md>), [redux](<https://devfeed.tech/tags/redux.md>), [v2](<https://devfeed.tech/tags/v2.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

Kibana migrated about 1,100 files to Redux Toolkit v2 while letting teams continue feature work. The approach made v2 the default and kept v1 under explicit npm aliases, using webpack configuration, Yarn resolutions, and an ESLint rule to prevent incompatible versions from crossing. Teams can migrate in batches based on dependencies and shared Redux types.

### Source excerpt

Kibana gave Redux Toolkit v2 the default package name and pushed v1 onto an explicit alias, which inverts the usual migration order. Webpack externals, yarn resolutions and an ESLint rule keep React Redux v7 and v9 out of each other's way.

## Session Timeouts: The Overlooked Accessibility Barrier In Authentication Design

DevFeed: [Session Timeouts: The Overlooked Accessibility Barrier In Authentication Design](<https://devfeed.tech/articles/session-timeouts-the-overlooked-accessibility-barrier-in-authentication-design-4273.md>)

Original publisher: [Read original article](<https://smashingmagazine.com/2026/04/session-timeouts-accessibility-barrier-authentication-design/>)

Author: hello@smashingmagazine.com (Eleanor Hecks)

Published: 2026-04-20T13:00:00Z

Content type: article

Language: en

Sources: [Smashing Magazine](<https://devfeed.tech/sources/articles-on-smashing-magazine-for-web-designers-and-developers.md>)

Topics: [sessions](<https://devfeed.tech/topics/sessions.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Web Content Accessibility Guidelines](<https://devfeed.tech/topics/web-content-accessibility-guidelines.md>), [inclusive design](<https://devfeed.tech/topics/inclusive-design.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [absolute](<https://devfeed.tech/tags/absolute.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessibility-guidelines](<https://devfeed.tech/tags/accessibility-guidelines.md>), [accessibility-requirements](<https://devfeed.tech/tags/accessibility-requirements.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [adhd](<https://devfeed.tech/tags/adhd.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [autism](<https://devfeed.tech/tags/autism.md>), [backend](<https://devfeed.tech/tags/backend.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [browser](<https://devfeed.tech/tags/browser.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [design](<https://devfeed.tech/tags/design.md>), [people-with-disabilities](<https://devfeed.tech/tags/people-with-disabilities.md>), [session-management](<https://devfeed.tech/tags/session-management.md>), [usability](<https://devfeed.tech/tags/usability.md>), [ux](<https://devfeed.tech/tags/ux.md>)

### AI overview

Session timeouts can lock people with motor, cognitive, or vision impairments out of forms while they are still working, and may erase unsaved progress. The excerpt recommends stating session limits in advance, allowing users to extend them, and preserving form data for restoration after reauthentication. Timeout warnings need enough time to act and must work with screen readers: a cited countdown announced every second disrupted navigation. Activity based timeouts can mistake slow input or reading for inactivity; absolute limits may be more predictable when users know when they expire. WCAG Guideline 2.9.2 is presented as guidance for adjustable time limits, with exceptions such as limited inventory ticket sales and shared computers. Some browsing tasks may not need arbitrary expiration, while timed exams may require accommodations.

### Source excerpt

Poorly handled session timeouts are more than a technical inconvenience. They can become serious accessibility barriers that interrupt essential online tasks, especially for people with disabilities. Here is how to implement thoughtful session management that improves usability, reduces frustration, and helps create a more accessible and respectful web.

## Node.js 25.2.1 (Current)

DevFeed: [Node.js 25.2.1 (Current)](<https://devfeed.tech/articles/node-js-25-2-1-current-2837.md>)

Original publisher: [Read original article](<https://nodejs.org/en/blog/release/v25.2.1>)

Published: 2025-11-17T09:43:14Z

Content type: release

Language: en

Sources: [Node.js](<https://devfeed.tech/sources/node-js-blog.md>)

Topics: [Node.js](<https://devfeed.tech/topics/node-js.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [V8](<https://devfeed.tech/topics/v8.md>), [cross-platform](<https://devfeed.tech/topics/cross-platform.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

Node.js 25.2.1 is a Current release that reverts breaking behavior on an experimental API and postpones it to Node.js 26.0.0. It also fixes the documented RSA-PSS saltLength default, backports a V8 change, and clarifies the experimental status of Web Storage support.

### Source excerpt

Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

## Add Types To Your Local Storage During End-to-End Tests

DevFeed: [Add Types To Your Local Storage During End-to-End Tests](<https://devfeed.tech/articles/add-types-to-your-local-storage-during-end-to-end-tests-28900.md>)

Original publisher: [Read original article](<https://glebbahmutov.com/blog/type-local-storage-test-commands/>)

Author: Gleb Bahmutov

Published: 2025-09-16T04:00:00Z

Content type: tutorial

Language: en

Sources: [Gleb Bahmutov](<https://devfeed.tech/sources/gleb-bahmutov.md>)

Topics: [Cypress](<https://devfeed.tech/topics/cypress.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [test](<https://devfeed.tech/topics/test.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [advice](<https://devfeed.tech/tags/advice.md>), [code](<https://devfeed.tech/tags/code.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [process](<https://devfeed.tech/tags/process.md>), [storage](<https://devfeed.tech/tags/storage.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This tutorial explains how to set and verify localStorage data in Cypress end-to-end tests. It identifies ordering problems caused by synchronous access and queued Cypress commands, then recommends typed custom Cypress commands to manage test state consistently.

### Source excerpt

If your web application stores data locally in the localSt

## Top 10 web hacking techniques of 2024

DevFeed: [Top 10 web hacking techniques of 2024](<https://devfeed.tech/articles/top-10-web-hacking-techniques-of-2024-7709.md>)

Original publisher: [Read original article](<https://portswigger.net/research/top-10-web-hacking-techniques-of-2024>)

Author: James Kettle

Published: 2025-02-04T15:01:48Z

Content type: article

Language: en

Sources: [PortSwigger Research](<https://devfeed.tech/sources/portswigger-research.md>)

Topics: [Hacking](<https://devfeed.tech/topics/hacking.md>), [Application Security](<https://devfeed.tech/topics/application-security.md>), [Security](<https://devfeed.tech/topics/security.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [account takeover](<https://devfeed.tech/topics/account-takeover.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [account-takeover](<https://devfeed.tech/tags/account-takeover.md>), [cache](<https://devfeed.tech/tags/cache.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [hacking](<https://devfeed.tech/tags/hacking.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [research](<https://devfeed.tech/tags/research.md>), [security](<https://devfeed.tech/tags/security.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [web](<https://devfeed.tech/tags/web.md>), [xss](<https://devfeed.tech/tags/xss.md>)

### AI overview

This annual community-powered review identifies notable web security research and hacking techniques from 2024. The supplied excerpts discuss OAuth flow hijacking through Cookie Tossing, risks involving cookies and JavaScript's Same-Origin Policy, and a ChatGPT account takeover using inconsistent decoding, path traversal, and Web Cache Deception.

### Source excerpt

Welcome to the Top 10 Web Hacking Techniques of 2024, the 18th edition of our annual community-powered effort to identify the most innovative must-read web security research published in the last year

## Session Tracking Via Parameter Injection

DevFeed: [Session Tracking Via Parameter Injection](<https://devfeed.tech/articles/session-tracking-via-parameter-injection-81470.md>)

Original publisher: [Read original article](<https://stack.convex.dev/track-sessions-without-cookies>)

Author: Stack

Published: 2024-01-22T17:00:00Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [sessions](<https://devfeed.tech/topics/sessions.md>), [React](<https://devfeed.tech/topics/react.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [browser](<https://devfeed.tech/tags/browser.md>), [context](<https://devfeed.tech/tags/context.md>), [convenience](<https://devfeed.tech/tags/convenience.md>), [database](<https://devfeed.tech/tags/database.md>), [fullstack](<https://devfeed.tech/tags/fullstack.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [react](<https://devfeed.tech/tags/react.md>)

### AI overview

This tutorial explains how to track per-tab or per-browser sessions in Convex without cookies. It covers storing opaque session IDs in browser storage, passing them through React helpers to server functions, refreshing IDs at login and logout, and handling security, caching, and write contention.

### Source excerpt

Advice and resources for session tracking per-tab or per-browser via localStorage / sessionStorage using React Context, hooks, and some utilities to make your life easier.

## Client-side JavaScript Instrumentation

DevFeed: [Client-side JavaScript Instrumentation](<https://devfeed.tech/articles/client-side-javascript-instrumentation-92040.md>)

Original publisher: [Read original article](<https://blog.doyensec.com/2023/09/25/clientside-javascript-instrumentation.html>)

Published: 2023-09-24T22:00:00Z

Content type: tutorial

Language: en

Sources: [Doyensec](<https://devfeed.tech/sources/doyensec.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [XSS](<https://devfeed.tech/topics/xss.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Firefox extension](<https://devfeed.tech/topics/firefox-extension.md>), [Extension](<https://devfeed.tech/topics/extension.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [auditing](<https://devfeed.tech/tags/auditing.md>), [automation](<https://devfeed.tech/tags/automation.md>), [browser](<https://devfeed.tech/tags/browser.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [client](<https://devfeed.tech/tags/client.md>), [console](<https://devfeed.tech/tags/console.md>), [doyensec](<https://devfeed.tech/tags/doyensec.md>), [doyensecurity](<https://devfeed.tech/tags/doyensecurity.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [extension](<https://devfeed.tech/tags/extension.md>), [frida](<https://devfeed.tech/tags/frida.md>), [hacking](<https://devfeed.tech/tags/hacking.md>), [handler](<https://devfeed.tech/tags/handler.md>), [hooking](<https://devfeed.tech/tags/hooking.md>), [infosec](<https://devfeed.tech/tags/infosec.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [offensive](<https://devfeed.tech/tags/offensive.md>), [pentest](<https://devfeed.tech/tags/pentest.md>), [pentester](<https://devfeed.tech/tags/pentester.md>), [questions](<https://devfeed.tech/tags/questions.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [testing](<https://devfeed.tech/tags/testing.md>), [thinking](<https://devfeed.tech/tags/thinking.md>), [tracing](<https://devfeed.tech/tags/tracing.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [wasm](<https://devfeed.tech/tags/wasm.md>), [xss](<https://devfeed.tech/tags/xss.md>)

### AI overview

The article's method is to hook JavaScript functions tied to a testing question, then trace where they are used; for code that is not native, it uses conditional breakpoints to instrument values in the function's scope. A browser extension content script can run before page code and hook native functions, but injected page code remains subject to page restrictions such as the same origin policy. The author warns that asynchronous setup can lose the race to the page. Eval Villain automates configurable sinks and recursive decoding of sources; the article also shows how to achieve similar results with a custom extension. For non-native code, a conditional breakpoint whose expression ends in `&& false` runs instrumentation without pausing and can be disabled individually. The article recommends scanning call stacks and nearby method names before reading minified code deeply. These are practical techniques described in the supplied excerpt, not a claim that they work in every case.

### Source excerpt

There is a ton of code that is not worth your time and brain power. Binary reverse engineers commonly skip straight to the important code by using ltrace, strace, or frida. You can do the same for client side JavaScript using only common browser features. This will save time, make testing more fun and help keep your attention span available for the code that deserves your focus. This blog introduces my thinking processes and practical methods for instrumenting client side JavaScript. This processes have helped me to find deeply embedded bugs in complicated codebases with relative ease. I have been using many of these tricks for so long that I implemented them in a web extension called Eval Villain. While I will introduce you to some of Eval Villain's brand new features, I will also show how to get the same results without Eval Villain. General Method and Thinking Testing an application often raises questions as to how the application works. The client must know the answers to some of these questions if the application is to function. Consider the following questions: What parameters does the server accept? How are parameters encoded/encrypted/serialized? How does the wasm module affect the DOM? Where are the DOM XSS sinks and what sanitization is being applied? Where are the post message handlers? How is cross-origin communication between ads being accomplished? For the web page to work, it needs to know the answer to these questions. This means we can find our answers in the JavaScript too. Notice that each of these questions imply the use of particular JavaScript functions. For example, how would the client implement a post message handler without ever calling addEventListener? So "Step 1" is hooking these interesting functions, verifying the use case is what we are interested in and tracing back. In JavaScript, it would look like this: (() => { const orig = window.addEventListener; window.addEventListener = function(a, b) { if (a === "message") { console.log("pos

## Google Summer of Code 2023 - Web UI for Visualization and Exploration

DevFeed: [Google Summer of Code 2023 - Web UI for Visualization and Exploration](<https://devfeed.tech/articles/google-summer-of-code-2023-web-ui-for-visualization-and-exploration-65209.md>)

Original publisher: [Read original article](<https://qdrant.tech/blog/web-ui-gsoc/>)

Author: info@qdrant.tech (Andrey Vasnetsov)

Published: 2023-08-28T05:00:00Z

Content type: article

Language: en

Sources: [Qdrant Blog on Qdrant - Vector Search Engine](<https://devfeed.tech/sources/qdrant-blog-on-qdrant-vector-search-engine.md>)

Topics: [Graph Mining](<https://devfeed.tech/topics/graph-mining.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [CSS Framework](<https://devfeed.tech/topics/css-framework.md>), [Userscripts](<https://devfeed.tech/topics/userscript.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [console](<https://devfeed.tech/tags/console.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [features](<https://devfeed.tech/tags/features.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [google-summer-of-code](<https://devfeed.tech/tags/google-summer-of-code.md>), [gsoc-23](<https://devfeed.tech/tags/gsoc-23.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [json](<https://devfeed.tech/tags/json.md>), [language-support](<https://devfeed.tech/tags/language-support.md>), [project](<https://devfeed.tech/tags/project.md>), [qdrant](<https://devfeed.tech/tags/qdrant.md>), [recommendation](<https://devfeed.tech/tags/recommendation.md>), [vector](<https://devfeed.tech/tags/vector.md>), [vector-reduction](<https://devfeed.tech/tags/vector-reduction.md>), [vector-similarity](<https://devfeed.tech/tags/vector-similarity.md>), [visualization](<https://devfeed.tech/tags/visualization.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Kartik Gupta describes building a browser-based Web UI for exploring Qdrant vector data during Google Summer of Code 2023. The interface included collection and point views, a query editor with autocomplete and error checks, and a visualization that reduced vectors to two dimensions. The post also covers implementation challenges involving OpenAPI suggestions, Web Workers, and coordinating query requests and responses.

### Source excerpt

Editor's note: The project follow-ups describe plans from 2023. This 2023 post was edited for length and clarity. Read the original version. I'm Kartik Gupta, and I worked on Qdrant's Web UI during Google Summer of Code 2023. Exploring vector data through API responses alone made it hard to see collections, inspect points, and understand their relationships. My project brought those tasks into a browser interface. This post describes the interface I built in 2023. Screenshots show that version; use the current Web UI documentation for setup and instructions.

## The Better WebViews Collection

DevFeed: [The Better WebViews Collection](<https://devfeed.tech/articles/the-better-webviews-collection-26011.md>)

Original publisher: [Read original article](<https://proandroiddev.com/the-better-webviews-collection-778c7bd709e6?source=rss-2ffcf6104135------2>)

Author: Stacy Devino

Published: 2023-05-09T14:04:27Z

Content type: tutorial

Language: en

Sources: [Stacy Devino](<https://devfeed.tech/sources/stories-by-stacy-devino-on-medium.md>)

Topics: [Front end](<https://devfeed.tech/topics/frontend.md>), [aosp](<https://devfeed.tech/topics/aosp.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [Web](<https://devfeed.tech/topics/web.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [all](<https://devfeed.tech/tags/all.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-fire](<https://devfeed.tech/tags/amazon-fire.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [aosp](<https://devfeed.tech/tags/aosp.md>), [app](<https://devfeed.tech/tags/app.md>), [apps](<https://devfeed.tech/tags/apps.md>), [attention](<https://devfeed.tech/tags/attention.md>), [avoid](<https://devfeed.tech/tags/avoid.md>), [base](<https://devfeed.tech/tags/base.md>), [based](<https://devfeed.tech/tags/based.md>), [basic](<https://devfeed.tech/tags/basic.md>), [best](<https://devfeed.tech/tags/best.md>), [better](<https://devfeed.tech/tags/better.md>), [browser](<https://devfeed.tech/tags/browser.md>), [cache](<https://devfeed.tech/tags/cache.md>), [can](<https://devfeed.tech/tags/can.md>), [collection](<https://devfeed.tech/tags/collection.md>), [mobile-app-development](<https://devfeed.tech/tags/mobile-app-development.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

The source recommends treating Android WebViews as a practical option while accounting for provider and device variation. It advises checking WebViewFeature support and permissions instead of relying on Android OS version, and using AndroidX WebKit compatibility APIs. For responsive layouts, it suggests TEXT_AUTOSIZING, loadWithOverviewMode, and useWideViewPort. It recommends disabling unneeded storage, JavaScript, and file access, enabling Safe Browsing where supported, and validating URLs before loadUrl; local assets can use WebViewAssetLoader. Performance guidance emphasizes optimizing web code and weighing cache modes. For testing, it describes System WebView Shell, Chrome DevTools inspection, and AndroidX tracing, with noted DevTools limitations. For web-to-app messaging it favors HTML5 MessageChannel with WebMessageCompat, subject to page-load and Android 6.0+ constraints. It also explains that WebView cookies manage sessions and may need saving and restoration to preserve login across app restarts.

### Source excerpt

The Better Android WebViews Collection WebViews are one of the most controversial subjects in the Community and unfortunately have been much maligned by developers. WebViews can be extremely useful and the best first implementation for a ton of situations from Login and Payments to User Support and Legal. Using WebViews, you can allocate your resources and attention to what your customers value most. WebView-primary apps even make up almost a third of all Apps on the Google Play Store. So, how do we make really good WebViews? Knowledge Drop 🧠💧 WebKit implementation varies ⏺ Non-Chromium-based (Non-GMS devices and some vendors) ⏺ Not all Play-Enabled devices have all features. Use isFeatureSupported and permission checks rather than @Targetan Android OS to be safe. ⏺ Customized Chromium Base (Samsung and Amazon Fire devices) There are 3 "Standard" WebViews available embedded as providers. ⏺ "Standalone" AOSP basic implementation and standard for 5.X-6.X ⏺ "Monochrome" public and AOSP-accessible unified Browser and WebView for 7.X-9.X ⏺ "Trichrome" which is a base Core Library, WebView, and Chrome browser all separated for 10.X -- Now (13.X) Use the modern WebViewCompat extensions with AndroidX Webkit / AndroidX Browser to avoid compatibility issues & version-based errors All WebView instances in your app will share the same Cache and Dom Storage, improving performance and memory usage Trust the Chromium Docs first over android.dev ⏺ WebView is now built and maintained by the Chrome team, so their documentation is going to be the most accurate and extensive WebView Settings for Success 🏆 "Make it look like Chrome" or "Why is Scaling broken?!?!?!" ReactJS, VueJS and similar front end frameworks rely on viewport and framing information in order to enable their dynamic sizing and styling features. By Default, what exists on Chrome is not what is enabled in the WebView and it requires some browser/web rendering knowledge to even figure out what is going wrong. Try these ou

## Anonymous Users via Sessions

DevFeed: [Anonymous Users via Sessions](<https://devfeed.tech/articles/anonymous-users-via-sessions-81273.md>)

Original publisher: [Read original article](<https://stack.convex.dev/anonymous-users-via-sessions>)

Author: Stack

Published: 2023-02-02T20:00:01Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [account](<https://devfeed.tech/topics/account.md>), [Single sign-on (SSO)](<https://devfeed.tech/topics/sso.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [fullstack](<https://devfeed.tech/tags/fullstack.md>), [login](<https://devfeed.tech/tags/login.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [sessions](<https://devfeed.tech/tags/sessions.md>)

### AI overview

The post explains how a Convex app can create anonymous users tied to browser sessions, allowing people to use the app before signing up. It demonstrates keeping names consistent across refreshes and linking messages to user IDs, then describes tradeoffs involving logged-in users, multiple sessions, and protecting session IDs as credentials.

### Source excerpt

Getting users to sign up for a new service before seeing any benefits is challenging. In this post, we looked at a couple of strategies for managing user information without requiring a login.

## Sessions: Wrappers as "Middleware"

DevFeed: [Sessions: Wrappers as "Middleware"](<https://devfeed.tech/articles/sessions-wrappers-as-middleware-81445.md>)

Original publisher: [Read original article](<https://stack.convex.dev/sessions-wrappers-as-middleware>)

Author: Stack

Published: 2023-01-27T20:00:01Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [sessions](<https://devfeed.tech/topics/sessions.md>), [Firestore](<https://devfeed.tech/topics/firestore.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [middleware](<https://devfeed.tech/topics/middleware.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [auth](<https://devfeed.tech/tags/auth.md>), [caching](<https://devfeed.tech/tags/caching.md>), [context](<https://devfeed.tech/tags/context.md>), [convex](<https://devfeed.tech/tags/convex.md>), [fullstack](<https://devfeed.tech/tags/fullstack.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [sessions](<https://devfeed.tech/tags/sessions.md>)

### AI overview

The article explains how to implement session-specific data in Convex by passing session IDs through server function wrappers and React client hooks. It discusses storing session data on the server, choosing between sessionStorage and localStorage, and handling anonymous users, authentication, and data shared across browser tabs.

### Source excerpt

An approach to server-persisted session data with Convex, wrapping your server functions and storing a session ID on the client.

## Implementing Presence with Convex

DevFeed: [Implementing Presence with Convex](<https://devfeed.tech/articles/implementing-presence-with-convex-81427.md>)

Original publisher: [Read original article](<https://stack.convex.dev/presence-with-convex>)

Author: Stack

Published: 2023-01-10T00:00:44Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [Web](<https://devfeed.tech/topics/web.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [browser](<https://devfeed.tech/tags/browser.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [fullstack](<https://devfeed.tech/tags/fullstack.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [reactivity](<https://devfeed.tech/tags/reactivity.md>), [walkthroughs](<https://devfeed.tech/tags/walkthroughs.md>), [web](<https://devfeed.tech/tags/web.md>), [web-app](<https://devfeed.tech/tags/web-app.md>)

### AI overview

A practical guide to adding real-time presence features to a web app with Convex, including heartbeats, online status, typing indicators, shared cursors, and caching behavior. It also discusses tradeoffs in update frequency, latency, durability, and scaling presence data.

### Source excerpt

Some patterns for incorporating presence into a web app leveraging Convex, and sharing some tips & utilities I built along the way.

## Building Flicker-Free Dark Mode for React/Next.js Apps

DevFeed: [Building Flicker-Free Dark Mode for React/Next.js Apps](<https://devfeed.tech/articles/the-quest-for-the-perfect-dark-mode-45227.md>)

Original publisher: [Read original article](<https://www.joshwcomeau.com/react/dark-mode/>)

Author: Josh W. Comeau

Published: 2020-04-22T00:45:00Z

Content type: tutorial

Language: en

Sources: [Josh Comeau's blog](<https://devfeed.tech/sources/josh-comeau-s-blog.md>)

Topics: [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [React](<https://devfeed.tech/topics/react.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [CSS](<https://devfeed.tech/topics/css.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [dark-mode](<https://devfeed.tech/tags/dark-mode.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [react](<https://devfeed.tech/tags/react.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial explains how to build a customizable, flicker-free dark mode for statically generated React and Next.js applications. It covers theme preferences, operating-system color settings, server-rendered HTML, React state, CSS variables, and localStorage persistence.

### Source excerpt

Dark Mode has become common enough that it's a user expectation. And yet, creating the perfect dark mode with a statically-built site/app is deceptively tricky. In this in-depth tutorial, we'll see how to build the perfect, flicker-free, customizable theming solution for React/Next.js apps.

## Persisting React State in localStorage

DevFeed: [Persisting React State in localStorage](<https://devfeed.tech/articles/persisting-react-state-in-localstorage-45234.md>)

Original publisher: [Read original article](<https://www.joshwcomeau.com/react/persisting-react-state-in-localstorage/>)

Author: Josh W. Comeau

Published: 2020-02-24T17:00:00Z

Content type: tutorial

Language: en

Sources: [Josh Comeau's blog](<https://devfeed.tech/sources/josh-comeau-s-blog.md>)

Topics: [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [React](<https://devfeed.tech/topics/react.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [react](<https://devfeed.tech/tags/react.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial shows how to create a custom React hook that persists React state in localStorage and restores it when the page loads. It demonstrates the approach with sticky form controls and a counter.

### Source excerpt

A common thing in React development is that we want to store a bit of React state in localStorage, and re-initialize from that value on the next page-load. This quick tutorial shows you how we can build a custom hook that does exactly this!

## How to show Groovy and Kotlin DSL samples side-by-side

DevFeed: [How to show Groovy and Kotlin DSL samples side-by-side](<https://devfeed.tech/articles/how-to-show-groovy-and-kotlin-dsl-samples-side-by-side-24638.md>)

Original publisher: [Read original article](<https://blog.gradle.org/groovy-kotlin-dsl-samples>)

Author: Eric Wendelin

Published: 2018-10-11T04:00:00Z

Content type: tutorial

Language: en

Sources: [Gradle](<https://devfeed.tech/sources/the-gradle-blog.md>)

Topics: [Groovy](<https://devfeed.tech/topics/groovy.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [CSS](<https://devfeed.tech/topics/css.md>), [HTML](<https://devfeed.tech/topics/html.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [interactive web design](<https://devfeed.tech/topics/interactive-web-design.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [github](<https://devfeed.tech/tags/github.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [groovy](<https://devfeed.tech/tags/groovy.md>), [guides](<https://devfeed.tech/tags/guides.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

A tutorial on displaying Groovy and Kotlin DSL examples side by side in GitHub READMEs and web-based documentation. It covers Markdown and HTML disclosure elements for GitHub, plus a CSS and vanilla JavaScript language-selector UI for websites that remembers the user's preferred language.

### Source excerpt

Gradle build script samples now have Kotlin DSL snippets alongside the Groovy snippets in Gradle 5.0 docs and many Gradle guides. We want you to be able to show both DSLs in your READMEs and web-based documentation, so this post shows ways you can display examples in multiple languages on GitHub and on your websites. Groovy and Kotlin DSL samples on GitHub It's hard to find OSS projects that don't have a README.md or README.adoc. Though there aren't many ways to make these README pages interactive, we can use the <details> and <summary> HTML elements within Markdown or Asciidoc achieve a bit of interactivity yet avoid the verbosity of having multiple subsequent samples in view. Use these code snippets to show multi-language snippets on GitHub. <details open> <summary>Groovy</summary> ```groovy logging.captureStandardOutput LogLevel.INFO println 'A message which is logged at INFO level' ``` </details> <details> <summary>Kotlin</summary> ```kotlin logging.captureStandardOutput(LogLevel.INFO) println("A message which is logged at INFO level") ``` </details> ++++ <details open> <summary>Groovy</summary> ++++ [source,groovy] ---- logging.captureStandardOutput LogLevel.INFO println 'A message which is logged at INFO level' ---- ++++ </details> ++++ ++++ <details> <summary>Kotlin</summary> ++++ [source,kotlin] ---- logging.captureStandardOutput(LogLevel.INFO) println("A message which is logged at INFO level") ---- ++++ </details> ++++ Here it is in action: Note that this won't work for jekyll or static websites, so there we have to write a bit of code. Groovy and Kotlin DSL samples on the web With a bit of CSS and JavaScript, you can make a nice little language selector UI that remembers user selections. The combination of this vanilla CSS, HTML, and JavaScript creates what you see at the top of the post. A little bit about what the code does: First, the JS initializes the preferred language, getting and storing in window.localStorage so that user preferences are saved. Ne

## localStorage and sessionStorage in Safari's private mode

DevFeed: [localStorage and sessionStorage in Safari's private mode](<https://devfeed.tech/articles/localstorage-and-sessionstorage-in-safari-s-private-mode-37306.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/localstorage-and-sessionstorage-in-safaris-private-mode/>)

Author: Stanko

Published: 2017-08-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [Code](<https://devfeed.tech/topics/code.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [error](<https://devfeed.tech/tags/error.md>), [export](<https://devfeed.tech/tags/export.md>), [ls](<https://devfeed.tech/tags/ls.md>), [null](<https://devfeed.tech/tags/null.md>), [object](<https://devfeed.tech/tags/object.md>), [qa](<https://devfeed.tech/tags/qa.md>), [quota](<https://devfeed.tech/tags/quota.md>), [return](<https://devfeed.tech/tags/return.md>), [safari](<https://devfeed.tech/tags/safari.md>), [storage](<https://devfeed.tech/tags/storage.md>), [test](<https://devfeed.tech/tags/test.md>), [value](<https://devfeed.tech/tags/value.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

This article explains that Safari private mode sets localStorage and sessionStorage limits to zero, preventing writes. It presents a localStorage facade that silently ignores storage operations when storage is unavailable, avoiding application errors.

### Source excerpt

If you didn't know, in Safari's private mode both localStorage and sessionStorage are not working. To be exact, Safari sets storage's limit to 0, so you can't write anything to it. I keep forgetting this, until QA people report it at some point. So I quickly wrote a small facade for it, which fails silently in this case. That means it still doesn't work but it won't throw an error and break your application. This is the version for localStorage, just replace it with sessionStorage if you need it. const LS_TEST_KEY = 'ls-test'; let isLocalStorageSupported = typeof localStorage === 'object'; // Try to try { localStorage.setItem(LS_TEST_KEY, 'test'); localStorage.removeItem(LS_TEST_KEY); } catch (e) { isLocalStorageSupported = false; // If we get error that we exceeded storage's quota // but storage is still empty we are in private mode if (e.code === DOMException.QUOTA_EXCEEDED_ERR && localStorage.length === 0) { // Private mode } else { throw e; } } const LocalStorage = { getItem: (key) => { if (isLocalStorageSupported) { return localStorage.getItem(key); } return null; }, setItem: (key, value) => { if (isLocalStorageSupported) { localStorage.setItem(key, value); } }, removeItem: (key) => { if (isLocalStorageSupported) { localStorage.removeItem(key); } }, }; export default LocalStorage;

[Next page](<https://devfeed.tech/topics/localstorage.md?cursor=WyIyMDE3LTA4LTA5VDAwOjAwOjAwKzAwOjAwIiwgIjIwMTVjZjZhLWVmMGYtNGE0NC05YmM0LWMxZjkyNzY2MjIxNiJd>)