Skip to content

Commit

Permalink
more noates
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgi committed Sep 19, 2024
1 parent a1c914b commit 8f308dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROD_URL=https://automod.sh
# and other tunnels to test things
DEV_URL=http://localhost:3000

# Secret for all auth tokens
# Secret for all auth tokens, dont fuck this up
SESSION_SECRET=

# Postgres database url
Expand Down Expand Up @@ -47,7 +47,7 @@ AUTOMOD_FACTORY_UUID=
# Long lived warpcast token, create via https://github.com/davidfurlong/farcaster-auth-tokens
AUTOMOD_FACTORY_WARPCAST_TOKEN=

# dev.neynar.com
# Visit dev.neynar.com console
NEYNAR_CLIENT_ID=
NEYNAR_API_KEY=

Expand All @@ -67,8 +67,8 @@ WARPCAST_DM_KEY=
# Powers OpenRank rules
OPENRANK_API_KEY=

# Enable queues in development mode
ENABLE_QUEUES=
# Enable queues in development
# ENABLE_QUEUES=true

# Hypersub contract addresses for billing
# Legacy deprecated hypersub
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Sentry is used for client and server errors. All other logs are emitted to stdou

A home made paging service (webhook-relay.fly.dev) is used to trigger critical alerts with sync propagation or dropped webhooks. You can point this wherever you like.

## Estimated Costs
## Costs

At time of writing automod:

Expand All @@ -141,3 +141,9 @@ All Data APIs are usage based and highly variable. Here's a snapshot of August.
| Airstack Data | Airstack | Buy 1 Fan Token, free forever | Channel Following, FarRank, FarScore |
| Moxie Data | The Graph | < $5/mo | |
| Cast Storage | Farcaster | ~$40/mo amortized | 200 storage units for @automod reactions. Renews yearly. Deprecated |

## Billing

Automod uses [Hypersub](https://hypersub.withfabric.xyz/) for all billing and membership tracking. In short, its an NFT with some additional metadata indicating how much time in the subscription remains. Billing sync are triggered at midnight each night or manually by users.

For relevant code see [subscription.server.ts](/app/lib/subscription.server.ts)

0 comments on commit 8f308dd

Please sign in to comment.