Add single file to library from backend extension

Not sure if there is already something like this, but is it possible to add a single file to my current library?
I am thinking about buffering online streams on my file system and want to added them for future use to the library.