Yes, that shouldn't be hard. What you need to run it is loading the part library to some folder on the same origin as the page running it. I think Ldraw should already have it avaiable. The rest is standard javascript fiddling (include JS files, add some snippet of code, etc).
Here's a more detailed howto.
You can take a look at the simplest example here.
Rebrickable is also using brigl on their part detail page.
Here's a more detailed howto.
You can take a look at the simplest example here.
Rebrickable is also using brigl on their part detail page.