gitglass
embed a VS Code-style GitHub repo browser in any static page
▾
src
C#
Program.cs
C#
Startup.cs
{}
appsettings.json
▾
tests
C#
ApiTests.cs
▸
web
C#
Demo.csproj
M↓
README.md
LICENSE
Program.cs
×
Startup.cs
×
1
var
builder = WebApplication.CreateBuilder(args);
2
builder.Services.AddHybridCache();
3
4
// one flight per key, the rest wait
5
app.MapGet(
"/report"
,
async
(HybridCache cache) =>
6
await
cache.GetOrCreateAsync(
"report"
, LoadAsync));
7
8
app.Run();
owner/repo @ main
Program.cs · 8 lines · cs
9.9 KB
JS · min + gzip
0
dependencies
11
theme presets
18
packs + fallback
1–2
API calls per typical repo
<div data-gitglass="owner/repo"></div>
— that's the whole integration
github.com/gdhami-net/gitglass