GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

hyper-fetch

⚡ Fetching and realtime data exchange framework.

  • 语言TypeScript
  • 默认分支main
  • 大小308.4 MB
  • 更新3 天前
  • Issues1
在 GitHub 打开
avatarBetterTyped

项目介绍

BetterTyped/hyper-fetch 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 Apache License 2.0 许可证,目前获得 1.3k 个 Star、32 次 Fork。

仓库全名
BetterTyped/hyper-fetch

README 摘要

Hyper Fetch One SDK. Any API. Fully typed. The type-safe API layer for TypeScript apps. Connect to REST, GraphQL, Firebase, WebSockets, SSE — all with one consistent interface and the best type safety in the ecosystem. Documentation | Quick Start | Guides Quick Start Define requests manually Or generate from OpenAPI Why HyperFetch? 🔮 Zero guesswork — End-to-end TypeScript types from schema to response, full…

完整内容见 GitHub 原始 README 或本页 。

常见问题

hyper-fetch 用什么语言开发?

主要使用 TypeScript 编写,采用 Apache License 2.0 许可证,目前有 1.3k 个 Star。

hyper-fetch 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 hyper-fetch 的源码?

可以直接克隆仓库:git clone https://github.com/BetterTyped/hyper-fetch.git,默认分支为 main;安装与运行步骤见仓库 README。

hyper-fetch 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 1 个未关闭 Issue;Star 数为 1.3k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

freeCodeCamp/freeCodeCamp avatar
freeCodeCampfreeCodeCamp
4 小时前
458.8k
47.2k
90

freeCodeCamp.org 的开源代码库和课程体系。免费学习数学、编程和计算机科学。

learn-to-codenonprofitsprogramming+7
TypeScript
571.9 MB
9
详情
morluto/rea avatar
reamorluto
3 小时前
445.8k
110.0k
1.6k

借助智能体逆向分析任何内容,从应用行为直至原生二进制文件。

agent-skillsaiandroid+17
TypeScript
144.4 MB
0
详情
openclaw/openclaw avatar
openclawopenclaw
3 小时前
394.2k
82.9k
8.1k

真正做实事的 AI。任何 OS。任何平台。龙虾之道。🦞

aiassistantcrustacean+4
TypeScript
12.9 GB
18
详情
nilbuild/developer-roadmap avatar
developer-roadmapnilbuild
10 小时前
371.6k
42.9k
5

交互式路线图、指南及其他教育内容,帮助开发者在职业生涯中成长。

computer-scienceroadmapdeveloper-roadmap+7
TypeScript
356.1 MB
2
详情
deepseek-ai/deepseek-harness avatar
deepseek-harnessdeepseek-ai
5 天前
277.3k
34.0k
0

DeepSeek Harness:一切皆插件。

ai-agentscordisdsh+1
TypeScript
351.8 MB
3
详情
anomalyco/opencode avatar
opencodeanomalyco
3 小时前
225.7k
30.5k
4.2k

开源编码代理。

TypeScript
671.7 MB
0
详情
vuejs/vue avatar
vuevuejs
2024年10月10日
212.6k
34.0k
645

这是 Vue 2 的仓库。如需 Vue 3,请前往 https://github.com/vuejs/core

frameworkfrontendjavascript+1
TypeScript
31.4 MB
0
详情
n8n-io/n8n avatar
n8nn8n-io
3 小时前
209.9k
61.4k
1.3k

具备原生 AI 能力的公平代码工作流自动化平台。将可视化构建与自定义代码相结合,支持自托管或云端部署,提供 400+ 种集成。

automationipaasn8n+7
TypeScript
781.5 MB
3
详情

关于

ajaxbuildercachedata-exchangefetchfirebasegraphqljavascriptnextjsofflinepersistencequeryreactrealtimesocketssseswrtypescriptwebsocketsxhr
  • Apache License 2.0
  • 1.3k Stars
  • 32 Forks
  • 3 Watching

