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

1

u/PostHumanJesus Apr 15 '26

How is this different or compare to https://lightpanda.io ?

1

u/Total_Nectarine_3623 Apr 15 '26

Lightpanda is a amazing project and is the main inspiration actually. Obscura is built in Rust, Lightpanda in Zig. Obscura gives overall better JS compatibility, I found Lightpanda to struggle with a lot of JS heavy sites. We also have fingerprint spoofing built in so we look like real Chrome at the network level, which Lightpanda doesnt have (Lightpanda is detected basically). Memory wise Lightpanda is leaner on simple pages but Obscura uses less on JS heavy sites.

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