Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlaiau/coinframes
Farcaster Coin Tracking Frame
https://github.com/carlaiau/coinframes
farcaster farcaster-frames farcaster-protocol frames learning-in-public warpcast
Last synced: 8 days ago
JSON representation
Farcaster Coin Tracking Frame
- Host: GitHub
- URL: https://github.com/carlaiau/coinframes
- Owner: carlaiau
- Created: 2024-04-26T08:12:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T03:39:07.000Z (8 months ago)
- Last Synced: 2024-11-28T21:45:37.571Z (14 days ago)
- Topics: farcaster, farcaster-frames, farcaster-protocol, frames, learning-in-public, warpcast
- Language: TypeScript
- Homepage: https://warpcast.com/carlaiau/0xae28a3c6
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-frames - Coinframes.xyz Price Snapshot Frame
README
# Coinframes
Learning in public. My first adventure into Farcaster frame development. Using the https://frog.fm framework.
This is a simple frame that fetches the latest price and market information for a specific cryptocurrency ticker and displays a snapshot directly on the timeline
Intents allow you to change the ticker or refresh the present ticker as illustrated in this post: https://warpcast.com/carlaiau/0xae28a3c6
The site is hosted on Render which gives us a persistant run-time and therefore can use a simple caching layer to prevent bombarding CoinGecko's API## Instructions for local development
```sh
bun install
bun run dev
```Head to http://localhost:5173/dev
## .env variables
```
is_cg_pro= # true or false
cg_pro_api_key= # API key for CoinGecko Pro
cg_api_key= # API secret for CoinGecko Demo
```## To Do
The ability to subscribe to a pricing alert via casting a prompt (and also subscribe via the frame itself).`coinframe alert btc @30` - For alerting when asset reaches a specific price
`coinframe alert sol 5` - For alerting when asset decreases/increases a specific amount from time of posting
`coinframe alert eth 5%` - For alerting when asset decreases a specific percentage from time of posting
Then once subscribed a frame is automatically cast to the subscriber when parameters are met.
This functionality will be built using https://neynar.com/ SDK and webhooks system.