Forum Documentation Showcase Pricing Learn more

[New Plugin] 'Env' Environment Variables


#1

Hello Bubblers,

Announcing a new extremely powerful plugin: Env Environment Variables

  1. Truly merges Javascript code with bubble
  2. Makes working with reusables a breeze
  3. Enables you to dramatically reduce workflows / conditionals by over 50% in tricky situations while also speeding up your app

Added this to the Bubble Developer Kit :smiley:

Env Variables:
This plugin allows you to create & use variables in bubble. You can

  • Create any number of Env variables from any spot in the app
  • Read any variable from several places in the app simultaneously
  • Write to any variable from any place in the app (workflow, action, auto-binding)
  • Auto-bind any variable from one / several places in the app
  • Read / write any variable through JavaScript code

A few examples I’ve used these for:

  1. Switching tabs within app from various locations without any maintenance
  2. Triggering workflows on main page from reusable element without any custom states
  3. Sending data across several reusable modules and page simultaneously
  4. Running JavaScript code to quickly reformat & process data received from api call
  5. Create data sets required as source inputs for google charts
  6. Running complex if-then-else conditions & loops via code and getting output back for use in bubble

Check out demo below :smiley:

Priced the same as all plugins in the Bubble Developer Kit at $4/month.

Happy Bubbling!
Cheers,
Gaurav


Is it possible to have application level global variables
Complex calculations
Bubble Developer Kit
#2

You can try all of these demos at https://bdkdemos.bubbleapps.io/env_variable

Use between JavaScript and Bubble seamlessly!

Share data across reusables, main page etc. without workflows, custom states or database fields

Autobind one Env from multiple sources conditonally

These are just a few of the potential applications :smiley: Env’s are:

  1. Fast : They don’t touch the database or any external service.
  2. Temporary : Exist only until page exists. Destroy on reload / page change. Can be saved to database fields via workflows when required
  3. Flexible : Can be used with code as well as bubble. Support custom data types of your app. Can be read / written from any spot in the app.

#3

Will be great to have one example. Great initiative! Bubble bundle is necessary now :wink:


#4

Check out the zodiac sign example in the demo. Its’ basically a multi level if then else code pasted into the Run javascript and output to an Env variable :smiley:


#5

@gaurav You’re a rockstar.


#6

Haha. Thank you @gregjohnkeegan !! Appreciate the kind words


#7

Hi @gaurav, since this plugin has a “Run Javascript” and the toolbox plugin also have an action with the same it got me confused initially.
I thought you were using @mishav’s Run Javascript action from the toolbox plugin at first.

Are you able to rename the action? It will avoid the confusion I had previously when you mentioned Run Javascript action since most ppl automatically assume you’re talking about the existing one.

It will also help to distinguish them in the workflow editor.

Nice job.


#8

Ah I see. Thanks for the feedback @seanhoots! Just published a update marking it for identification.