forked from hackur/github-projects
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
120 lines (117 loc) · 3.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jared's GitHub Microservices</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1/new.min.css"
/>
<link rel="stylesheet" href="https://fonts.xz.style/serve/inter.css" />
</head>
<body>
<header>
<h1>A lil' GitHub Microservice</h1>
<nav>
<a href="#api">API</a> /
<a
href="https://github.com/jaredpalmer/github-repos"
target="_blank"
rel="noreferrer noopener"
>
Source</a
>
/
<a
href="https://github.com/jaredpalmer/github-repos/blob/master/license.md"
target="_blank"
rel="noreferrer noopener"
>MIT License</a
>
</nav>
</header>
<h2 id="#api">API Resources</h2>
<h3><code>GET /api/repos</code></h3>
<p>Get a list of my most popular GitHub projects. Updates every 2 hours.</p>
<table>
<thead>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>name</code></td>
<td><code>string</code></td>
<td>Repository name</td>
<td><code>formik</code></td>
</tr>
<tr>
<td><code>owner</code></td>
<td><code>string</code></td>
<td>Repository owner</td>
<td><code>jaredpalmer</code></td>
</tr>
<tr>
<td><code>description</code></td>
<td><code>string</code></td>
<td>Repository description</td>
<td><code>Build forms in React, without the tears "</td>
</tr>
<tr>
<td><code>url</code></td>
<td><code>string</code></td>
<td>Repository URL</td>
<td><code>https://github.com/jaredpalmer/formik</code></td>
</tr>
<tr>
<td><code>stars</code></td>
<td><code>number</code></td>
<td>GitHub star count</td>
<td>23208</td>
</tr>
<tr>
<td><code>languages</code></td>
<td><code>Record<string, number></code></td>
<td>
Programming languages in use + line count.
</td>
<td><code>{ JavaScript: 121162, CSS: 530, }</code></td>
</tr>
</tbody>
</table>
<p><a href="/api/repos">Try it Now 🔗</a></p>
<p><strong>Example Response:</strong> </p>
<pre><code>
[
{
name: "formik",
owner: "formik",
description: "Build forms in React, without the tears 😭 ",
url: "https://github.com/formik/formik",
stars: 23208,
languages: {
TypeScript: 177029,
JavaScript: 3190,
},
},
{
name: "razzle",
owner: "jaredpalmer",
description: "✨ Create server-rendered universal JavaScript applications with no configuration",
url: "https://github.com/jaredpalmer/razzle",
stars: 9200,
languages: {
JavaScript: 121162,
CSS: 530,
},
},
// ..
]
</code>
</pre>
</body>
</html>