Skip to content

fix(frontend): remove remaining fake API references#38

Merged
JoshDFN merged 4 commits intomainfrom
fix/remove-fake-api
Feb 27, 2026
Merged

fix(frontend): remove remaining fake API references#38
JoshDFN merged 4 commits intomainfrom
fix/remove-fake-api

Conversation

@marc0olo
Copy link
Copy Markdown
Member

@marc0olo marc0olo commented Feb 27, 2026

Summary

PR #41 replaced the fake API on the /access page with real endpoints, but fake API references remained elsewhere. This PR cleans up the remaining ones:

  • how-it-works page: Replaced fake JS fetch("/api/v1/skills/ckbtc") terminal example with real shell commands (curl, npx skills add). Updated step descriptions and CTA.
  • BrowseTab hero: "One API call, zero hallucinations" → "Zero hallucinations". Replaced fake fetch URL hint with npx skills add dfinity/icskills.
  • Framework grid: "Your Agent / curl + paste" → "skills.sh / npx skills add" — advertises an actual tool instead of a vague placeholder.
  • Footer: "The API for building on the Internet Computer" → "Agent-readable instructions for the Internet Computer".
  • README: Added CLI row (npx skills add dfinity/icskills) to Programmatic Access table.
  • CSS: Removed unused .api-info-grid and .api-endpoint-card rules.

The site prominently featured 7 non-existent /api/v1/... endpoints with
curl examples and fetch code that all returned 404s. Replace with real
access methods: skills.sh CLI, llms.txt, and raw GitHub URLs.

- Remove API_ENDPOINTS constant and entire API tab (~250 lines)
- Replace "Your Agent / REST API" framework with "skills.sh / npx skills add"
- Update hero, how-it-works, and CTA copy to reference real access methods
- Remove unused .api-info-grid and .api-endpoint-card CSS rules
- Replace planned REST API section in README with skills.sh CLI entry
@marc0olo marc0olo requested a review from JoshDFN as a code owner February 27, 2026 10:23
Resolve merge conflicts with Astro migration (PR #39) and apply the
fake API removal to the new Astro codebase:

- Delete ApiTab component and /api/ page entirely
- Remove API_ENDPOINTS constant and API tab from navigation
- Replace "Your Agent / REST API" framework with "skills.sh / npx skills add"
- Update hero, how-it-works terminal example, and CTA to reference
  real access methods (llms.txt, raw GitHub URLs, skills.sh CLI)
- Update footer copy
- Keep both README additions (skill page URLs from Astro + CLI row)
Resolve conflicts with PRs #40-#42 on main:
- Accept the new "access" tab with real endpoints (llms.txt, raw GitHub, etc.)
- Accept accessibility improvements (aria-labels, contrast fixes)
- Replace "Your Agent / curl + paste" with "skills.sh / npx skills add"
  in the framework grid (the access page covers generic curl usage)
@marc0olo marc0olo changed the title fix(frontend): remove fake REST API and add real access methods fix(frontend): remove remaining fake API references Feb 27, 2026
Copy link
Copy Markdown
Collaborator

@JoshDFN JoshDFN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean changes, removes all remaining fake API references. Nice addition of skills.sh throughout.

@JoshDFN JoshDFN merged commit 12b47a8 into main Feb 27, 2026
6 checks passed
@marc0olo marc0olo deleted the fix/remove-fake-api branch February 27, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants