XS

XSWR – The simplest React data (re)fetching library ever made

Hacker News

XSWR – The simplest React data (re)fetching library ever made

Hey there, I made a new library for React data fetching. XSWR is very inspired from SWR (which stands for "Stale While Revalidate"). In fact, it's a side project I made to fill in the gaps of SWR, that ended up production-ready. XSWR uses two new approaches compared to other data fetching libraries like swr or react-query: - Encapsulating key, fetcher and resource type in a single abstraction called "handle". - Composing features with very simple hooks instead of having bloated configuration patterns and unexpected behaviours. By using these two approaches, XSWR aims to help you highly centralize and reuse things. Docs: https://xswr.hazae41.me/ Comparison with swr and react-query: https://xswr.hazae41.me/faq/comparison Thanks for you feedbacks!

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: new, single, using · Missing: mac, agents, macos
73%73% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
60%60% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
52%52% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
51%51% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
50%50% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Si
Simplest Keylogger56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simplest Keylogger

Hacker News3
Re
React Frontload V2 – A full stack data loading library for React49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

React Frontload V2 – A full stack data loading library for React

Hacker News3
Re
React-Instantsearch, HOC Oriented UI Library in React62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

React-Instantsearch, HOC Oriented UI Library in React

Hacker News6
Re
React Futures – manipulate asynchronous data synchronously43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

React Futures – manipulate asynchronous data synchronously

Hacker News7
Si
Simplest React Carousel ever with hooks40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simplest React Carousel ever with hooks

Hacker News1
ci
circuit – data binding library31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

circuit – data binding library

Hacker News1
Da
Data Dumper library dumps any data as valid syntax in Go49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Data Dumper library dumps any data as valid syntax in Go

Hacker News1
Ag
AgnosticUI a React, Vue 3, Svelte, and Angular UI Library48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AgnosticUI a React, Vue 3, Svelte, and Angular UI Library

Hacker News24
Li
Library for capturing video in a React app49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Library for capturing video in a React app

Hacker News11
Si
Simplest intelligent autoadjustable open source React Carousel:D62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simplest intelligent autoadjustable open source React Carousel:D

Hacker News1