-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[admin] server-side instantdb/core #50
Comments
I'm considering using Instant for side projects related to information and data aggregation. I would like to be able to create server-side workers and/or callable functions (FaaS) to fetch data, and be able to:
Note that this is purely hypothetical for now, I have not started using Instant, I just had a look at the docs and part of the source code. |
One note: It's possible to use the admin SDK to query 'on behalf' of users. This is useful if you want permissions to run for queries and transactions: https://www.instantdb.com/docs/backend#impersonating-users @Exagone313 's case may be different though, depending on the nature of the FaaS |
I'm glad this discussion is already open! Being able to run instantdb/core on the server is very interesting. I am interested in contributing for this, given that I've already started diving into both the admin and core code. Just not sure yet how to approach this optimally given there's multiple packages while keeping things DRY. |
I looked into this as well, thinking about building a chat room where 1-N "bots" are listening to a conversation and potentially responding after sending it to an LLM and back. Thinking "multiplayer, multi-NPC chat" |
@Exagone313 , you mentioned "data aggregation" |
I don't plan on using Instant for data aggregation by itself, but more as a mean of communication. Data aggregation will happen using other databases (or at least another connector if using the same PostgreSQL database - only applies when self-hosting). But I'm still not 100% sure about the implementation. |
chiming in as well, it seems |
A temporary workaround is to mock the browser globals in your Node runtime. For example, If you inject We do hope for Node native support! |
Could we have @instantdb/core work on the server?
Right now, only the
@instantdb/core
supports subscriptions to queries and presence. If we could run it on the server, users could subscribe to queries and see presence there.We could then fold @instantdb/core into the admin SDK, and make it even more powerful.
The text was updated successfully, but these errors were encountered: