tangled.org trending bluesky account

wip

+14 -49
+12 -2
.env.template
··· 1 - HANDLE=baileytownsend.dev 2 - APP_PASSWORD="PLEASE ONLY USE AN APP PASSWORD" 1 + BOT_USERNAME= 2 + BOT_PASSWORD= 3 + BOT_PDS_URL= 4 + 5 + # New configuration for star counting window and threshold 6 + # Timeframe in hours to look back when counting recent stars 7 + TIMEFRAME=1 8 + # Threshold for the number of stars within the timeframe to trigger a log message 9 + STAR_THRESHOLD=1 10 + 11 + # Timeframe in hours to gate posts after a threshold is met (default 24) 12 + POST_WINDOW_HOURS=24
+2 -47
README.md
··· 1 - # Rust atproto template 1 + # Come back later 2 2 3 - A simple template 4 - for getting started 5 - with writing code using [atrium](https://github.com/atrium-rs/atrium) to interact with atproto repos. 6 - This is the minimal setup, 7 - but we're using the Statusphere lexicon to create some examples that can be used as studs to create your own 8 - application. 9 - 10 - # [atproto_api](./atproto_api) 11 - 12 - Holds your rust types created from [lexicon json schema files](./atproto_api/lexicons) 13 - using [esquema-cli](https://github.com/fatfingers23/esquema) 14 - 15 - ### How to change and setup lexicons 16 - 17 - 1. Setup and put your lexicon schema files in [./atproto_api/lexicons](/atproto_api/lexicons) 18 - 2. Install with `cargo install esquema-cli --locked --git https://github.com/fatfingers23/esquema.git` 19 - 3. Run with from root repo `esquema-cli generate local -l atproto_api/lexicons/ -o atproto_api/src/` 20 - 4. You now have Rust types for your lexicon schema in [/atproto_api/src](./atproto_api/src) 21 - 22 - # [logic](./logic) 23 - 24 - This crate holds all your logic for interacting with the atmosphere (jetstream, repos, etc). Can import it into a 25 - backend, WASM, or in our case a CLI. 26 - 27 - # [cli](./cli) 28 - 29 - This is a binary showcasing how it can run on the backend 30 - `cargo run --bin cli -- --help` for a list of commands. You can also copy [.env.template](./.env.template) and change it 31 - to `.env` to save your handle and app password there. 32 - 33 - #[wasm](./wasm) 34 - This is a simple WASM project showcasing the same logic crate as used in the cli binary. 35 - 36 - To run make sure you have [Trunk](https://trunkrs.dev/guide/) setup and then run `trunk serve` in the directory 37 - 38 - ## CLI and WASM Features to showcase examples 39 - 40 - All of these features are implemented in the Logic crate and share a lot of code. 41 - JetStream is a bit of an exception and has 2 different implementations. 42 - [Rocketman](https://crates.io/crates/rocketman) for the cli and just a quick and dirty web_sys websocket connection for 43 - the WASM one 44 - 45 - - Create a new Statusphere status 46 - - Get your current Statusphere status 47 - - Look up someone's status via handle to show did resolver 48 - - Start a JetStream listener to listen for updates (Includes atrium did resolver via http) 3 + ![](./assets/nothing.gif)
assets/nothing.gif

This is a binary file and will not be displayed.