{"id":14260266,"url":"https://github.com/specta-rs/rspc","last_synced_at":"2026-02-11T08:01:12.847Z","repository":{"id":41523317,"uuid":"506697483","full_name":"specta-rs/rspc","owner":"specta-rs","description":"A framework for building typesafe web backends in Rust","archived":false,"fork":false,"pushed_at":"2025-04-20T15:34:20.000Z","size":6691,"stargazers_count":1296,"open_issues_count":56,"forks_count":66,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-08T16:54:21.813Z","etag":null,"topics":["api","blazingly-fast","rust","trpc","trpc-rs","typescript"],"latest_commit_sha":null,"homepage":"https://rspc.dev","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/specta-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":["oscartbeaumont"],"custom":["https://paypal.me/oscartbeaumont"]}},"created_at":"2022-06-23T15:38:52.000Z","updated_at":"2025-05-05T19:47:57.000Z","dependencies_parsed_at":"2023-10-24T14:27:56.665Z","dependency_job_id":"ca47e206-1b64-4300-ad44-9b4246cadc5e","html_url":"https://github.com/specta-rs/rspc","commit_stats":{"total_commits":252,"total_committers":8,"mean_commits":31.5,"dds":0.1865079365079365,"last_synced_commit":"3e2608e9658b54240a3ba076fb0f7c4307e094fc"},"previous_names":["oscartbeaumont/trpc-rs","specta-rs/rspc"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specta-rs%2Frspc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specta-rs%2Frspc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specta-rs%2Frspc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specta-rs%2Frspc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/specta-rs","download_url":"https://codeload.github.com/specta-rs/rspc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036806,"owners_count":22003651,"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","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":["api","blazingly-fast","rust","trpc","trpc-rs","typescript"],"created_at":"2024-08-22T11:01:12.004Z","updated_at":"2026-02-11T08:01:12.841Z","avatar_url":"https://github.com/specta-rs.png","language":"Rust","funding_links":["https://github.com/sponsors/oscartbeaumont","https://paypal.me/oscartbeaumont"],"categories":["Rust","api"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"150\" height=\"150\" src=\"/.github/logo.png\" alt=\"Logo\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003erspc\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n \u003cstrong\u003e\n   A blazing fast and easy to use TRPC-like server for Rust.\n \u003c/strong\u003e\n\u003c/div\u003e\n\u003ca align=\"center\" href=\"https://www.rspc.dev/\"\u003e\n  \u003cp\u003eWebsite\u003c/p\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://discord.gg/JgqH8b4ycw\"\u003e\u003cimg src=\"https://img.shields.io/discord/1011665225809924136?style=flat-square\" alt=\"Discord\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/rspc\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/rspc.svg?style=flat-square\"\n    alt=\"crates.io\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/rspc\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/rspc.svg?style=flat-square\"\n      alt=\"download count badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://docs.rs/rspc\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"docs.rs\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@rspc/client\"\u003e\n    \u003cimg alt=\"npm (scoped)\" src=\"https://img.shields.io/npm/v/@rspc/client?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n\n\u003e [!WARNING]\n\u003e rspc is no longer being maintained. [Learn more](https://github.com/specta-rs/rspc/discussions/351).\n\n## Example\n\nYou define a `rspc` router and attach procedures to it like below. This will be very familiar if you have used [trpc](https://trpc.io/) or [GraphQL](https://graphql.org) before.\n\n```rust\nlet router = \u003crspc::Router\u003e::new()\n    .query(\"version\", |t| {\n        t(|ctx, input: ()| \"0.0.1\")\n    })\n    .mutation(\"helloWorld\", |t| {\n        t(|ctx, input: ()| async { \"Hello World!\" })\n    });\n```\n\n## Features:\n\n- Per Request Context - Great for database connection \u0026 authentication data\n- Middleware - With support for context switching\n- Merging routers - Great for separating code between files\n\n### Inspiration\n\nThis project is based off [trpc](https://trpc.io) and was inspired by the bridge system [Jamie Pine](https://github.com/jamiepine) designed for [Spacedrive](https://www.spacedrive.com). A huge thanks to everyone who helped inspire this project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecta-rs%2Frspc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecta-rs%2Frspc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecta-rs%2Frspc/lists"}