···11-HANDLE=baileytownsend.dev
22-APP_PASSWORD="PLEASE ONLY USE AN APP PASSWORD"11+BOT_USERNAME=
22+BOT_PASSWORD=
33+BOT_PDS_URL=
44+55+# New configuration for star counting window and threshold
66+# Timeframe in hours to look back when counting recent stars
77+TIMEFRAME=1
88+# Threshold for the number of stars within the timeframe to trigger a log message
99+STAR_THRESHOLD=1
1010+1111+# Timeframe in hours to gate posts after a threshold is met (default 24)
1212+POST_WINDOW_HOURS=24
+2-47
README.md
···11-# Rust atproto template
11+# Come back later
2233-A simple template
44-for getting started
55-with writing code using [atrium](https://github.com/atrium-rs/atrium) to interact with atproto repos.
66-This is the minimal setup,
77-but we're using the Statusphere lexicon to create some examples that can be used as studs to create your own
88-application.
99-1010-# [atproto_api](./atproto_api)
1111-1212-Holds your rust types created from [lexicon json schema files](./atproto_api/lexicons)
1313-using [esquema-cli](https://github.com/fatfingers23/esquema)
1414-1515-### How to change and setup lexicons
1616-1717-1. Setup and put your lexicon schema files in [./atproto_api/lexicons](/atproto_api/lexicons)
1818-2. Install with `cargo install esquema-cli --locked --git https://github.com/fatfingers23/esquema.git`
1919-3. Run with from root repo `esquema-cli generate local -l atproto_api/lexicons/ -o atproto_api/src/`
2020-4. You now have Rust types for your lexicon schema in [/atproto_api/src](./atproto_api/src)
2121-2222-# [logic](./logic)
2323-2424-This crate holds all your logic for interacting with the atmosphere (jetstream, repos, etc). Can import it into a
2525-backend, WASM, or in our case a CLI.
2626-2727-# [cli](./cli)
2828-2929-This is a binary showcasing how it can run on the backend
3030-`cargo run --bin cli -- --help` for a list of commands. You can also copy [.env.template](./.env.template) and change it
3131-to `.env` to save your handle and app password there.
3232-3333-#[wasm](./wasm)
3434-This is a simple WASM project showcasing the same logic crate as used in the cli binary.
3535-3636-To run make sure you have [Trunk](https://trunkrs.dev/guide/) setup and then run `trunk serve` in the directory
3737-3838-## CLI and WASM Features to showcase examples
3939-4040-All of these features are implemented in the Logic crate and share a lot of code.
4141-JetStream is a bit of an exception and has 2 different implementations.
4242-[Rocketman](https://crates.io/crates/rocketman) for the cli and just a quick and dirty web_sys websocket connection for
4343-the WASM one
4444-4545-- Create a new Statusphere status
4646-- Get your current Statusphere status
4747-- Look up someone's status via handle to show did resolver
4848-- Start a JetStream listener to listen for updates (Includes atrium did resolver via http)
33+