# CarpaNet - a .NET ATProtocol Library
[](https://www.nuget.org/packages/CarpaNet/) 
CarpaNet is a .NET library for [ATProtocol](https://atproto.com/) that uses Roslyn source generators to produce type-safe API bindings from Lexicon JSON schema files. It's the replacement for [FishyFlip](https://github.com/drasticactions/FishyFlip).

This site is under construction.
## Quick Start
Add the CarpaNet NuGet package and declare which lexicons you need:
```xml
```
Then use the generated client:
```csharp
using CarpaNet;
var client = ATProtoClientFactory.Create();
var profile = await client.AppBskyActorGetProfileAsync(
new AppBsky.Actor.GetProfileParameters { Actor = new ATHandle("alice.bsky.social") });
Console.WriteLine($"{profile.DisplayName} (@{profile.Handle})");
```
## Packages
| Package | Description |
|---------|-------------|
| [CarpaNet](https://www.nuget.org/packages/CarpaNet/) | Core runtime, source generator, XRPC protocol, identity resolution, DAG-CBOR, CAR files |
| [CarpaNet.OAuth](https://www.nuget.org/packages/CarpaNet.OAuth/) | OAuth 2.0 with PAR, PKCE, and DPoP support |
| [CarpaNet.Jetstream](https://www.nuget.org/packages/CarpaNet.Jetstream/) | Real-time event subscription via Bluesky Jetstream |
| [CarpaNet.AspNetCore](https://www.nuget.org/packages/CarpaNet.AspNetCore/) | ASP.NET Core integration |
## Third-Party Libraries
- [ZstdSharp.Port](https://github.com/oleg-st/ZstdSharp) — Zstandard compression