Skip to content

Conversation

@technoplato
Copy link

I recorded a brief demo, but it is too large for Github uploads. So I imagine there's a process that's a lot more thorough than what I've gone through, but all I needed was transactions and subscriptions, and those are working so far. There's still some stuff to do, but I don't know if this is helpful for you guys or not, so I figured I'd throw it up. And maybe someone smarter than me can finish it up. But yeah, if it's helpful, awesome, if not, no worries. Thank you for building such a cool project and making it open source. If this is accepted, I might look into creating a Swift package, as I'd love to use this in iOS applications as well, in conjunction with the awesome work from the guys over at Pointfree.co and their work on really awesome state synchronization ergonomics in Swift

If this is useful enough to provide feedback on, I'd be more than happy to incorporate said feedback to get this production ready.

cd instant/client/packages/node && node demo-create-user.mjs

mlustig@mlustig-LGFJPQ3YCW node % cd /Users/mlustig/dev/tools/instant/client/packages/node && node demo-create-user.mjs
🚀 InstantDB Node.js Demo - Creating a User

✅ Database initialized

📝 Creating user with:
   ID: fe94799d-aa11-4ee6-af22-d2aaf2fc8139
   Name: This is really from Node.js!
   Display Name: Node.js User
   Email: [email protected]
   Status: active
   Created at: 2025-08-17T02:18:03.279Z

✅ User created successfully!
Transaction ID: undefined
Transaction status: undefined

🔍 Querying the created user...

✅ User found in database:
{
  "id": "fe94799d-aa11-4ee6-af22-d2aaf2fc8139",
  "nodeVersion": "v22.18.0",
  "createdAt": "2025-08-17T02:18:03.279Z",
  "displayName": "Node.js User",
  "name": "This is really from Node.js!",
  "email": "[email protected]",
  "status": "active",
  "platform": "darwin",
  "source": "Node.js Client"
}

👀 Subscribing to all users...

📊 Latest users (4 total):
1. undefined ([email protected]) - Created: undefined
2. undefined ([email protected]) - Created: undefined
3. Test User from Node.js ([email protected]) - Created: 2025-08-16T22:58:24.878Z
4. This is really from Node.js! ([email protected]) - Created: 2025-08-17T02:18:03.279Z

⏳ Keeping subscription active for 20 seconds...

📊 Latest users (3 total):
1. undefined ([email protected]) - Created: undefined
2. undefined ([email protected]) - Created: undefined
3. Test User from Node.js ([email protected]) - Created: 2025-08-16T22:58:24.878Z

🧹 Cleaning up...

✅ Demo completed successfully!
🎉 The user was created from Node.js!
^C
Gracefully shutting down InstantDB connections...
mlustig@mlustig-LGFJPQ3YCW node % cd /Users/mlustig/dev/tools/instant/client/packages/node && node demo-create-user.mjs

@nezaj
Copy link
Contributor

nezaj commented Nov 22, 2025

Thanks for putting this up! Was useful to hear folks wanted this -- we now have subscriptions on the backend so will close this.

@nezaj nezaj closed this Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants