lightpanda-io/browser
Lightpanda: the headless browser designed for AI and automation
Zig★ 34,975+58 that day#8 on trending
6.6%duplicated code · 15,083 of 228,447 lines
1,209clones in code
595code files of 1,026 scanned
5.71%duplicated over all files · 1,397 clones
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 26 lines in 17 placeszig72 tokenssrc/browser/webapi/element/html/Output.zig:1–26src/browser/webapi/element/svg/A.zig:1–26src/browser/webapi/element/svg/Circle.zig:1–27src/browser/webapi/element/svg/ClipPath.zig:1–27src/browser/webapi/element/svg/Ellipse.zig:1–27and 12 more
1// Copyright (C) 2023-2026 Lightpanda (Selecy SAS) 2// 3// Francis Bouvier <[email protected]> 4// Pierre Tachoire <[email protected]> 5// 6// This program is free software: you can redistribute it and/or modify 7// it under the terms of the GNU Affero General Public License as 8// published by the Free Software Foundation, either version 3 of the 9// License, or (at your option) any later version. 10//First 10 of 26 lines.
- 26 lines in 15 placeszig60 tokenssrc/browser/webapi/event/BeforeUnloadEvent.zig:1–26src/browser/webapi/event/DeviceMotionEvent.zig:1–26src/browser/webapi/event/DeviceOrientationEvent.zig:1–26src/browser/webapi/event/FocusEvent.zig:1–25src/browser/webapi/event/GamepadEvent.zig:1–26and 10 more
1// Copyright (C) 2023-2026 Lightpanda (Selecy SAS) 2// 3// Francis Bouvier <[email protected]> 4// Pierre Tachoire <[email protected]> 5// 6// This program is free software: you can redistribute it and/or modify 7// it under the terms of the GNU Affero General Public License as 8// published by the Free Software Foundation, either version 3 of the 9// License, or (at your option) any later version. 10//First 10 of 26 lines.
- 8 lines in 16 placeszig55 tokenssrc/browser/webapi/element/html/BR.zig:1–8src/browser/webapi/element/html/DList.zig:19–26src/browser/webapi/element/html/DataList.zig:1–8src/browser/webapi/element/html/Directory.zig:1–8src/browser/webapi/element/html/FieldSet.zig:1–8and 11 more
1const lp = @import("lightpanda"); 2const Factory = @import("../../../Factory.zig"); 3const js = @import("../../../js/js.zig"); 4const Node = @import("../../Node.zig"); 5const Element = @import("../../Element.zig"); 6const HtmlElement = @import("../Html.zig"); 7 8const BR = @This();19const lp = @import("lightpanda"); 20const Factory = @import("../../../Factory.zig"); 21const js = @import("../../../js/js.zig"); 22const Node = @import("../../Node.zig"); 23const Element = @import("../../Element.zig"); 24const HtmlElement = @import("../Html.zig"); 25 26const DList = @This();
7 more
- 24 lines in 15 placeszig54 tokens
- 18 lines in 6 placeszig148 tokens
- 24 lines in 12 placeszig63 tokens
- 7 lines in 10 placeszig65 tokens
- 13 lines in 8 placeszig83 tokens
- 22 lines in 4 placeszig172 tokens
- 8 lines in 9 placeszig60 tokens
Largest clones over all files, tests and data included
- 26 lines in 17 placeszig72 tokenssrc/browser/webapi/element/html/Output.zig:1–26src/browser/webapi/element/svg/A.zig:1–26src/browser/webapi/element/svg/Circle.zig:1–27src/browser/webapi/element/svg/ClipPath.zig:1–27src/browser/webapi/element/svg/Ellipse.zig:1–27and 12 more
1// Copyright (C) 2023-2026 Lightpanda (Selecy SAS) 2// 3// Francis Bouvier <[email protected]> 4// Pierre Tachoire <[email protected]> 5// 6// This program is free software: you can redistribute it and/or modify 7// it under the terms of the GNU Affero General Public License as 8// published by the Free Software Foundation, either version 3 of the 9// License, or (at your option) any later version. 10//First 10 of 26 lines.
- 26 lines in 15 placeszig60 tokenssrc/browser/webapi/event/BeforeUnloadEvent.zig:1–26src/browser/webapi/event/DeviceMotionEvent.zig:1–26src/browser/webapi/event/DeviceOrientationEvent.zig:1–26src/browser/webapi/event/FocusEvent.zig:1–25src/browser/webapi/event/GamepadEvent.zig:1–26and 10 more
1// Copyright (C) 2023-2026 Lightpanda (Selecy SAS) 2// 3// Francis Bouvier <[email protected]> 4// Pierre Tachoire <[email protected]> 5// 6// This program is free software: you can redistribute it and/or modify 7// it under the terms of the GNU Affero General Public License as 8// published by the Free Software Foundation, either version 3 of the 9// License, or (at your option) any later version. 10//First 10 of 26 lines.
- 8 lines in 16 placeszig55 tokenssrc/browser/webapi/element/html/BR.zig:1–8src/browser/webapi/element/html/DList.zig:19–26src/browser/webapi/element/html/DataList.zig:1–8src/browser/webapi/element/html/Directory.zig:1–8src/browser/webapi/element/html/FieldSet.zig:1–8and 11 more
1const lp = @import("lightpanda"); 2const Factory = @import("../../../Factory.zig"); 3const js = @import("../../../js/js.zig"); 4const Node = @import("../../Node.zig"); 5const Element = @import("../../Element.zig"); 6const HtmlElement = @import("../Html.zig"); 7 8const BR = @This();19const lp = @import("lightpanda"); 20const Factory = @import("../../../Factory.zig"); 21const js = @import("../../../js/js.zig"); 22const Node = @import("../../Node.zig"); 23const Element = @import("../../Element.zig"); 24const HtmlElement = @import("../Html.zig"); 25 26const DList = @This(); - 24 lines in 15 placeszig54 tokens
- 18 lines in 6 placeszig148 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| zig | 573 | 223,231 | 1,187 | 14,732 | 6.6% |
| rust | 7 | 4,031 | 22 | 351 | 8.71% |
| bash | 10 | 804 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| python | 3 | 159 | 0 | 0 | 0% |
| go | 1 | 48 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| zig | 573 | 223,231 | 1,187 | 14,732 | 6.6% |
| markup | 386 | 61,307 | 171 | 1,789 | 2.92% |
| rust | 7 | 4,031 | 22 | 351 | 8.71% |
| yaml | 12 | 2,105 | 14 | 212 | 10.07% |
| javascript | 21 | 1,102 | 3 | 30 | 2.72% |
| linker-script | 1 | 5,905 | 0 | 0 | 0% |
| bash | 11 | 811 | 0 | 0 | 0% |
| markdown | 6 | 740 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| python | 3 | 159 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 8, 2026 | #8 | 34,975 (+58) | 1,026 | 299,704 | 1,397 | 5.71% | 6.6% | — | 909108e |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.