프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요 로그인

aflink: search AF links

✓ 서비스 회사 · aflink.us

제작자: dadatuputi버전 1.0.0i★ 5 (저장소 전체의 별)i클라우드에서 실행공식 사이트 ↗
레지스트리 이름us.aflink/search

설치 방법

할 수 있는 일

Read-only search of aflink.us, a public mirror of the U.S. Air Force portal quick links.

제작자가 쓴 원문

  • 연결 방식 클라우드에서 실행
  • 계정 또는 키 키 필요 없음
  • 분류 검색 및 AI 기억

함께 쓰기

이런 작업을 AI에게 가르치는 Skill, 이것과 함께 쓸 수 있습니다

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

제작자: google-research★ 35,638skill 1개

Skill · 안내서

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

제작자: BigBodyCobain★ 11,605skill 1개

Skill · 안내서

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

제작자: gosom★ 8,236skill 1개

Skill · 안내서

이 순위인 이유

이 항목은 “AI와 연결되는 앱” 탭에 있으며, 이 탭은 별 없이 다음 순서로 정렬합니다

1. Claude 커넥터 디렉터리에 있음아니요
2. 팀이 직접 써 봄아니요
3. 태국 사용자에게 맞음아니요
4. 별을 뺀 사용량20/100인기 0 · 최신성 12 · 응답 중 8 · 사용자 좋아요 +0
5. 등록일2026-11-07

사용자 좋아요: 0 · 순위에 최대 5점(1인 1점) 더해지며 돈으로 살 수 없습니다.

품질: 기본 점검 4/4개 통과(표시만, 정렬에는 안 씀)

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

한 문장으로 AI에게 설치 맡기기

aflink: search AF links 설치해 줘. https://mcp.popnx.com/i/us-aflink-search.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.

내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기

검사 4/4 통과 · 내가 묻는 내용은 제작자 서버(api.aflink.us)를 거쳐요 · ✓ 명령 확인 2026년 11월 20일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음 · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가

  1. Claude의 Connectors 페이지 열기

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. “Add” → “Custom” → “Web”를 누르고 이 2칸 채우기

    여기서 복사해 Claude의 같은 이름 칸에 붙여 넣고 Continue를 누르세요

    Name · 이름aflink: search AF links
    Remote MCP server URL · 주소https://api.aflink.us/mcp

    Claude가 찾은 로그인 설정 화면에서 Continue를 누르고 · Authentication은 제작자 안내대로(Sign in now, Sign in when needed, No sign in) 고른 뒤 Add를 누르세요

  3. 채팅에서 켜기

    +Connectorsaflink: search AF links

  4. 해 보기

    aflink: search AF links을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 aflink: search AF links을 쓰고 있다고 하거나 답에 aflink: search AF links 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT 연결은 요금제에 따라 달라요

전체 MCP: 웹 ChatGPT Business, Enterprise, Edu · Pro: 읽기/가져오기 권한으로 연결, 데이터를 바꾸는 도구는 안 될 수 있어요 · Plus: 공식 문서 미확인, 플러그인 화면에 사용자 지정 MCP 추가 항목이 보이면 시도해 볼 수 있어요 · 웹만

  1. 웹 ChatGPT에서 MCP 추가 페이지 열기

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 이름과 주소 입력

    이름을 넣고 Connection에 주소를 붙여 넣은 뒤 경고에 체크하고 Create as a plugin을 누르세요

    Name · 이름aflink: search AF links
    Connection · 주소https://api.aflink.us/mcp
  3. 채팅에서 aflink: search AF links 고르기

    새 채팅을 열고 입력 전에 플러그인 목록에서 aflink: search AF links을 고르세요

  4. 해 보기

    aflink: search AF links을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ ChatGPT가 aflink: search AF links을 쓰고 있다고 하거나 답에 aflink: search AF links 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 OpenAI 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Claude Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  2. 이 명령을 붙여 넣고 Enter

    claude mcp add --transport http --scope user search https://api.aflink.us/mcp
  3. Claude Code에서 /mcp 입력

    aflink: search AF links이 목록에 있고 연결됨으로 보이면 돼요

  4. 해 보기

    aflink: search AF links을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 aflink: search AF links을 쓰고 있다고 하거나 답에 aflink: search AF links 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  2. Cursor에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    aflink: search AF links을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 aflink: search AF links을 쓰고 있다고 하거나 답에 aflink: search AF links 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  2. VS Code에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    aflink: search AF links을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 aflink: search AF links을 쓰고 있다고 하거나 답에 aflink: search AF links 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

