Programmatically access data about my Anvil apps

Long time ago I played with an app that creates a dependency chart across all my apps.

I get the list of available apps with https://anvil.works/ide/apps. Then I use https://anvil.works/ide/apps/export/(app-id) to get the yaml of each app.

This would give me tons of information on each app, but something was still missing for a complete dependency chart (I don’t really remember what was missing, I haven’t used it in a while).

One problem with this is that you can only see the apps shared with the team and the apps on the account that is executing it, you don’t see unshared apps from other team users. To decrease this problem, I store in a table the result of every execution, so if user1 executes it first, then user2 executes it later, user2 will see the info cached by the first execution.

6 Likes