Skip to content

Commit d6b1195

Browse files
committed
fetch oxlint and oxc-parser data
1 parent fed1c73 commit d6b1195

File tree

4 files changed

+141
-56
lines changed

4 files changed

+141
-56
lines changed

data/dependents.json

Lines changed: 123 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,167 @@
11
{
22
"oxc-project/oxc": {
3-
"oxc": [
3+
"oxlint": [
44
{
5-
"url": "https://github.com/rolldown/rolldown",
6-
"stars": 11925
5+
"url": "https://github.com/clash-verge-rev/clash-verge-rev",
6+
"stars": 74348
7+
},
8+
{
9+
"url": "https://github.com/firecrawl/firecrawl",
10+
"stars": 56994
11+
},
12+
{
13+
"url": "https://github.com/toeverything/AFFiNE",
14+
"stars": 55000
15+
},
16+
{
17+
"url": "https://github.com/preactjs/preact",
18+
"stars": 37954
19+
},
20+
{
21+
"url": "https://github.com/date-fns/date-fns",
22+
"stars": 36109
23+
},
24+
{
25+
"url": "https://github.com/outline/outline",
26+
"stars": 35018
27+
},
28+
{
29+
"url": "https://github.com/fabricjs/fabric.js",
30+
"stars": 30407
31+
},
32+
{
33+
"url": "https://github.com/PostHog/posthog",
34+
"stars": 29144
35+
},
36+
{
37+
"url": "https://github.com/continuedev/continue",
38+
"stars": 28896
39+
},
40+
{
41+
"url": "https://github.com/SBoudrias/Inquirer.js",
42+
"stars": 21117
43+
},
44+
{
45+
"url": "https://github.com/karakeep-app/karakeep",
46+
"stars": 19684
747
},
848
{
9-
"url": "https://github.com/Floorp-Projects/Floorp",
10-
"stars": 7635
49+
"url": "https://github.com/yamadashy/repomix",
50+
"stars": 19172
51+
},
52+
{
53+
"url": "https://github.com/eggjs/egg",
54+
"stars": 18975
55+
},
56+
{
57+
"url": "https://github.com/amark/gun",
58+
"stars": 18638
59+
},
60+
{
61+
"url": "https://github.com/uikit/uikit",
62+
"stars": 18475
63+
},
64+
{
65+
"url": "https://github.com/monkeytypegame/monkeytype",
66+
"stars": 18348
67+
},
68+
{
69+
"url": "https://github.com/teambit/bit",
70+
"stars": 18218
71+
},
72+
{
73+
"url": "https://github.com/transitive-bullshit/agentic",
74+
"stars": 17961
75+
},
76+
{
77+
"url": "https://github.com/ruffle-rs/ruffle",
78+
"stars": 17183
79+
},
80+
{
81+
"url": "https://github.com/dyad-sh/dyad",
82+
"stars": 14730
83+
}
84+
],
85+
"oxc-parser": [
86+
{
87+
"url": "https://github.com/nuxt/nuxt",
88+
"stars": 58153
89+
},
90+
{
91+
"url": "https://github.com/rolldown/rolldown",
92+
"stars": 11926
1193
},
1294
{
13-
"url": "https://github.com/hashintel/hash",
14-
"stars": 1333
95+
"url": "https://github.com/unovue/shadcn-vue",
96+
"stars": 8189
1597
},
1698
{
17-
"url": "https://github.com/fosslife/devtools-x",
18-
"stars": 1293
99+
"url": "https://github.com/nuxt-modules/i18n",
100+
"stars": 1960
19101
},
20102
{
21-
"url": "https://github.com/piercefreeman/mountaineer",
22-
"stars": 866
103+
"url": "https://github.com/ing-bank/lion",
104+
"stars": 1855
23105
},
24106
{
25-
"url": "https://github.com/codemod/codemod",
26-
"stars": 808
107+
"url": "https://github.com/unjs/unenv",
108+
"stars": 686
27109
},
28110
{
29-
"url": "https://github.com/azat-io/todoctor",
30-
"stars": 480
111+
"url": "https://github.com/unplugin/unplugin-turbo-console",
112+
"stars": 660
31113
},
32114
{
33-
"url": "https://github.com/kermanx/jsshaker",
34-
"stars": 373
115+
"url": "https://github.com/jsrepojs/jsrepo",
116+
"stars": 548
35117
},
36118
{
37-
"url": "https://github.com/Anber/wyw-in-js",
38-
"stars": 298
119+
"url": "https://github.com/lazarv/react-server",
120+
"stars": 382
39121
},
40122
{
41-
"url": "https://github.com/rari-build/rari",
42-
"stars": 259
123+
"url": "https://github.com/unjs/obuild",
124+
"stars": 291
43125
},
44126
{
45-
"url": "https://github.com/elide-dev/elide",
46-
"stars": 244
127+
"url": "https://github.com/iocjs/unioc",
128+
"stars": 227
47129
},
48130
{
49-
"url": "https://github.com/oramasearch/oramacore",
50-
"stars": 193
131+
"url": "https://github.com/chialab/rna",
132+
"stars": 178
51133
},
52134
{
53-
"url": "https://github.com/oxc-project/oxc-node",
54-
"stars": 151
135+
"url": "https://github.com/unplugin/unplugin-isolated-decl",
136+
"stars": 177
55137
},
56138
{
57-
"url": "https://github.com/DonIsaac/oxbuild",
58-
"stars": 99
139+
"url": "https://github.com/unplugin/unplugin-starter",
140+
"stars": 164
59141
},
60142
{
61-
"url": "https://github.com/oxc-project/bench-javascript-parser-written-in-rust",
62-
"stars": 91
143+
"url": "https://github.com/sxzz/rolldown-plugin-dts",
144+
"stars": 161
63145
},
64146
{
65-
"url": "https://github.com/bitcoinresearchkit/brk",
66-
"stars": 77
147+
"url": "https://github.com/oxc-project/oxc-walker",
148+
"stars": 95
67149
},
68150
{
69-
"url": "https://github.com/lukewilson2002/oxc",
70-
"stars": 43
151+
"url": "https://github.com/cyco130/vite-plugin-cjs-interop",
152+
"stars": 87
71153
},
72154
{
73-
"url": "https://github.com/DonIsaac/keyhunter",
74-
"stars": 35
155+
"url": "https://github.com/ArnaudBarre/prettier-oxc-parser",
156+
"stars": 71
75157
},
76158
{
77-
"url": "https://github.com/kermanx/js_to_oxc",
78-
"stars": 34
159+
"url": "https://github.com/ckeditor/ckeditor5-dev",
160+
"stars": 45
79161
},
80162
{
81-
"url": "https://github.com/bitkey-oss/oxjest",
82-
"stars": 23
163+
"url": "https://github.com/roonie007/react-sfc",
164+
"stars": 44
83165
}
84166
]
85167
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@voidzero-dev/vite-plus": "latest",
1818
"dprint": "^0.50.1",
1919
"oxlint-tsgolint": "^0.2.0",
20-
"top-github-dependents-by-stars": "^0.0.2",
20+
"top-github-dependents-by-stars": "^0.0.3",
2121
"vitest": "^3.2.4"
2222
}
2323
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/fetch-github-dependents.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ import { fileURLToPath } from 'url';
77

88
const __dirname = path.dirname(fileURLToPath(import.meta.url));
99

10-
// Hardcoded repositories and their packages
10+
// Hardcoded repositories and their packages with dependent types
1111
const repositories = {
12-
'oxc-project/oxc': ['oxc'], // Using 'oxc' as the main package
12+
'oxc-project/oxc': {
13+
'oxlint': 'repositories',
14+
'oxc-parser': 'packages'
15+
},
1316
// Add more repos and packages here later
1417
};
1518

@@ -27,17 +30,17 @@ async function fetchDependents() {
2730
const allDependents = {};
2831

2932
// Process each repository and its packages
30-
for (const [repoPath, packages] of Object.entries(repositories)) {
33+
for (const [repoPath, packagesConfig] of Object.entries(repositories)) {
3134
console.log(`\n📦 Processing repository: ${repoPath}`);
3235
allDependents[repoPath] = {};
3336

34-
for (const pkg of packages) {
35-
console.log(` → Fetching dependents for package: ${pkg}`);
37+
for (const [pkg, dependentType] of Object.entries(packagesConfig)) {
38+
console.log(` → Fetching dependents for package: ${pkg} (type: ${dependentType})`);
3639

3740
try {
38-
// Fetch top 20 dependents using the API
41+
// Fetch top 20 dependents using the API with configured type
3942
const result = await getDependents(repoPath, {
40-
type: 'repositories',
43+
type: dependentType,
4144
rows: 20,
4245
minStars: 0,
4346
packageName: pkg,
@@ -80,7 +83,7 @@ async function fetchDependents() {
8083
console.log(`\n✅ Successfully saved all dependents to ${outputPath}`);
8184

8285
// Summary
83-
const totalPackages = Object.values(repositories).flat().length;
86+
const totalPackages = Object.values(repositories).reduce((sum, packages) => sum + Object.keys(packages).length, 0);
8487
console.log(`\n📊 Summary:`);
8588
console.log(` - Repositories processed: ${Object.keys(repositories).length}`);
8689
console.log(` - Packages processed: ${totalPackages}`);
@@ -90,4 +93,4 @@ async function fetchDependents() {
9093
fetchDependents().catch(error => {
9194
console.error('Fatal error:', error);
9295
process.exit(1);
93-
});
96+
});

0 commit comments

Comments
 (0)