Jakubantalik/border-beam
View on GitHub ↗
Unique within the repo — the other 8% repeats across its own files.
Unique across all public code — a further 25% is its own but appears in other public repos too.
Tidy, but not new — the code doesn't repeat itself, yet a large share already exists across other public repos. A strong candidate for pulling from (or publishing as) a shared package.
Worth consolidating — in the code
Real, actionable duplication in this repo's source, most concrete first.
Longest identical blocks
The longest runs of identical consecutive lines copied between two files (indentation ignored) — the most concrete copy-paste. Lift the block into a shared function or module.
| Lines | File A | File B | Cross-repo |
|---|---|---|---|
| 9 | Jakubantalik/border-beam/demo/src/ShowcasePage.tsx:21 |
Jakubantalik/border-beam/demo/src/mocks.tsx:92 |
same repo |
Top duplication hotspots
| Similarity | Overlap | File A | File B | Cross-repo |
|---|---|---|---|---|
| 4% | 92 | Jakubantalik/border-beam/src/pulseDriver.ts |
Jakubantalik/border-beam/src/styles.ts |
same repo |
| 14% | 54 | Jakubantalik/border-beam/demo/src/ShowcasePage.tsx |
Jakubantalik/border-beam/demo/src/mocks.tsx |
same repo |
| 2% | 54 | Jakubantalik/border-beam/src/styles.ts |
Jakubantalik/border-beam/src/types.ts |
same repo |
| 3% | 40 | Jakubantalik/border-beam/demo/src/App.tsx |
Jakubantalik/border-beam/demo/src/ShowcasePage.tsx |
same repo |
| 2% | 40 | Jakubantalik/border-beam/src/BorderBeam.tsx |
Jakubantalik/border-beam/src/styles.ts |
same repo |
| 2% | 37 | Jakubantalik/border-beam/demo/src/App.tsx |
Jakubantalik/border-beam/src/BorderBeam.tsx |
same repo |
| 2% | 20 | Jakubantalik/border-beam/demo/src/App.tsx |
Jakubantalik/border-beam/demo/src/mocks.tsx |
same repo |
Duplicate declarations
The same function, variable, class, or type name declared in more than one file — a fast copy-paste signal. Consider extracting a shared definition.
| Files | Declaration | Where |
|---|---|---|
| 3 | type CSSProperties |
Jakubantalik/border-beam/demo/src/App.tsxJakubantalik/border-beam/src/BorderBeam.tsxJakubantalik/border-beam/src/types.ts |
| 2 | type BorderBeamColorVariant |
Jakubantalik/border-beam/demo/src/App.tsxJakubantalik/border-beam/src/types.ts |
| 2 | type BorderBeamProps |
Jakubantalik/border-beam/src/BorderBeam.tsxJakubantalik/border-beam/src/types.ts |
| 2 | type BorderBeamSize |
Jakubantalik/border-beam/demo/src/App.tsxJakubantalik/border-beam/src/types.ts |
| 2 | var isPulse |
Jakubantalik/border-beam/demo/src/App.tsxJakubantalik/border-beam/src/BorderBeam.tsx |
| 2 | type PulseDriverConfig |
Jakubantalik/border-beam/src/pulseDriver.tsJakubantalik/border-beam/src/styles.ts |
| 2 | type SizeConfig |
Jakubantalik/border-beam/src/styles.tsJakubantalik/border-beam/src/types.ts |
| 2 | var theme |
Jakubantalik/border-beam/demo/src/App.tsxJakubantalik/border-beam/src/BorderBeam.tsx |
Docs & prose
Near-identical documentation — often translations (e.g. README.md ⇄ README_zh-CN.md) or mirrored guides. Usually intentional, not cleanup — listed separately so it doesn't inflate the code signal above.
Top duplication hotspots
| Similarity | Overlap | File A | File B | Cross-repo |
|---|---|---|---|---|
| 6% | 42 | Jakubantalik/border-beam/CHANGELOG.md |
Jakubantalik/border-beam/README.md |
same repo |
Largest files
Largest files
| LOC | File | Status |
|---|---|---|
| 2162 | Jakubantalik/border-beam/src/styles.ts | indexed |
| 1782 | Jakubantalik/border-beam/demo/src/styles.css | indexed |
| 645 | Jakubantalik/border-beam/demo/src/App.tsx | indexed |
| 320 | Jakubantalik/border-beam/src/BorderBeam.tsx | indexed |
| 184 | Jakubantalik/border-beam/README.md | indexed |
| 162 | Jakubantalik/border-beam/src/types.ts | indexed |
| 127 | Jakubantalik/border-beam/demo/src/mocks.tsx | indexed |
| 118 | Jakubantalik/border-beam/demo/src/ShowcasePage.tsx | indexed |
| 108 | Jakubantalik/border-beam/src/pulseDriver.ts | indexed |
| 98 | Jakubantalik/border-beam/demo/src/showcase.css | indexed |