Discussion: Packages adding "stealth" collections to your app?

I’m working on the new iteration of Meteor Toys, and have some features in mind that would be really beneficial if the package had persistent data storage. I’m considering adding a stealth collection through the debugOnly package, such as:

MeteorToys = new Mongo.Collection("meteortoys")

I do not see a disadvantage to this approach, but I suspect that it could annoy some people. If it does, then I could make it an opt-in feature, where the developer activates a new set of features by adding that collection on their own. However, I think it would be a lot more magical if you just add the packages and it all works.

What do you guys think about this?

What do you mean? Lots of packages contain their own collections to preserve state. It’s one of the strengths of the isopackage system. It’s how basic core packages like accounts work. Not sure why anyone would expect any differently or have a problem with it.

1 Like

Hmm why didn’t I think of that… thanks!

1 Like