1
Home
Gabriel Kaszewski edited this page 2026-05-29 02:06:17 +00:00

k-ap

Generic ActivityPub protocol layer for Rust services. Wraps activitypub_federation and provides the plumbing that every AP-enabled service needs: actor management, inbox/outbox routing, follower tracking, WebFinger, NodeInfo, and HTTP signature handling.

Not domain-specific — no opinions about what your content type looks like.


New to ActivityPub? Start with the ActivityPub Primer — a short conceptual introduction to actors, inboxes, follows, and federation before diving into the API.

Know ActivityPub, just need k-ap? Jump straight to Installation and follow the funnel from there.


Pages

Page Description
ActivityPub Primer What AP is, actors, inboxes, follows — concepts only
What k-ap Does (and Doesn't Do) Design philosophy, library vs implementor responsibilities
Installation Gitea registry or git dependency setup
Wiring Up Builder pattern, axum integration
The Seven Traits All traits explained: what, when, what to implement
Inbound Activity Handling Handled activities, deduplication, mentions, Move
Broadcasts Create, Update, Delete, Announce, Like, actor update
Follow Management Outbound/inbound flows, accept/reject, querying
Routes Reference All routes, content negotiation pattern
Async Delivery and EventPublisher Job queue integration, worker methods
Actor Lookup and Remote Outbox WebFinger lookup, import remote content
Pinned Posts Featured collection setup
Migration Guide 0.1.x → 0.3.0 breaking changes
Contributing Dev setup, make targets, PR expectations

Real-world implementations

Both of these services implement all seven traits and were the original sources k-ap was extracted from: