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
5 changes: 3 additions & 2 deletions public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ reference environment.
Stripe traffic; Phase 3 is gated on a second real provider.
- [Sessions](https://github.com/pegma-dev/sessions): @pegma/sessions —
server-side session records: hashed ids, absolute + idle expiry,
principal-wide revocation. In development and unpublished: Phase 1 is
merged, and Phase 2 first-consumer migration is merged into RetireGolden.
principal-wide revocation. Published as 0.1.0: Phase 1 is merged, Phase 2
first-consumer migration is merged into RetireGolden, and the early 0.x API
remains unstable.
- [Rate Limit](https://github.com/pegma-dev/rate-limit): @pegma/rate-limit —
an honest in-memory tier and a durable fail-closed tier. Planned.
- [Identity](https://github.com/pegma-dev/identity): @pegma/identity —
Expand Down
6 changes: 3 additions & 3 deletions src/data/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface PegmaComponent {
readonly plan?: string;
}

export const SNAPSHOT_DATE = '2026-07-27';
export const SNAPSHOT_DATE = '2026-07-28';

export const components: readonly PegmaComponent[] = [
{
Expand Down Expand Up @@ -155,7 +155,7 @@ export const components: readonly PegmaComponent[] = [
repo: 'sessions',
title: 'Sessions',
packages: ['@pegma/sessions'],
status: 'in development',
status: 'published',
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
summary: 'Server-side session records: hashed ids, dual expiry, revoke-everywhere.',
owns: [
'SHA-256-hashed identifiers, non-optionally — a leaked table hands out no sessions',
Expand All @@ -166,7 +166,7 @@ export const components: readonly PegmaComponent[] = [
'Authentication — no OIDC, cookies, or CSRF; the host logs people in, this store remembers',
'Tokens at rest, ever',
],
now: 'Phase 1 record store is merged; Phase 2 first-consumer migration is merged into RetireGolden; unpublished.',
now: '0.1.0 on npm; Phase 2 first-consumer migration is merged into RetireGolden; early 0.x API remains unstable.',
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
plan: 'docs/PROJECT_PLAN.md',
},
{
Expand Down
33 changes: 33 additions & 0 deletions src/data/live-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* `now` line, so a GitHub hiccup can never break a deploy.
*/

import type { ComponentStatus, PegmaComponent } from './components';

const cache = new Map<string, Promise<string | null>>();

async function fetchStage(repo: string, plan: string): Promise<string | null> {
Expand Down Expand Up @@ -56,3 +58,34 @@ export function planStage(repo: string, plan: string | undefined): Promise<strin
}
return hit;
}

function statusFromStage(stage: string | null, fallback: ComponentStatus): ComponentStatus {
if (!stage) return fallback;

const normalized = stage.toLowerCase();
const saysUnpublished = /\b(?:unpublished|not published)\b/.test(normalized);

if (
!saysUnpublished &&
/\b(?:is published|published as|published at|on npm|first public)\b/.test(normalized)
) {
return 'published';
}

if (saysUnpublished && fallback !== 'planned') {
return 'in development';
}

return fallback;
}

export async function compileComponentStatus(
component: PegmaComponent,
): Promise<PegmaComponent & { readonly stage: string | null }> {
const stage = await planStage(component.repo, component.plan);
return {
...component,
stage,
status: statusFromStage(stage, component.status),
};
}
5 changes: 4 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
import Base from '../layouts/Base.astro';
import { components, SNAPSHOT_DATE } from '../data/components';
import { compileComponentStatus } from '../data/live-status';

const withCompiledStatus = await Promise.all(components.map(compileComponentStatus));
---

<Base
Expand Down Expand Up @@ -37,7 +40,7 @@ import { components, SNAPSHOT_DATE } from '../data/components';
<h2>The stack today</h2>
<ul class="card-grid">
{
components.map((c) => (
withCompiledStatus.map((c) => (
<li class="card">
<h3>
<a href={`/stack#${c.repo}`}>{c.title}</a>{' '}
Expand Down
8 changes: 3 additions & 5 deletions src/pages/roadmap.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
import Base from '../layouts/Base.astro';
import { components, SNAPSHOT_DATE } from '../data/components';
import { planStage } from '../data/live-status';
import { compileComponentStatus } from '../data/live-status';

const order: Record<string, number> = { published: 0, 'in development': 1, planned: 2 };
const sorted = await Promise.all(
[...components]
.sort((a, b) => order[a.status] - order[b.status])
.map(async (c) => ({ ...c, stage: await planStage(c.repo, c.plan) })),
const sorted = (await Promise.all(components.map(compileComponentStatus))).sort(
(a, b) => order[a.status] - order[b.status],
);
const compiledCount = sorted.filter((c) => c.stage).length;
const builtOn = new Date().toISOString().slice(0, 10);
Expand Down
6 changes: 2 additions & 4 deletions src/pages/stack.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
import Base from '../layouts/Base.astro';
import { components, SNAPSHOT_DATE } from '../data/components';
import { planStage } from '../data/live-status';
import { compileComponentStatus } from '../data/live-status';

const withStage = await Promise.all(
components.map(async (c) => ({ ...c, stage: await planStage(c.repo, c.plan) })),
);
const withStage = await Promise.all(components.map(compileComponentStatus));
---

<Base
Expand Down