Something went wrong. Try again.
.NET ATProtocol Library - Built for Source Gen
Something went wrong. Try again.
Files
- C# 100%
README.md
# CarpaNet
CarpaNet is a .NET Library for interacting with [ATProtocol](https://atproto.com). It uses Roslyn source generators to produce API bindings, serialization contexts, and data models from ATProtocol Lexicon JSON files, designed for full AOT compatibility.
For information on the core CarpaNet library, check out its [Readme](./src/CarpaNet/README.md).
For information on the OAuth support, check out [CarpaNet.Oauth](./src/CarpaNet.OAuth/README.md).
For information on the Jetstream support, check out [CarpaNet.Jetstream](./src/CarpaNet.Jetstream/README.md).
For information on the Source Generator, check out its [Readme](./src/CarpaNet.SourceGen/README.md).

This library is experimental and not stable. Expect issues and bugs!
## **NOTE**
- Issues and PRs are fine, however I offer no support for this library. If you find yourself dependent on it for something super important, you should probably fork it.
# Comparison to FishyFlip
[FishyFlip](https://github.com/drasticactions/FishyFlip) was my original ATProtocol/Bluesky library for .NET. I originally intended it as a client SDK for Bluesky, but over the years, it evolved into a framework with a source generator and many helper extensions. However, this led to issues:
- While I wrote a [source generator](https://github.com/drasticactions/FishyFlip/tree/develop/tools/FFSourceGen) that could read ATProtocol Lexicon files and produce valid classes, I used it to bind them as base types in FishyFlip itself. By doing that, I limited you to whatever version of the lexicon types I happened to bind in code for ATProtocol and Bluesky. As these types are frequently updated, I would need to kick off new builds and push releases, which made it impossible to maintain a "stable" version of the library.
- The source generator codebase was very much hacked together and held together by hopes and dreams. ATProtocol types and .NET primitives and namespa…