简要分析

热度分
1403
价值分
811
活跃状态
活跃
GitHub

语言占比

CSS
HTML
JavaScript
Shell
TypeScript

Release

  • hyper-fetch-v9.4.13 天前
  • hyper-fetch-v9.4.06 天前
  • hyper-fetch-v9.3.02 周前
  • hyper-fetch-v9.2.02 周前
  • hyper-fetch-v9.1.010月8日

贡献者

prc5prc5GerasNyxGerasNyxalbelewandowskialbelewandowskisnyk-botsnyk-botExmiraiExmiraiLukasHirtLukasHirtabidonabidonth3fallenth3fallenbanticbanticschalkventerschalkventerYeasiinYeasiindependabot[bot]dependabot[bot]

Hyper Fetch

Hyper Fetch

One SDK. Any API. Fully typed.

The type-safe API layer for TypeScript apps. Connect to REST, GraphQL, Firebase, WebSockets, SSE — all with one consistent interface and the best type safety in the ecosystem.

Documentation | Quick Start | Guides

Follow on Twitter

Join our Discord community


Quick Start

Define requests manually

import { createClient } from "@hyper-fetch/core";

// Create a client — this is the single entry point for all your API calls
const client = createClient({ url: "https://api.example.com" });

// Define a typed request — response shape is inferred everywhere from here
const getUsers = client.createRequest<{ response: { id: number; name: string }[] }>()({
  endpoint: "/users",
  method: "GET",
});

// Send it — data, error, and status are fully typed
const { data, error, status } = await getUsers.send();

Or generate from OpenAPI

npx @hyper-fetch/cli generate --url https://api.example.com/openapi.json
import { sdk } from "./generated";

// Every endpoint from your schema is available as a typed method
const { data } = await sdk.users.list.send();

Why HyperFetch?

  • 🔮 Zero guesswork — End-to-end TypeScript types from schema to response, full autocompletion, zero any
  • 📡 One interface for everything — REST, GraphQL, Firebase, WebSockets, SSE — stop learning a new library for each API
  • 💾 Data management built in — Caching, queuing, offline support, retries, and deduplication out of the box
  • ⚡ Works everywhere — React, Next.js, Remix, Astro, Node.js, Bun — same API, every environment

Try other BetterTyped projects

Hyper Fetch is the data layer inside Hype Stack, the full-stack template I build alongside it.

Build your SaaS on Hype Stack

Platinum sponsor banner

Platinum sponsors

Packages

Package Version Downloads Size
@hyper-fetch/core npm downloads size
@hyper-fetch/react npm downloads size
@hyper-fetch/sockets npm downloads size
@hyper-fetch/cli npm downloads size
@hyper-fetch/firebase npm downloads size
@hyper-fetch/firebase-admin npm downloads size
@hyper-fetch/graphql npm downloads size
@hyper-fetch/axios npm downloads size
@hyper-fetch/plugin-devtools npm downloads size

Gold sponsor banner

Gold sponsors

Examples

Fetching data

// Send and destructure — all return values are typed
const { data, error, status } = await getUsers.send();

Mutation with params and payload

// Params go in the URL, data goes in the body — both fully typed
const { data, error, status } = await createUser.send({
  params: { teamId: 1 },
  data: { name: "Jane", email: "[email protected]" },
});

React hooks

import { useFetch } from "@hyper-fetch/react";

const UserList = () => {
  // useFetch triggers the request on mount and returns typed state
  const { data, loading, error } = useFetch(getUsers);

  if (loading) return <p>Loading...</p>;
  if (error) return <p>Error loading users</p>;
  return <ul>{data?.map((u) => <li key={u.id}>{u.name}</li>)}</ul>;
};

Documentation

  • Getting Started
  • Core Concepts
  • React Integration
  • CLI & SDK Generation
  • API Reference
  • Guides

Silver sponsor banner

Silver sponsors

Our sponsors

Sponsors

License

MIT

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5.2万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。