{"id":28549692,"url":"https://github.com/akacdev/replit","last_synced_at":"2025-07-04T22:31:45.599Z","repository":{"id":63128705,"uuid":"565442080","full_name":"akacdev/Replit","owner":"akacdev","description":"An async and lightweight C# library for interacting with Replit APIs. ","archived":false,"fork":false,"pushed_at":"2023-11-18T16:51:05.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T02:11:55.757Z","etag":null,"topics":["api","client","driver","graphql","repler","replit","replit-driver","replit-graphql"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Replit.GraphQL","language":"C#","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/akacdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-11-13T12:34:01.000Z","updated_at":"2024-03-09T19:48:20.000Z","dependencies_parsed_at":"2024-07-14T13:51:35.036Z","dependency_job_id":null,"html_url":"https://github.com/akacdev/Replit","commit_stats":null,"previous_names":["akacdev/replit","actually-akac/replit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akacdev/Replit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akacdev%2FReplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akacdev%2FReplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akacdev%2FReplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akacdev%2FReplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akacdev","download_url":"https://codeload.github.com/akacdev/Replit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akacdev%2FReplit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263627957,"owners_count":23490879,"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","client","driver","graphql","repler","replit","replit-driver","replit-graphql"],"created_at":"2025-06-10T02:11:53.818Z","updated_at":"2025-07-04T22:31:45.593Z","avatar_url":"https://github.com/akacdev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Replit\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"192\" height=\"192\" src=\"https://raw.githubusercontent.com/actually-akac/Replit/master/Replit.GraphQL/icon.png\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  An async and lightweight C# library for interacting with Replit APIs.\n\u003c/div\u003e\n\n## Usage\nProvides an easy interface for interacting with Replit APIs. Currently distributed packages:\n* `Replit.GraphQL` ([NuGet](https://www.nuget.org/packages/Replit.GraphQL)) ([GitHub](https://github.com/actually-akac/Replit/tree/master/Replit.GraphQL)) - Wrapper for the GraphQL API.\n\nTo get started, add the library into your solution with either the `NuGet Package Manager` or the `dotnet` CLI.\n```rust\ndotnet add package Replit.GraphQL\n```\n\nFor the primary classes to become available, import the used namespace.\n```csharp\nusing Replit.GraphQL;\n```\n\n\u003e **Warning**\u003cbr\u003e\n\u003e Certain actions require you to pass a valid **session identifier** (`connect.sid`) cookie. You can obtain this from the browser `Developer Tools` while logged in.\u003cbr\u003e\n\u003e Unsure of how to obtain this value? See [this guide](https://replit.com/talk/learn/How-to-Get-Your-SID-Cookie/145979) written by [RayhanADev](https://replit.com/@RayhanADev).\u003cbr\u003e\n\u003e If you are on mobile, you can alternatively use [this web based form](https://extract-sid.ironcladdev.repl.co) made by [IroncladDev](https://replit.com/@IroncladDev).\n\n## Features\n- Built for `.NET 6` and `.NET 7`\n- Fully **async**\n- Extensive **XML documentation**\n- **No external dependencies** (uses integrated HTTP and JSON)\n- **Custom exceptions** for advanced catching\n- Execute **single** or **bulk** Replit GraphQL queries\n\n## Example\nUnder the `Example` directory you can find a working demo project that implements this library.\n\n## Code Samples\n\n### Initializing a new GraphQL client with a valid session identifier cookie\n```csharp\nstring sid = \"s%3Bew5ttAQuBlAANjIh8ABSoTTtZ75-7AbH.ohRBI9wNPwOHED7GLltPBrOS975gxqATe1aL6y%9N3%2Fla\";\nReplitGraphQLClient client = new(sid, \"Example Application\");\n```\n\n### Executing a single query\n```csharp\nstring userByUsername = @\"\n    query userByUsername($username: String!) {\n        user: userByUsername(username: $username) {\n            id\n            bio\n            firstName\n            lastName\n            timeCreated\n    }\n}\";\n\nUser user = (await client.Execute\u003cUserContainer\u003e(userByUsername, new Dictionary\u003cstring, object\u003e()\n{\n    {\n        \"username\", \"akac\"\n    }\n}))?.User;\n```\n\n### Executing bulk queries\n```csharp\nRepl[] repls = (await client.BulkExecute\u003cReplContainer\u003e(new GraphQLParameters[]\n{\n    new(replByUrl, new() { { \"url\", \"https://replit.com/@amasad/TroubledPersonalBaitware\" } }),\n    new(replByUrl, new() { { \"url\", \"https://replit.com/@amasad/my-fun-new-app\" } }),\n    new(replByUrl, new() { { \"url\", \"https://replit.com/@amasad/comic-sans\" } })\n}))?.Select(data =\u003e data.Repl).ToArray();\n\nConsole.WriteLine($\"Retrieved {repls.Length} repls back\");\n\nforeach (Repl repl in repls) Console.WriteLine($\"=\u003e {repl.Title} ({repl.Id}) was created at {repl.TimeCreated}\");\n```\n\n## Available Methods\n\n- Task\\\u003cGraphQLContainer[]\u003e **BulkExecuteRaw**(GraphQLParameters[] parameters, JsonSerializerOptions options = null)\n- Task\\\u003cGraphQLContainer\u003e **ExecuteRaw**(string query, Dictionary\u003cstring, object\u003e variables = null, string operationName = null, JsonSerializerOptions options = null)\n- Task\\\u003cT[]\u003e **BulkExecute\u003cT\u003e**(GraphQLParameters[] parameters, bool suppressErrors = false, JsonSerializerOptions options = null)\n- Task\\\u003cT\u003e **Execute\u003cT\u003e**(string query, Dictionary\u003cstring, object\u003e variables = null, bool suppressErrors = false, string operationName = null, JsonSerializerOptions options = null)\n\n## References\n- https://replit.com\n- https://graphql.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakacdev%2Freplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakacdev%2Freplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakacdev%2Freplit/lists"}