Skip to content

framelib is a lightweight library for building farcaster frames using python and flask

Notifications You must be signed in to change notification settings

devinaconley/python-frames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

framelib

lightweight library for building farcaster frames using python and flask

  • easily render frames that conform to the farcaster specification
  • configurable frame design
  • parse frame action messages
  • verify the frame action signatures using neynar
  • query user profile info from warpcast
  • on-chain frame transactions

quickstart

install framelib from pip

pip install framelib

simple example

from flask import Flask, url_for
from framelib import frame

app = Flask(__name__)

@app.route('/')
def home():
    return frame(
        image='https://opengraph.githubassets.com/0x/devinaconley/python-frames',
        button1='next',
        post_url=url_for('second_page', _external=True),
    )

examples

see a complete example using python + flask + vercel here

for an example that uses on-chain frame transactions, see the weth frame

and for a more advanced example involving multiplayer games, supabase integration, dynamic image rendering, and more, see rock paper scissors

roadmap

upcoming features and improvements

  • mint actions
  • eip 712 signatures
  • generated library documentation
  • dynamic image rendering tools
  • compatibility with other web frameworks
  • state signing

About

framelib is a lightweight library for building farcaster frames using python and flask

Resources

Stars

Watchers

Forks

Packages

No packages published