It should probably go on the app context stack (which, despite the name, is refreshed for every request). This can be accessed at flask.g although some thought maybe should be given to name-spacing instead of just doing flask.g.assets. Maybe flask.g.keg-assets would be sufficient but still seems a bit presumptive.