{"id":15091158,"url":"https://github.com/bettenoch/tanstack_opeapi_project_setup","last_synced_at":"2026-02-18T03:03:21.616Z","repository":{"id":256361775,"uuid":"855037190","full_name":"Bettenoch/tanstack_opeAPI_project_setup","owner":"Bettenoch","description":"This project demonstrates the integration of HeyApi, Tanstack Query, and Tanstack Router in a modern React application built with TypeScript and Vite. The goal is to showcase how to efficiently manage API requests, caching, and client-side routing using these tools in a performant and scalable way.","archived":false,"fork":false,"pushed_at":"2024-09-10T10:46:58.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T17:47:26.420Z","etag":null,"topics":["openapi","routing-protocols","tanstack","tanstack-react-query","tanstack-router","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bettenoch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T07:38:24.000Z","updated_at":"2024-09-10T10:47:03.000Z","dependencies_parsed_at":"2024-11-28T21:31:41.295Z","dependency_job_id":null,"html_url":"https://github.com/Bettenoch/tanstack_opeAPI_project_setup","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"43b3f3b828300d91bb22deccc1e2a9e70c28e8bf"},"previous_names":["bettenoch/tanstack_opeapi_project_setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bettenoch/tanstack_opeAPI_project_setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bettenoch%2Ftanstack_opeAPI_project_setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bettenoch%2Ftanstack_opeAPI_project_setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bettenoch%2Ftanstack_opeAPI_project_setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bettenoch%2Ftanstack_opeAPI_project_setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bettenoch","download_url":"https://codeload.github.com/Bettenoch/tanstack_opeAPI_project_setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bettenoch%2Ftanstack_opeAPI_project_setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274101085,"owners_count":25222444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openapi","routing-protocols","tanstack","tanstack-react-query","tanstack-router","typescript"],"created_at":"2024-09-25T10:36:01.157Z","updated_at":"2025-10-14T17:21:17.285Z","avatar_url":"https://github.com/Bettenoch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React TypeScript Vite App with HeyApi, Tanstack Query, and Tanstack Router\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Technologies Used](#technologies-used)\n- [Project Structure](#project-structure)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n- [Key Features](#key-features)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\n\nThis project demonstrates the integration of [HeyApi](https://heyapi.co), [Tanstack Query](https://tanstack.com/query), and [Tanstack Router](https://tanstack.com/router) in a modern React application built with TypeScript and Vite. The goal is to showcase a real-world example of how to manage API requests, client-side caching, and routing in a performant and scalable React application.\n\nBy combining these powerful tools, this project helps developers build efficient data-fetching strategies, optimize user experiences, and create maintainable applications with minimal configuration overhead.\n\n## Technologies Used\n\n- **React** - A JavaScript library for building user interfaces\n- **TypeScript** - A typed superset of JavaScript that compiles to plain JavaScript\n- **Vite** - A fast development build tool\n- **HeyApi** - A powerful API service for building and managing APIs easily\n- **Tanstack Query** - A powerful asynchronous state management library for handling API requests and caching\n- **Tanstack Router** - A lightweight routing solution optimized for React\n\n## Project Structure\n- **Prerequisites**\nMake sure you have the following installed on your system:\n\nNode.js (v14 or higher)\nnpm or yarn\n# Getting Started\n\n## Prerequisites\n\nMake sure you have the following installed on your system:\n\n- Node.js (v14 or higher)\n- npm or yarn\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/your-username/your-repo-name.git\ncd your-repo-name\n```\n## Key Features\n\n- API Management with HeyApi: Integration with HeyApi for seamless API request handling.\n- Data Fetching Caching with Tanstack Query: Efficiently fetch and cache data to improve performance.\n- Routing with Tanstack Router: Lightweight and modern routing for React applications.\n- TypeScript Support: Ensures type safety and scalability with TypeScript throughout the app.\n- Vite for Fast Builds: Instant server start and fast hot module replacement (HMR) during development.\n\n## Usage\n1. To define API endpoints and manage data fetching, navigate to the src/api and src/services directories.\n2. To add routes, use the src/router directory where Tanstack Router is configured.\n3. Reusable components can be added to the src/components folder to keep your UI modular.\n\n## Example Code Snippet\n\nHere's a brief example of how to set up Tanstack Query with HeyApi:\n\n```tsx\nimport { useQuery } from '@tanstack/react-query';\nimport { fetchData } from './api';\n\nconst MyComponent = () =\u003e {\n  const { data, isLoading, error } = useQuery(['key'], fetchData);\n\n  if (isLoading) return \u003cp\u003eLoading...\u003c/p\u003e;\n  if (error) return \u003cp\u003eError loading data\u003c/p\u003e;\n\n  return \u003cdiv\u003e{data?.message}\u003c/div\u003e;\n};\n```\n\n## Contributing\n- Contributions are welcome! If you’d like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcomed.\n\n1. Fork the project\n2. Create a feature branch (git checkout -b feature/AmazingFeature)\n3. Commit your changes (git commit -m 'Add some AmazingFeature')\n4. Push to the branch (git push origin feature/AmazingFeature)\n5. Open a Pull Request\n\n## License\nThis project is licensed under the MIT License - see the **LICENSE** file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbettenoch%2Ftanstack_opeapi_project_setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbettenoch%2Ftanstack_opeapi_project_setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbettenoch%2Ftanstack_opeapi_project_setup/lists"}