Bubble JavaScript to skip routing API calls through bubble
![trevor fields](https://us.v-cdn.net/6037124/user_avatars/425.jpg)
I was watching one of the bubble videos y'all had and you mentioned some javascript that could be used to not route through Bubble for API calls.
In the context of the video this was to achieve HIPAA compliance. The video mentioned posting that JS in the document y'all had post video call but i did not see it.
If this is possible please post an example.
Do you think this would also speed API calls?
Best Answers
-
Hi @trevor fields - the code example is posted in the description, where it says custom code. Here it is: (Custom Code: https://gitlab.com/-/snippets/2385784)
So using Javascript will allow you to call Xano directly, whereas when you use the Bubble API Connector Bubble will proxy the call. So yes, it should help performance on Bubble's side. We also recently launched a Beta SDK, if you're interested let me know and I can get that over to you.
-
Here is the SDK- https://www.npmjs.com/package/@xano/js-sdk
Checkout App connector Bubble plugin that built top on Xano SDK- https://bubble.io/plugin/xano-connector-1667758971605x316889048071536640
-
You can also now always access the SDK from our homepage (https://www.xano.com/connect/)
Answers
-
@Michael Udinski Hey Michael, I am super interested in checking out that Beta SDK!
-
@Facundo I sent it over to you!
-
So I had a look at the video but IIRC it only shows how to post into Xano. I would like to GET info from Xano. How do I do that?
So my app has 10 different repeating groups that are populated by 10 field types in Xano. The user must select 1 or more options from each repeating group and narrow the search to just 1 or 2 products.
(I've tried to use Bubble's own db but it is too slow, so I'm hoping Xano will be faster)
-
Would love to check out this sdk @Michael Udinski
I wrote my own bubble plugin to POST using FETCH just so i could pass complex JSON arrays. big pain in the but
-
No problem - sent it over to you!
-
@Michael Udinski Can you send the SDK access to me too.
-
@Michael Udinski Can you please send the SDK to me too? Thx!
-
@nocodetalks Thanks! I just finished the video from Eli. Super excited! 💪💪💪
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback