Add coracle-domain

This commit is contained in:
Jon Staab
2026-04-08 15:37:42 -07:00
parent 0aa79d08fd
commit ce4dce9779
8 changed files with 56 additions and 43 deletions
+1
View File
@@ -4,6 +4,7 @@ ref
coracle-lib/src/ coracle-lib/src/
coracle-net/src/ coracle-net/src/
coracle-signer/src/ coracle-signer/src/
coracle-domain/src/
coracle-content/src/ coracle-content/src/
coracle-storage/src/ coracle-storage/src/
+1
View File
@@ -17,6 +17,7 @@ The project serves three goals:
- `coracle-lib` — Core nostr types and stateless utilities - `coracle-lib` — Core nostr types and stateless utilities
- `coracle-net` — Relay networking - `coracle-net` — Relay networking
- `coracle-signer` — Signing abstractions (NIP-07, NIP-46, local key) - `coracle-signer` — Signing abstractions (NIP-07, NIP-46, local key)
- `coracle-domain` — Domain-specific nostr types (profiles, follows, reactions, zaps, etc.)
- `coracle-content` — Text parsing and rendering - `coracle-content` — Text parsing and rendering
- `coracle-storage` — Cross-platform storage adapters - `coracle-storage` — Cross-platform storage adapters
- `coracle-tangle` — The tangle/weave build tool (not a library) - `coracle-tangle` — The tangle/weave build tool (not a library)
+1
View File
@@ -5,6 +5,7 @@ members = [
"coracle-lib", "coracle-lib",
"coracle-net", "coracle-net",
"coracle-signer", "coracle-signer",
"coracle-domain",
"coracle-content", "coracle-content",
"coracle-storage", "coracle-storage",
] ]
+1
View File
@@ -5,6 +5,7 @@ It has the following crates:
- `coracle-lib` - Struct definitions, stateless utilities related to nostr. - `coracle-lib` - Struct definitions, stateless utilities related to nostr.
- `coracle-net` - Networking utilities for working with relays - `coracle-net` - Networking utilities for working with relays
- `coracle-signer` - Signer client/server utilities - `coracle-signer` - Signer client/server utilities
- `coracle-domain` - Domain-specific nostr types: profiles, follows, reactions, zaps, etc.
- `coracle-content` - Text parsing and rendering utilities - `coracle-content` - Text parsing and rendering utilities
- `coracle-storage` - Storage adapters for different platforms - `coracle-storage` - Storage adapters for different platforms
+2
View File
@@ -21,6 +21,8 @@ This book is both a tutorial and the source code for the `coracle` family of Rus
events, and relay discovery. events, and relay discovery.
- **coracle-signer** — Signing abstractions: local key signing, NIP-46 remote signing, - **coracle-signer** — Signing abstractions: local key signing, NIP-46 remote signing,
and browser extension integration. and browser extension integration.
- **coracle-domain** — Domain types: profiles, follows, relay selections, reactions, zaps,
and other higher-level nostr concepts built on top of events.
- **coracle-content** — Content handling: parsing note text, rendering mentions, handling - **coracle-content** — Content handling: parsing note text, rendering mentions, handling
media links, and working with NIP-27 references. media links, and working with NIP-27 references.
- **coracle-storage** — Persistence: storing and querying events locally across different - **coracle-storage** — Persistence: storing and querying events locally across different
+41 -42
View File
@@ -7,60 +7,59 @@
- [Keys](02-keys.md) - [Keys](02-keys.md)
- [Signing](03-signing.md) - [Signing](03-signing.md)
- [Encryption](04-encryption.md) - [Encryption](04-encryption.md)
- [Encryptables](xx.md) - [Encryptables](05-encryptables.md)
- [Events](xx.md) - [Events](06-events.md)
- [Tags](xx.md) - [Tags](07-tags.md)
- [Kinds](xx.md) - [Kinds](08-kinds.md)
- [Kind Ranges](xx.md) - [Kind Ranges](09-kind-ranges.md)
- [Addresses](xx.md) - [Addresses](10-addresses.md)
- [Proof of Work](xx.md) - [Proof of Work](11-proof-of-work.md)
- [Filters](xx.md) - [Filters](12-filters.md)
## Domain ## Domain
- [Relay Selections](xx.md) - [Relay Selections](13-relay-selections.md)
- [Relay Metadata](xx.md) - [Relay Metadata](14-relay-metadata.md)
- [Relay Membership](xx.md) - [Relay Membership](15-relay-membership.md)
- [Profiles](xx.md) - [Profiles](16-profiles.md)
- [Follows](xx.md) - [Follows](17-follows.md)
- [Microblogging](xx.md) - [Microblogging](18-microblogging.md)
- [Reactions](xx.md) - [Reactions](19-reactions.md)
- [Reports](xx.md) - [Reports](20-reports.md)
- [Emojis](xx.md) - [Emojis](21-emojis.md)
- [Zaps](xx.md) - [Zaps](22-zaps.md)
- Split out each list kind into its own chapter - [Rooms](23-rooms.md)
- [Rooms](xx.md)
## Networking ## Networking
- [Relay Connections](xx.md) - [Relay Connections](24-relay-connections.md)
- [Relay Authentication](xx.md) - [Relay Authentication](25-relay-authentication.md)
- [Relay Policies](xx.md) - [Relay Policies](26-relay-policies.md)
- [Server Authentication](xx.md) - [Server Authentication](27-server-authentication.md)
- [Relay Management API](xx.md) - [Relay Management API](28-relay-management-api.md)
- [Blossom Media Storage](xx.md) - [Blossom Media Storage](29-blossom-media-storage.md)
## Signers ## Signers
- [Secret Signers](xx.md) - [Secret Signers](30-secret-signers.md)
- [Remote Signers](xx.md) - [Remote Signers](31-remote-signers.md)
- [Android Signers](xx.md) - [Android Signers](32-android-signers.md)
- [Browser Signers](xx.md) - [Browser Signers](33-browser-signers.md)
## Content ## Content
- [Entities](xx.md) - [Entities](34-entities.md)
- [Relays](xx.md) - [Relays](35-relays.md)
- [Rooms](xx.md) - [Rooms](36-rooms.md)
- [Links](xx.md) - [Links](37-links.md)
- [Lightning](xx.md) - [Lightning](38-lightning.md)
- [Cashu](xx.md) - [Cashu](39-cashu.md)
- [Emojis](xx.md) - [Emojis](40-emojis.md)
- [Topics](xx.md) - [Topics](41-topics.md)
- [Code](xx.md) - [Code](42-code.md)
## Storage ## Storage
- [Event Repository](xx.md) - [Event Repository](43-event-repository.md)
- [In Memory Backend](xx.md) - [In Memory Backend](44-in-memory-backend.md)
- [Sqlite Backend](xx.md) - [Sqlite Backend](45-sqlite-backend.md)
+8
View File
@@ -0,0 +1,8 @@
[package]
name = "coracle-domain"
version = "0.1.0"
edition = "2021"
description = "Domain-specific nostr types: profiles, follows, reactions, zaps, and more"
[dependencies]
coracle-lib = { path = "../coracle-lib" }
+1 -1
View File
@@ -12,7 +12,7 @@ check: tangle
cargo check --workspace --exclude coracle-tangle cargo check --workspace --exclude coracle-tangle
clean: clean:
rm -rf coracle-lib/src/ coracle-net/src/ coracle-signer/src/ coracle-content/src/ coracle-storage/src/ rm -rf coracle-lib/src/ coracle-domain/src/ coracle-net/src/ coracle-signer/src/ coracle-content/src/ coracle-storage/src/
rm -rf target/book/ target/book-staging/ rm -rf target/book/ target/book-staging/
all: build weave all: build weave