Content pfp
Content
@
0 reply
0 recast
0 reaction

Gavi Galloway pfp
Gavi Galloway
@gavi
Thinking about abstractions we could add to farcaster-js to help out devs building frame servers. Would love some thoughts. Our current thinking here 👇
1 reply
1 recast
8 reactions

Gavi Galloway pfp
Gavi Galloway
@gavi
Example frames app: a webserver that serves a quiz. Uses 3 frames: an initial welcome "splash page," a frame for rendering a multiple choice quiz question, and a frame showing the user if their guess was correct. Would be built to support multiple web frameworks. ExpressJS here for example:
1 reply
0 recast
0 reaction

Gavi Galloway pfp
Gavi Galloway
@gavi
Splash page is purely static content, and can be simple
1 reply
0 recast
0 reaction

Gavi Galloway pfp
Gavi Galloway
@gavi
The frame for a QuizQuestion will return dynamic HTML content for the image, which farcaster-js would render to PNG. Library handles creating the appropriate <meta> tags for buttons, and passing query params into the imageURL
1 reply
0 recast
0 reaction

Gavi Galloway pfp
Gavi Galloway
@gavi
For completeness, this might be the frame that renders the correct answer, with a single button to proceed to the next question (back to the QuizQuestion frame)
1 reply
0 recast
0 reaction

Gavi Galloway pfp
Gavi Galloway
@gavi
Library would handle creating the appropriate HTTP GET and POST handlers for the different web frameworks (next.js, express, etc) /thread
0 reply
0 recast
0 reaction