Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions e2e/apps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ test("cards and details expose only the intended external actions", async ({ pag
["Live App", "https://travelcanary.org/", "https://github.com/hypertrial/travelcanary"],
[undefined, undefined, "https://github.com/hypertrial/househunter"],
[undefined, undefined, "https://github.com/hypertrial/rockyroad"],
["Archive", "https://stackingsats.org/", "https://github.com/hypertrial/stacksats"],
["Archive", "https://stackingsats.org/", "https://github.com/hypertrial/stacksats", "https://bitview.space/"],
] as const;
const statuses = [undefined, undefined, "Beta", "Alpha", "Alpha", "Archived"] as const;
for (const [index, [action, destination, source]] of expected.entries()) {
for (const [index, [action, destination, source, brkUrl]] of expected.entries()) {
const card = cards.nth(index);
const status = statuses[index];
if (status) await expect(card.getByText(status, { exact: true })).toBeVisible();
else await expect(card.getByText(/^(Alpha|Beta|Archived)$/)).toHaveCount(0);
const links = card.locator('a[target="_blank"]');
await expect(links).toHaveCount(action ? 2 : 1);
await expect(links).toHaveCount((action ? 2 : 1) + (brkUrl ? 1 : 0));
if (action) await expect(links.first()).toHaveAttribute("href", destination!);
if (brkUrl) await expect(links.nth(1)).toHaveAttribute("href", brkUrl);
await expect(links.last()).toHaveAttribute("href", source);
for (const link of await links.all()) {
await expect(link).toHaveAttribute("rel", /noopener.*noreferrer/);
Expand All @@ -90,6 +91,7 @@ test("cards and details expose only the intended external actions", async ({ pag

await page.goto("/apps/stackingsats");
await expect(page.getByRole("link", { name: /Archive/ })).toHaveAttribute("href", "https://stackingsats.org/");
await expect(page.getByRole("link", { name: /Explore BRK Data/ })).toHaveAttribute("href", "https://bitview.space/");
await expect(page.getByRole("link", { name: /Live App/ })).toHaveCount(0);
await expect(page.getByText(/historical|archiv/i).first()).toBeVisible();
});
Expand Down
1 change: 1 addition & 0 deletions src/components/AppActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export function AppActions({ app }: { app: AppEntry }) {
const actions = [
...(app.liveUrl ? [{ label: appsCopy.liveAppLabel, href: app.liveUrl }] : []),
...(app.archiveUrl ? [{ label: appsCopy.archiveLabel, href: app.archiveUrl }] : []),
...(app.brkUrl ? [{ label: appsCopy.exploreBrkLabel, href: app.brkUrl }] : []),
{ label: appsCopy.sourceCodeLabel, href: app.sourceUrl },
];

Expand Down
18 changes: 9 additions & 9 deletions src/content/apps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { apps, getAppBySlug } from "./apps";
import { getActiveDatasets } from "../lib/datasets";

const expectedApps = [
{ slug: "titanskies", title: "TitanSkies", status: undefined, liveUrl: "https://www.titanskies.com/", archiveUrl: undefined, sourceUrl: "https://github.com/hypertrial/titanskies" },
{ slug: "hyperoptions", title: "HyperOptions", status: undefined, liveUrl: undefined, archiveUrl: undefined, sourceUrl: "https://github.com/hypertrial/hyperoptions" },
{ slug: "travelcanary", title: "TravelCanary", status: "beta", liveUrl: "https://travelcanary.org/", archiveUrl: undefined, sourceUrl: "https://github.com/hypertrial/travelcanary" },
{ slug: "househunter", title: "HouseHunter", status: "alpha", liveUrl: undefined, archiveUrl: undefined, sourceUrl: "https://github.com/hypertrial/househunter" },
{ slug: "rockyroad", title: "RockyRoad", status: "alpha", liveUrl: undefined, archiveUrl: undefined, sourceUrl: "https://github.com/hypertrial/rockyroad" },
{ slug: "stackingsats", title: "StackingSats", status: "archived", liveUrl: undefined, archiveUrl: "https://stackingsats.org/", sourceUrl: "https://github.com/hypertrial/stacksats" },
{ slug: "titanskies", title: "TitanSkies", status: undefined, liveUrl: "https://www.titanskies.com/", archiveUrl: undefined, brkUrl: undefined, sourceUrl: "https://github.com/hypertrial/titanskies" },
{ slug: "hyperoptions", title: "HyperOptions", status: undefined, liveUrl: undefined, archiveUrl: undefined, brkUrl: undefined, sourceUrl: "https://github.com/hypertrial/hyperoptions" },
{ slug: "travelcanary", title: "TravelCanary", status: "beta", liveUrl: "https://travelcanary.org/", archiveUrl: undefined, brkUrl: undefined, sourceUrl: "https://github.com/hypertrial/travelcanary" },
{ slug: "househunter", title: "HouseHunter", status: "alpha", liveUrl: undefined, archiveUrl: undefined, brkUrl: undefined, sourceUrl: "https://github.com/hypertrial/househunter" },
{ slug: "rockyroad", title: "RockyRoad", status: "alpha", liveUrl: undefined, archiveUrl: undefined, brkUrl: undefined, sourceUrl: "https://github.com/hypertrial/rockyroad" },
{ slug: "stackingsats", title: "StackingSats", status: "archived", liveUrl: undefined, archiveUrl: "https://stackingsats.org/", brkUrl: "https://bitview.space/", sourceUrl: "https://github.com/hypertrial/stacksats" },
] as const;

function expectHttps(raw: string) {
Expand All @@ -21,8 +21,8 @@ function expectHttps(raw: string) {

describe("reviewed app catalog", () => {
it("has exactly the six intended routes, availability states, and outbound destinations", () => {
expect(apps.map(({ slug, title, status, liveUrl, archiveUrl, sourceUrl }) => ({
slug, title, status, liveUrl, archiveUrl, sourceUrl,
expect(apps.map(({ slug, title, status, liveUrl, archiveUrl, brkUrl, sourceUrl }) => ({
slug, title, status, liveUrl, archiveUrl, brkUrl, sourceUrl,
}))).toEqual(expectedApps);
expect(new Set(apps.map(({ slug }) => slug)).size).toBe(6);
expect(getAppBySlug("")).toBeUndefined();
Expand All @@ -45,7 +45,7 @@ describe("reviewed app catalog", () => {
const today = new Date();
const todayUtc = Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate());
expect(todayUtc - reviewDate.getTime(), `${app.slug}: source map is older than 90 days`).toBeLessThanOrEqual(90 * 24 * 60 * 60 * 1000);
for (const url of [app.sourceUrl, app.sourceEvidenceUrl, app.liveUrl, app.archiveUrl]) {
for (const url of [app.sourceUrl, app.sourceEvidenceUrl, app.liveUrl, app.archiveUrl, app.brkUrl]) {
if (url) expectHttps(url);
}
expect(app.sourceEvidenceUrl, app.slug).toContain(app.sourceRevision);
Expand Down
1 change: 1 addition & 0 deletions src/content/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type AppEntry = {
status?: "alpha" | "beta" | "archived";
liveUrl?: string;
archiveUrl?: string;
brkUrl?: string;
sourceUrl: string;
sourceRevision: string;
sourceEvidenceUrl: string;
Expand Down
8 changes: 6 additions & 2 deletions src/content/apps/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,19 +399,23 @@ export const otherApps = [
summary: "Archived Bitcoin accumulation research site and Python library for testing fixed-budget allocation strategies.",
status: "archived",
archiveUrl: "https://stackingsats.org/",
brkUrl: "https://bitview.space/",
sourceUrl: "https://github.com/hypertrial/stacksats",
sourceRevision: "9ba73643c4478ddd92650557a90e91e64674f587",
sourceEvidenceUrl: "https://github.com/hypertrial/stacksats/blob/9ba73643c4478ddd92650557a90e91e64674f587/docs/data-source.md",
reviewedAt: "2026-09-28",
sourceIntro: "The archived website is informational. The historical StackSats library uses a manually fetched, hash-verified BRK parquet and can optionally call market-price helpers. Backtests never imply that the archived site serves a live feed.",
sourceIntro: "The archived website is informational. The historical StackSats library uses a manually fetched, hash-verified BRK parquet and can optionally call market-price helpers. Bitview is BRK's separate hosted explorer; it does not feed the archived site or library.",
sources: [
{
name: "Bitcoin Research Kit merged metrics",
group: "Historical library data",
role: "Canonical long-format Bitcoin metrics projected into a local wide parquet for strategy research and backtests.",
availability: "Pinned 2026-03-15 Google Drive artifact; explicit fetch verifies 1.16 GB size and SHA-256. Runtime reads local parquet and never auto-downloads.",
officialUrl: "https://github.com/bitcoinresearchkit/brk",
additionalUrls: [{ label: "Pinned parquet artifact", href: "https://drive.google.com/file/d/1jKRRU7l9kOMdGI_hIJGg02X3jWTMPJsw/view?usp=sharing" }],
additionalUrls: [
{ label: "Pinned parquet artifact", href: "https://drive.google.com/file/d/1jKRRU7l9kOMdGI_hIJGg02X3jWTMPJsw/view?usp=sharing" },
{ label: "Hosted BRK data (Bitview)", href: "https://bitview.space/" },
],
evidenceUrl: "https://github.com/hypertrial/stacksats/blob/9ba73643c4478ddd92650557a90e91e64674f587/stacksats/assets/brk_data_manifest.json",
coverage: "Snapshot documents 2009-01-03 through 2026-03-13 daily metrics.",
noGuideReason: "A BRK merged-metrics guide has not passed the Data catalog's access and reuse review.",
Expand Down
1 change: 1 addition & 0 deletions src/content/site-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const appsCopy = {
},
liveAppLabel: "Live App",
archiveLabel: "Archive",
exploreBrkLabel: "Explore BRK Data",
sourceCodeLabel: "Source Code",
} as const;

Expand Down
Loading