Yes, you can import npm packages in the online IDE by using npkg and after exporting you can freely use NPM or yarn.
And yes, once exported it becomes a stand alone thing.
here is TodoMVC example that would be spited by the IDE:
You can actually visit our website to find out more: glue.codes
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.