All Projects → coinbase → Rest Hooks

coinbase / Rest Hooks

Licence: apache-2.0
Delightful data fetching for React.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Rest Hooks

Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-89.89%)
Mutual labels:  data, network
React Query
⚛️ Hooks for fetching, caching and updating asynchronous data in React
Stars: ✭ 24,427 (+1814.34%)
Mutual labels:  hooks, data
Tinytcpserver
A small tcp server working under Mono or .NET (4.0) and provides hooks for handling data exchange with clients (works under mono and .net). Behaviour/protocol/reaction could be specified via custom C# script.
Stars: ✭ 14 (-98.9%)
Mutual labels:  hooks, network
Gopup
数据接口:百度、谷歌、头条、微博指数,宏观数据,利率数据,货币汇率,千里马、独角兽公司,新闻联播文字稿,影视票房数据,高校名单,疫情数据…
Stars: ✭ 1,229 (-3.68%)
Mutual labels:  data
Pwa Boilerplate
✨ PWA Boilerplate is highly scalable and is designed to help you kick-start your next project 🔭.
Stars: ✭ 82 (-93.57%)
Mutual labels:  hooks
Fccss
Computer Science SCHOOL resources
Stars: ✭ 84 (-93.42%)
Mutual labels:  network
Tksheet
Python 3.6+ tkinter table widget for displaying tabular data
Stars: ✭ 86 (-93.26%)
Mutual labels:  data
Hydrogen
🎈 Hydrogen. Voted (by me) the world's lightest static-site generator built with TypeScript ❤ It uses 🔥 lit-html inspired templating for super duper performant template generation.
Stars: ✭ 80 (-93.73%)
Mutual labels:  data
Drc Sim
Wii U Gamepad Simulator Backend
Stars: ✭ 85 (-93.34%)
Mutual labels:  network
React Selector Hooks
Collection of hook-based memoized selector factories for declarations outside of render.
Stars: ✭ 84 (-93.42%)
Mutual labels:  hooks
Grapher
✍️ Large interactive graphs
Stars: ✭ 84 (-93.42%)
Mutual labels:  network
Row Types
A Haskell library for open records and variants using closed type families and type literals
Stars: ✭ 82 (-93.57%)
Mutual labels:  data
Rain
Visualize vertical data inside your terminal 💦
Stars: ✭ 84 (-93.42%)
Mutual labels:  data
Zhihu Oauth
尝试解析出知乎官方未开放的 OAuth2 接口,并提供优雅的使用方式,作为 zhihu-py3 项目的替代者,目前还在实验阶段
Stars: ✭ 1,237 (-3.06%)
Mutual labels:  data
Core
Open source Dota 2 data platform
Stars: ✭ 1,266 (-0.78%)
Mutual labels:  data
Write With Me
Real-time Collaborative Markdown Editor
Stars: ✭ 81 (-93.65%)
Mutual labels:  hooks
Tensorflow Cifar 10
Cifar-10 CNN implementation using TensorFlow library with 20% error.
Stars: ✭ 85 (-93.34%)
Mutual labels:  network
Deeplearning Mindmap
A mindmap summarising Deep Learning concepts.
Stars: ✭ 1,251 (-1.96%)
Mutual labels:  data
Hook Flow
A flowchart that explains the new lifecycle of a Hooks component. https://dwe.st/hf
Stars: ✭ 1,246 (-2.35%)
Mutual labels:  hooks
Network Idle Callback
Like requestIdleCallback, but for detecting network idle
Stars: ✭ 84 (-93.42%)
Mutual labels:  network

🛌🎣 Rest hooks

CircleCI Coverage Status npm downloads bundle size npm version PRs Welcome Chat

Dynamic data at scale. Performance, consistency, typing for REST, proto, GraphQL, websockets and more.

Simple TypeScript definition

class ArticleResource extends Resource {
  readonly id: string = '';
  readonly title: string = '';
  readonly body: string = '';

  pk() { return this.id; }
  static urlRoot = '/articles/';
}

One line data hookup

const article = useResource(ArticleResource.detail(), { id });
return (
  <>
    <h2>{article.title}</h2>
    <p>{article.body}</p>
  </>
);

Mutation

const update = useFetcher(ArticleResource.update());
return <ArticleForm onSubmit={data => update({ id }, data)} />;

And subscriptions

const price = useResource(PriceResource.detail(), { symbol });
useSubscription(PriceResource.detail(), { symbol });
return price.value;

...all typed ...fast ...and consistent

For the small price of 8kb gziped.    🏁Get started now

Features

Special thanks

Thanks to @0xcaff, @melissafzhang and @alexiswolfish for their valuable feedback.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].