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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ Returns JSON array of all library names
- [책 검색 (HTML)](http://localhost:3000/javascript/판교)
- [책 검색 (JSON)](http://localhost:3000/search?title=javascript&libraryName=판교)

## 서버에서 확인 (https://dongne.onrender.com/)
## 서버에서 확인 (https://dongne.afrontend.dev/)

- [도서관 목록 읽기 (JSON)](https://dongne.onrender.com/libraryList)
- [책 검색 (HTML)](https://dongne.onrender.com/javascript/판교)
- [책 검색 (JSON)](https://dongne.onrender.com/search?title=javascript&libraryName=판교)
- [도서관 목록 읽기 (JSON)](https://dongne.afrontend.dev/libraryList)
- [책 검색 (HTML)](https://dongne.afrontend.dev/javascript/판교)
- [책 검색 (JSON)](https://dongne.afrontend.dev/search?title=javascript&libraryName=판교)

## Usage Examples

Expand Down Expand Up @@ -272,7 +272,7 @@ Claude 설정 > 커넥터 > 커스텀 커넥터 추가 > 원격 MCP 서버 URL
| **→ AgentSandbox** | `list_libraries` / `search_books` MCP Tool이 AgentSandbox Live 모드에서 실연동. Claude Haiku가 이 서버를 실제 도구로 호출하며 AgentEvent 스트림으로 시각화됨 |
| **← IVI Playground** | AbortController 기반 요청 취소 패턴 공유. 클라이언트 연결 해제 시 스크래핑까지 즉시 중단하는 구조가 IVI의 ScenarioPlayer 중단 로직과 동일 |

**Live 데모:** [AgentSandbox](https://agent-sandbox-tm5k.onrender.com) · [Dongne](https://dongne.onrender.com) · [IVI Playground](https://ivi-playground.onrender.com)
**Live 데모:** [AgentSandbox](https://agent-sandbox-tm5k.onrender.com) · [Dongne](https://dongne.afrontend.dev) · [IVI Playground](https://ivi-playground.onrender.com)

---

Expand Down
4 changes: 2 additions & 2 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 동네 도서관에서 찾기 (크롬 확장)

웹에서 본 책 제목을 드래그해 [동네 도서관](https://dongne.onrender.com/)에서 바로 찾는 크롬 확장입니다.
웹에서 본 책 제목을 드래그해 [동네 도서관](https://dongne.afrontend.dev/)에서 바로 찾는 크롬 확장입니다.
같은 일을 하는 북마클릿은 사이트 맨 아래 "📚 동네 도서관" 버튼입니다.

## 쓰는 법

- 제목을 드래그하고 우클릭 → **📚 동네 도서관에서 "…" 찾기**
- 또는 제목을 드래그하고 툴바의 확장 아이콘을 누릅니다. 선택이 없으면 사이트만 엽니다.

새 탭에서 `https://dongne.onrender.com/?title=<제목>&ref=ext` 가 열립니다. 도서관은 넣지 않으므로 사이트가
새 탭에서 `https://dongne.afrontend.dev/?title=<제목>&ref=ext` 가 열립니다. 도서관은 넣지 않으므로 사이트가
내 도서관(그 사이트에서 최근에 검색한 도서관 최대 5곳)에서 찾고, 내 도서관이 없으면 제목만 채워 둡니다.
GA 에서는 `entry_ref=ext` 로 구분됩니다.

Expand Down
4 changes: 2 additions & 2 deletions extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"manifest_version": 3,
"name": "동네 도서관에서 찾기",
"short_name": "동네 도서관",
"version": "0.1.0",
"version": "0.1.1",
"description": "웹에서 본 책 제목을 드래그해 내 동네 도서관에서 빌릴 수 있는지 바로 찾습니다.",
"homepage_url": "https://dongne.onrender.com/",
"homepage_url": "https://dongne.afrontend.dev/",
"permissions": ["contextMenus", "activeTab", "scripting"],
"background": {
"service_worker": "background.js",
Expand Down
2 changes: 1 addition & 1 deletion extension/searchUrl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 확장이 여는 검색 주소. 북마클릿(src/utils/bookmarklet.ts)과 같은 규칙이다.
export const SITE_ORIGIN = "https://dongne.onrender.com";
export const SITE_ORIGIN = "https://dongne.afrontend.dev";

/** 선택한 텍스트를 제목으로 다듬는다. 줄바꿈·연속 공백은 한 칸, 최대 100자 */
export const normalizeTitle = (text) =>
Expand Down
2 changes: 1 addition & 1 deletion extension/searchUrl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("확장 검색 주소", () => {
it("선택한 제목과 ref=ext 로 사이트를 연다", () => {
const url = new URL(buildSearchUrl("채식주의자"));

expect(url.origin).toBe("https://dongne.onrender.com");
expect(url.origin).toBe("https://dongne.afrontend.dev");
expect(url.searchParams.get("title")).toBe("채식주의자");
expect(url.searchParams.get("ref")).toBe("ext");
expect(url.searchParams.has("library")).toBe(false);
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
property="og:description"
content="여러 지역 도서관의 책 대출 가능 여부를 실시간으로 확인하는 도서관 책 찾기 서비스"
/>
<meta property="og:url" content="https://dongne.onrender.com" />
<meta property="og:url" content="https://dongne.afrontend.dev" />
<meta
property="og:image"
content="https://dongne.onrender.com/dlserver.png"
content="https://dongne.afrontend.dev/dlserver.png"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="도서관 책 찾기" />
Expand All @@ -69,7 +69,7 @@
/>
<meta
name="twitter:image"
content="https://dongne.onrender.com/dlserver.png"
content="https://dongne.afrontend.dev/dlserver.png"
/>
</head>
<body class="bg-gray-50">
Expand Down
2 changes: 1 addition & 1 deletion mcp-server-SSE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function setupServerHandlers(server: Server): void {
{
name: "list_libraries",
description:
"Get all searchable Korean libraries, one line per module as \"module: library, library, ...\". Use the module name with search_books when a library name appears in several modules. You can also find the book at https://dongne.onrender.com.",
"Get all searchable Korean libraries, one line per module as \"module: library, library, ...\". Use the module name with search_books when a library name appears in several modules. You can also find the book at https://dongne.afrontend.dev.",
inputSchema: {
type: "object" as const,
properties: {},
Expand Down
2 changes: 1 addition & 1 deletion src/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare global {
}
}

// dongne.onrender.com 웹 스트림의 측정 ID. VITE_GA_ID 가 없는 빌드도 이 ID 로 보낸다.
// 동네 도서관(dongne.afrontend.dev, 옛 주소 dongne.onrender.com) 웹 스트림의 측정 ID. VITE_GA_ID 가 없는 빌드도 이 ID 로 보낸다.
const DEFAULT_GA_ID = "G-9WDTNJDBR7";
const GA_ID = import.meta.env.VITE_GA_ID || DEFAULT_GA_ID;
const GA_SCRIPT_ID = "google-analytics-gtag";
Expand Down
6 changes: 3 additions & 3 deletions src/utils/bookmarklet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ describe("buildBookmarklet", () => {
const open = vi.spyOn(window, "open").mockReturnValue(null);
vi.spyOn(window, "getSelection").mockReturnValue({ toString: () => " 채식주의자 " } as Selection);

run(buildBookmarklet("https://dongne.onrender.com"));
run(buildBookmarklet("https://dongne.afrontend.dev"));

const url = new URL(open.mock.calls[0][0] as string);
expect(url.origin).toBe("https://dongne.onrender.com");
expect(url.origin).toBe("https://dongne.afrontend.dev");
expect(url.searchParams.get("title")).toBe("채식주의자");
expect(url.searchParams.get("library")).toBeNull();
expect(url.searchParams.get("ref")).toBe("bm");
Expand All @@ -29,7 +29,7 @@ describe("buildBookmarklet", () => {
vi.spyOn(window, "getSelection").mockReturnValue({ toString: () => "" } as Selection);
const ask = vi.spyOn(window, "prompt").mockReturnValue(null);

run(buildBookmarklet("https://dongne.onrender.com"));
run(buildBookmarklet("https://dongne.afrontend.dev"));

expect(ask).toHaveBeenCalled();
expect(open).not.toHaveBeenCalled();
Expand Down
Loading