웹으로 연결하는 앱용 주소

주소https://api.aflink.us/mcp

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? aflink: search AF links을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

웹으로 연결

Claude Code

claude mcp add --transport http --scope user search https://api.aflink.us/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "search": {
      "url": "https://api.aflink.us/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "search": {
      "type": "http",
      "url": "https://api.aflink.us/mcp"
    }
  }
}

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

GitHub 스타i
5 (저장소 전체의 별)
이 저장소에는 MCP 항목이 여러 개 있어 별은 순위에서 한 번만 세요
주간 다운로드i
npm/PyPI에 없음
확인된 도메인
✓ aflink.us
연결 방식
클라우드에서 실행
전송 방식
streamable-http
최신 버전i
1.0.0
레지스트리 공개i
2026년 11월 8일
코드 마지막 변경i
2026년 11월 20일
마지막 확인
2026년 11월 17일
제작자
dadatuputi
웹사이트
aflink.us
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

인터넷으로 연결하는 앱

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

모든 앱과 장단점 →

할 수 있는 일

도구 이름과 설명은 서버가 2026년 11월 17일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.

  • search_links

    Search aflink.us for Air Force and DoD websites by name, acronym, URL, category or purpose (for example "mypay", "travel voucher", "leave"). Every word must match. Returns each link's title, URL and category, best matches (title matches) first. Links in the UNOFFICIAL category ar

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 20일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 도메인 aflink.us 기준으로 확인되었어요(레지스트리가 도메인 소유를 확인해요)

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 오늘

  • – 해당 없음

    라이선스 있음

    해당 없음: aflink.us 소유자가 직접 운영하는 클라우드 서버라 저장소 코드를 실행하지 않아요

  • ✓ 통과

    엔드포인트 응답

    71ms 만에 응답(HTTP 200)

  • – 해당 없음

    OAuth로 로그인

    로그인 필요 없음

  • ✓ 통과

    도구 설명에 숨겨진 지시 없음

    도구 설명 1개를 읽었고, AI에게 보내는 숨겨진 지시는 없었어요

우리가 확인하는 것 → · JSON

