u/BreakingChangeDev

▲ 2 r/PWA

My approach for creating data while offline

Hi,

I wanted to share my approach to supporting data creation while offline and reliably synchronizing it once a connection is available again.

I build PWAs with Angular and NgRx. In my original implementation, I found that persisting and replaying actions that trigger API requests worked well as an offline queue.

This library is based on that working implementation. I used Codex to help extract the reusable functionality and turn it into an open-source library.

It’s still in alpha, and I’d appreciate feedback on the idea and API.

Interactive demo:

https://poodlelab.github.io/ngrx-offline/

Repository:

https://github.com/poodlelab/ngrx-offline

reddit.com
u/BreakingChangeDev — 9 days ago

Anybody still using NGRX? I built ngrx-offline

Even in the age of signals, I still enjoy using NgRx. In previous apps, I handled offline writes by storing work locally and replaying it when the connection returned.

I’ve tried to extract that pattern into an open-source library. Applications can keep using a fairly normal NgRx workflow, while the library handles durable IndexedDB queueing, retries, related records created offline, and client-to-server ID mapping. Instead of persisting raw actions, it stores explicitly defined operations and emits typed NgRx lifecycle actions.

It’s still in alpha, and I’m trying to find out whether this would be useful to anyone else. I’d really appreciate honest feedback on the idea and the API.

Interactive demo:

https://poodlelab.github.io/ngrx-offline/

Repository:

https://github.com/poodlelab/ngrx-offline

reddit.com
u/BreakingChangeDev — 9 days ago
▲ 0 r/dotnet

I built Tracebag – a web UI for dotnet-counters and dotnet-trace in Docker containers

I always found using dotnet-counters and dotnet-trace impractical, especially for containerized .NET APIs, so I built a small web app to make it easier.

The result is Tracebag.

It lets you observe running .NET containers, inspect runtime counters, and create dotnet-trace artifacts from your browser.

Source code: https://github.com/poodlelab/tracebag

Feedback is very welcome.

u/BreakingChangeDev — 27 days ago