Files
kindexr/src/lib.rs
T
enki a3db453942 feat: Blossom binary bridge (BUD-01)
- BlossomClient: unauthenticated fetch, kind 24242 signed upload
- Parser: capture `url` tag from NIP-35 events as blossom_url
- Reader: spawn background fetch + cache of blob when url tag present
- Writer: include `url` tag in published NIP-35 events when blob uploaded
- Watcher: upload .torrent file to Blossom before publishing, attach URL
- Migration 007: adds blossom_url + torrent_blob columns to torrents
- Route GET /torrent/<info_hash>.torrent serves cached blobs
- Config: blossom.enabled + blossom.server (disabled by default)
2026-05-17 19:09:42 -07:00

24 lines
412 B
Rust

pub mod blossom;
pub mod config;
pub mod db;
pub mod enrich;
pub mod nostr;
pub mod publisher;
pub mod torznab;
pub mod ui;
pub mod wot;
use std::{
sync::{atomic::AtomicI32, Arc},
time::Instant,
};
#[derive(Clone)]
pub struct AppState {
pub pool: sqlx::SqlitePool,
pub cfg: Arc<config::Config>,
pub version: &'static str,
pub started_at: Instant,
pub relay_count: Arc<AtomicI32>,
}