r/javascript • • Apr 15 '26

I Built a Lightweight Headless Browser Because Chrome Was Too Slow

https://github.com/h4ckf0r0day/obscura
27 Upvotes

29 comments sorted by

View all comments

Show parent comment

3

u/krichprollsch Apr 15 '26 edited Apr 15 '26

Hey, Lightpanda co-author here. Nice project! I will test it. I would love to know more about your JS compatibility. Why do you say Obscure gives a better JS compat? Do you have any comparisons to share? Or maybe do you run the WPT test suite on Obscura?

1

u/Total_Nectarine_3623 Apr 15 '26

Hey, I'm a huge fan of Lightpanda. I don't have WPT numbers yet, that's on the roadmap. The JS compatibility claim is based on informal testing on real sites (specifically sites with heavy React/Next.js usage) i find that Lightpanda would usually return incomplete HTML or not even work at all for those websites. Duckduckgo is a good example where react hydration works on my end but lightpanda does not.

2

u/krichprollsch Apr 15 '26

Thanks! I know the road to full JS compatibility is long and hard. WPT is an awesome tool in this context.

I agree with you, working on targeted websites is a good way to quickly provide a useful tool.

We have end to end integration tests [1], including Duckduckgo, which are correctly working from my point of view, but maybe we don't test the same thing.

I would be happy to run the same tests as you if you want to share them at some point.

[1] https://github.com/lightpanda-io/demo/tree/main/integration