Add /v1/og/contributions.png endpoint that builds an SVG of the all-time weekly contribution graph (one row per year) from daily counts, then rasterizes to PNG via resvg. Served with 1h cache. Add og:image and twitter:card meta tags to index.html pointing at the endpoint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
574 B
TOML
25 lines
574 B
TOML
[package]
|
|
name = "moments-api"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
|
|
[dependencies]
|
|
moments-entities.workspace = true
|
|
moments-core.workspace = true
|
|
moments-data.workspace = true
|
|
tokio.workspace = true
|
|
axum.workspace = true
|
|
tower-http.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
anyhow.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
reqwest.workspace = true
|
|
resvg.workspace = true
|