제작자: 재확인 요청 또는 잘못된 정보 신고
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/us-aflink-search.svg)](https://mcp.popnx.com/en/servers/us-aflink-search)

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

로그인하고 리뷰 쓰기

검색 및 AI 기억 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 6470개 중 76%보다 스타가 많아요
  • 이 카테고리의 다른 서버 6470개 중 76%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 6470개 중 99%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

aflink: search AF links, 안전한가요?

해당하는 기본 점검 4개 중 4개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 오늘 변경됐고, 최신 버전(1.0.0)은 12일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되므로 원격 MCP를 받는 앱에서도 쓸 수 있어요. 예: 웹 ChatGPT(Business 이상은 전체 MCP, Pro는 읽기 전용).

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: OpenSEO, Exa, Microsoft Learn MCP, Docs, COTAL actions (cotal.ai)

비슷하게 동작하는 다른 것

같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

제작자: every-app널리 사용됨★ 2.8만6일 전 업데이트

클라우드에서 실행✓ everyapp.com

Exa

Official Exa MCP for web search, content fetching, and multi-step research.

제작자: exa-labs널리 사용됨★ 5.2천오늘 업데이트

클라우드에서 실행✓ 서비스 회사 · exa.aiPopNx 팀이 직접 써 봄

Microsoft Learn MCP

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

제작자: MicrosoftDocs널리 사용됨★ 2천12개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · microsoft.comPopNx 팀이 직접 써 봄

Docs

Search and read Empryo's documentation. Read-only, no auth, no local access.

제작자: proxysoul성장 중★ 1.6천2개월 전 업데이트

클라우드에서 실행✓ empryo.com
비슷한 항목과 비교
이 항목
aflink: search AF links
OpenSEOExaMicrosoft Learn MCPDocsCOTAL actions (cotal.ai)
실행 위치클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요
키 필요아니요아니요아니요아니요아니요아니요
Claude에서 +로 추가아니요예예예아니요아니요
기본 점검4/45/52/44/44/44/4
라이선스MITMITMITCC-BY-4.0NOASSERTIONApache-2.0
가격등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

Search worker

Cloudflare Worker behind the address-bar autocomplete (OpenSearch suggestions) for aflink.us, and aflink's public, read-only MCP server. Deployed as aflink-autocomplete and served at https://api.aflink.us; the site points at it through suggestedURL in updater.js, which the browser discovers via osdd.xml.

How a suggestion round trips

  1. The browser calls GET /search/{searchTerms} while the user types.
  2. The worker answers [" ", [" {CATEGORY}", ...]] — the title, a zero-width space, then the category.
  3. Picking one loads aflink.us/?q= .
  4. The page (src/includes/js/search.js) sees the zero-width space, searches on the title, finds the row whose title *and* category match the suggestion, and follows it.

So a suggestion is only useful if the page can find the same link. Anything the worker offers that the page hides, or matches differently, is a dead suggestion — the user picks it and lands somewhere else, or nowhere.

Staying in sync with the site

Two things keep the two ends together, and both are load-bearing:

  • Matching rules live in src/includes/js/search-match.js. The page inlines that file; this worker imports it. There is one implementation, so normalization, multi-word matching, title/URL/category matching and the ranking score cannot drift. Change matching there and both ends move together. While searching, the page lists its rows in score order, ties in page order, which is the order this worker suggests them in.
  • The link list is assembled from src/links/ by scripts/assemble-links.js, which both builds run: updater.js for the site and its links.json, and build-links.js for this worker, which bundles the result in the links.json shape. The worker rebuilds what the page displays from it: official categories in page order (skipping isDeleted links, which the page hides), then the unofficial list.

npm test in the repo root covers both — including checks that the links.json the site build actually produces is what the worker reads, and that the worker's bundle holds the same links.

Deploys

Cloudflare Workers Builds deploys the worker on every push to master that touches one of its watch paths, running cd search_worker && npx wrangler deploy. Wrangler first runs the build command in wrangler.jsonc, node build-links.js, which writes src/links.generated.js (gitignored) from that commit's src/links/. So the deployed worker carries exactly the links the commit lists: nothing is fetched at request time and nothing is cached.

That only works if a link-only change triggers a build, so the watch paths (Workers & Pages → aflink-autocomplete → Settings → Build) must cover everything the worker is built from:

search_worker/*

src/links/* src/includes/js/search-match.js scripts/assemble-links.js scripts/link-status.js

A new file the worker or build-links.js imports goes on that list too. Retirement is by date (scripts/link-status.js), so a link that retires without any commit leaves the worker at the next link change; the weekly link health commit bounds that to a week.

Changes that need the worker updated
Change on the siteWhat the worker needs
How search matches or ranks (normalizing, word splitting, what fields count, score)Nothing, if the change is made in search-match.js; the worker imports it
A new field or source of links (another section, another JSON file)Add it in assemble-links.js (both builds pick it up); publishedLinks(), build-links.js's slim() and to_entries() must carry it, and a new file needs a watch path
A link becoming hidden on the page (a new flag like isDeleted)to_entries() must filter it out too
Renaming or restructuring links.jsonto_entries() reads the new shape
How the page resolves a chosen suggestion (?q= parsing)The suggestion format here has to match it

MCP server (POST /mcp)

The same worker is a Model Context Protocol server, so an AI agent can look up an Air Force or DoD site the way a person does on aflink.us. It is listed in the MCP Registry as us.aflink/search. The Registry verifies that name against the aflink.us domain itself (see below), and the endpoint is on the same domain, so the listing, the site and the server are visibly one publisher.

  • Endpoint: https://api.aflink.us/mcp (api.aflink.us is a Cloudflare custom domain on this worker, declared in wrangler.jsonc, that also serves the suggestions and submissions), Streamable HTTP transport (MCP spec 2025-11-25; 2025-06-18 and 2025-03-26 clients are also accepted).
  • One tool, `search_links`: takes a query (and an optional limit, 1–50, default 10) and returns matching links with title, URL, category and summary, title matches first. Links in the UNOFFICIAL category come back with official: false, and links marked as opening only from a government network with milOnly: true.
  • Read-only: the tool searches the link list bundled into the worker, the same list aflink.us publishes as links.json, and nothing else. It cannot add, change or request links; that still goes through the issue forms and their review.
  • No authentication: it serves only what https://aflink.us/links.json already publishes. No login, no API key, no cookies, and the worker stores nothing about the caller.
  • Same answers as the site: it uses the list and ranking the suggestions use (to_entries() and search() in src/index.js) and the page's own matching rules in search-match.js, so the parity rules above cover it too.

It is stateless: each POST gets one JSON response, no session is kept, and GET /mcp is 405 because the server never sends anything unprompted. Any web origin may call it (CORS *), since there is nothing private to protect; an Origin that is not an http(s) origin is refused, as the transport spec asks. The code is src/mcp.js with no SDK dependency, and test/mcp-server.test.js covers the protocol, the tool and server.json.

Discovery. Besides the Registry listing, the server can be found from the domain itself, as the MCP Server Cards extension (SEP-2127) describes. src/.well-known/ai-catalog.json is served at https://aflink.us/.well-known/ai-catalog.json and lists one entry, which points to the server card at GET https://api.aflink.us/mcp/server-card, the place the spec reserves for a server at /mcp. The card (SERVER_CARD in mcp.js) gives the name, version, description and endpoint, with CORS, an ETag and an hour's caching; it does not list tools, which clients still get from tools/list. It is built in mcp.js rather than read from server.json, so the worker needs no new watch path, and a test checks the two agree. Both formats are new, so update them if the extension changes.

To try it:

claude mcp add --transport http aflink https://api.aflink.us/mcp

or, with the MCP Inspector

npx @modelcontextprotocol/inspector # transport "Streamable HTTP", the URL above

Publishing to the MCP Registry

server.json in the repository root is the Registry entry. .github/workflows/mcp_publish.yml publishes it, run by hand from the Actions tab:

  1. Merge the change to master. Cloudflare Workers Builds deploys the worker on every push to master that touches search_worker/, and GitHub Pages rebuilds the site; wait for both.
  2. Run Publish MCP server. It runs the MCP tests, checks that https://api.aflink.us/mcp answers initialize as us.aflink/search at the version in server.json and that aflink.us serves the public key, then logs in and publishes.

How the Registry knows aflink.us is ours. The us.aflink/* namespace is proven over HTTP: src/.well-known/mcp-registry-auth holds an Ed25519 public key (v=MCPv1; k=ed25519; p=…), served at https://aflink.us/.well-known/mcp-registry-auth, and the workflow signs its login with the matching private key. Jekyll and the Pages upload skip dot-folders, so src/_config.yml includes it and build.yml uploads hidden files; a test checks both. The private key is the MCP_REGISTRY_KEY secret of the mcp-registry-publish environment, limited to master, because it can publish anything under us.aflink/*. To rotate it, generate a new pair, replace the file and the secret, and let Pages rebuild before publishing.

The custom domain. api.aflink.us was attached once in the dashboard: adding a domain needs zone permission the Workers Builds token does not have, while a deploy that leaves an existing domain as it is needs none. wrangler.jsonc lists it so deploys keep it, and sets workers_dev: true, because a config with routes otherwise turns the workers.dev URL off. The site and getlinks.js now use api.aflink.us; the workers.dev URL stays on only for a month while traffic moves over, and is to be turned off (workers_dev: false) after 2026-12-07.

For a new listing, bump version in server.json and SERVER_VERSION in src/mcp.js together (a test checks they agree, and that the server card matches server.json), merge, let the worker build finish, and run the workflow again. The Registry refuses a version it already has.

Development

npm install          # in this directory

npm run dev # serves the worker on :8787 npm run deploy # wrangler deploy (by hand; normally Workers Builds deploys on push to master)

A development build of the site (npm run dev:build in the repo root) points its suggestions at localhost:8787, so the two can be exercised together. npm run dev bundles the links from your working copy of src/links/, so a local edit shows up when the worker restarts. npm test in the repo root bundles them too (its pretest step).

Portal link submissions (POST /submit)

The same worker receives link lists from getlinks.js, run in the browser console on any AF Portal page: the script fetches every list the portal has and sends them together as { pages: [{ source, afpCategorizedLinksDto }] }. The worker starts the Portal Sync workflow (.github/workflows/portal_sync.yml), which merges the lists on the portal-sync branch and opens or updates one pull request. Nothing reaches the site until that PR is merged.

The endpoint is public, so src/submit.js is strict:

  • Browser origin must be the AF Portal.
  • Every page's source must be one of KNOWN_SOURCES, each at most once; a new portal list is added there and to PAGES in getlinks.js.
  • Only title, link, contentId and a few known fields are kept, each checked for shape and length; the whole payload is capped at 512 KB.
  • Per-address and daily rate limits, counted in the LINKS KV namespace; an identical payload within a day is acknowledged but not re-sent.
  • The packed payload is kept in KV for a day and served at GET /submission/ ; the workflow receives only the id, because workflow_dispatch inputs are capped at 64 KB and the lists with their descriptions are larger.
  • On the workflow side, scripts/af-guard.js fails the run (and opens an issue) if a submission would move an existing link to a non-official domain.

It needs

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요