Find all unused endpoints in your app

List of all suspected unused endpoints

… or in JSON format.

  1. download your app’s .bubble file
  2. install jq : https://jqlang.org
  3. create a shell script file in your computer. In macOS and Linux you can create it on: /usr/local/bin/find-unused-endpoints.sh
  4. open that file and paste the contents of Find unused endpoints in your .bubble file · GitHub
  5. make the file executable: chmod +x /usr/local/bin/find-unused-endpoints.sh
  6. run it find-unused-endpoints.sh my_app.bubble

You can pipe the output into a file


find-unused-endpoints.sh app.bubble json > unused_endpoints.json

Thanks for nerd-sniping me, @eli

6 Likes

I just updated it to properly excluded exposed APIs and output as markdown list format

If you now add an editor url at the end, it will return the link to the editor to that item:


$ find-unused-endpoints.sh my_app.bubble json "https://bubble.io/page?id=my_app&tab=Settings&name=index&type=api"

{
  "unused_endpoints": [
    {
      "id": "bTOLA",
      "type": "APIEvent",
      "name": "My unused endpoint",
      "url": "https://bubble.io/page?id=my_app&tab=Settings&name=index&type=api&tab=BackendWorkflows&type=api&wf_item=bTOLA"
    },
    ...
  ]
}

3 Likes

Very nice!

1 Like