Gathering detailed insights and metrics for @trap_stevo/tidesync
Gathering detailed insights and metrics for @trap_stevo/tidesync
Gathering detailed insights and metrics for @trap_stevo/tidesync
Gathering detailed insights and metrics for @trap_stevo/tidesync
npm install @trap_stevo/tidesync
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
Command the flow of real-time data like never before.
TideSync obliterates state inconsistencies, delivering instantaneous, fine-grained reactivity with WebSocket-driven precision. Built for speed, scalability, and dynamic event synchronization, it powers live dashboards, multiplayer experiences, chat systems, and beyond.
🌟 Zero unnecessary re-renders
🌟 State exists only when needed – no wasted memory
🌟 Effortless state derivation – eliminate unnecessary useEffects
🌟 Auto-reconnects with intelligent event recovery
💥 TideSync doesn’t just manage state – it unleashes it.
✅ Real-time, WebSocket-driven state updates – No polling, just instant synchronization.
✅ Fine-grained subscriptions – Only affected components re-render.
✅ Derived state support – Eliminates useEffect
overhead.
✅ Lazy-loaded state – If it’s not used, it doesn’t exist.
✅ Auto-reconnection & event persistence – Even unstable connections stay functional.
✅ Blazing-fast event handling – Built for high-performance apps.
1npm install @trap_stevo/tidesync
TideSyncProvider
1import { TideSyncProvider } from "@trap_stevo/tidesync"; 2 3function App() { 4 return ( 5 <TideSyncProvider tideURL="ws://localhost:8080"> 6 <MainComponent /> 7 </TideSyncProvider> 8 ); 9}
useTideSyncState
1import { useTideSyncState } from "@trap_stevo/tidesync"; 2 3const Counter = () => { 4 const [count, setCount] = useTideSyncState("count", 0); 5 6 return ( 7 <div> 8 <p>Count: {count}</p> 9 <button onClick={() => setCount(count + 1)}>Increment</button> 10 </div> 11 ); 12};
🔥 State updates are broadcasted in real-time across all components!
useTideDerivedState
1import { useTideSyncState, useTideDerivedState } from "@trap_stevo/tidesync"; 2 3const ComputedComponent = () => { 4 const [count] = useTideSyncState("count", 0); 5 const doubled = useTideDerivedState("doubled", () => count * 2); 6 7 return <p>Doubled Count: {doubled}</p>; 8};
🔥 No re-renders, no extra computations – just pure speed.
1<TideSyncProvider 2 tideURL="ws://localhost:8080" 3 socketName="LiveSync" 4 eventNames={{ 5 count: "update_count", 6 users: "sync_users" 7 }} 8 maxReconnectionAttempts={Infinity} 9 reconnectionAttempts={5} 10 maxReconnectDelay={10000} 11> 12 <App /> 13</TideSyncProvider>
🔥 Tailor TideSync to your application’s needs.
useEffect
for calculations, prefer useTideDerivedState
.broadcast = false
.maxReconnectionAttempts
appropriately to maintain a stable experience.Ensure you’re using useTideSyncState
within a TideSyncProvider
and the WebSocket connection is active.
Check your network stability and confirm that the eventNames
mapping aligns correctly with the WebSocket events.
Increase maxReconnectionAttempts
or adjust maxReconnectDelay
in TideSyncProvider
.
Eliminate state inconsistencies. Command real-time data like never before.
🌟 Fast. 🌟 Scalable. 🌟 Unstoppable.
No vulnerabilities found.
No security vulnerabilities found.