Use Meteor Subscription in PHP+HTML+JavaScript based Website

I have 2 applications:

  1. Meteor 1.10 + Angular
  2. PHP+ HTML + JavaScript

On Meteor application I have some important articles or news feeds which I need to display on my PHP website Reactively.

Is there any way to achieve such scenario? What I am assuming that there must some crispy DDP library build by MDG for such cases. (If I am not wrong)

I think people are using Simple DDP to use Meteor as a backend only…

Docs here: https://gregivy.github.io/simpleddp/index.html

@alawi mentioned this configuration the other day, maybe he has some tips for you. I’ve never used this package/config before, but it looks nice.

1 Like

Yes, SimpleDDP is a good fit for that use case (you can also expose Rest or GraphQL endpoint from Meteor backend but it won’t be real-time).

We do use Meteor frontend as well, but we use SimpleDDP to achieve JAMStack for specific use cases (public mobile PWAs) and we prefer SimpleDDP over GraphQL for the simplicity, elegance and built-in realtime features. I really think SimpleDDP should be pushed further and be part of the community packages. I think “SimplePWA” (DDP + JamStack + Meteor + Galaxy) is the fastest and simplest way to get a mobile app out there and it’s a natural extension and development of the Meteor story.

Library seems pretty rich. I got a silly question to ask since I never had experience using npm.packages in a plain php+html+JavaScript website. Is it possible in any way to use npm libraries in plan html+JavaScript based website by using require() import or export?