Implement meshinfo-network: Strapi + Astro centralized instance directory#2
Draft
Implement meshinfo-network: Strapi + Astro centralized instance directory#2
Conversation
…mpose, docs Co-authored-by: daviesgeek <2348508+daviesgeek@users.noreply.github.com> Agent-Logs-Url: https://github.com/MeshAddicts/meshinfo-network/sessions/c2ddfced-2d93-4af0-b27a-e6ec08c4e9c9
Copilot
AI
changed the title
[WIP] Design and implement meshinfo-network as centralized directory
Implement meshinfo-network: Strapi + Astro centralized instance directory
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the stub Python/FastAPI app with a full Strapi 5 + Astro 5 architecture for a moderated public directory of MeshInfo instances.
Strapi backend (
strapi/)MeshInstance(status/visibility workflow, bcrypt-hashed auth token, uniquecanonicalUrl),StatsSnapshot(coarse node count + geographic bounds),HeartbeatEvent(event log)POST /api/register— canonicalizes URL, createspendingrecord, generates 32-byte token, returns plaintext once, stores bcrypt hashPOST /api/instances/:id/heartbeat— token-authenticatedlastSeenAtupdate + event logPOST /api/instances/:id/stats— token-authenticated stats snapshot ingestionGET /api/instances[/:id]— returns onlystatus=approved+visibility=publicrecords (consumed server-side by Astro)lib/canonicalUrl.js— strips protocol/trailing slashes, lowercases host, preserves paths/subdomains/ports; 11 unit testslib/tokenHelper.js—crypto.randomBytes(32)+bcryptjshash/verifybetter-sqlite3;DATABASE_CLIENTenv var makes Postgres a one-line switchAstro frontend (
frontend/)output: 'hybrid'— home page is statically prerendered; instances listing and detail are SSR for freshnesssrc/lib/strapi.tsfetches from Strapi server-side only;STRAPI_TOKENnever reaches the browserNetworking model (
docker-compose.yml+nginx/nginx.conf)ports:— attached only to the internal Docker bridge network:80→ Astro (public),:1337→ Strapi admin panel;location /api { return 403; }blocks content API access on the public portSTRAPI_URL=http://strapi:1337is the only path Astro uses to talk to StrapiDocs
README.md— architecture diagram, content model, API reference, Docker + local dev guide, env var tabledocs/canonical-url.md,docs/registration-flow.md,docs/meshinfo-integration.md(Phase 2 Python integration plan with code samples)⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.