
Security News
New Study Identifies 53 Slopsquatting Targets Across 5 Frontier LLMs
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.
@jjades/api-recorder
Advanced tools
> **⚠️ DEPRECATED**: 이 패키지는 더 이상 사용되지 않습니다. 이제부터는 [@jjades/api-recorder](https://www.npmjs.com/package/@jjades/api-recorder)에서 관리됩니다.
⚠️ DEPRECATED: 이 패키지는 더 이상 사용되지 않습니다. 이제부터는 @jjades/api-recorder에서 관리됩니다.
React 애플리케이션에서 다음을 자동으로 수집/시각화하는 개발자 도구입니다.
fetch, XHR)ReadableStream)Socket.IO 송수신 이벤트(선택 설치)npm install -D @dhlab/api-recorder
# 또는
yarn add -D @dhlab/api-recorder
환경
socket.io-client@^4를 프로젝트에 설치하세요.npm i socket.io-client@^4 --save
# 또는
yarn add socket.io-client@^4
개발 환경에서만 Devtools를 마운트하세요.
import { ApiRecorderDevtools } from '@dhlab/api-recorder';
function App() {
return (
<>
{/* ... */}
{process.env.NODE_ENV === 'development' && (
<ApiRecorderDevtools />
)}
</>
);
}
fetch, XMLHttpRequest를 패치하여 HTTP 이벤트를 캡처합니다. 언마운트 시 원복합니다.content-type을 검사하여 텍스트 기반 ReadableStream 여부를 판단하고, 텍스트 청크를 순차 수집합니다. (예: text/stream, application/stream+json)socket.io-client가 설치된 경우에만 자동 패치되어 송수신 이벤트를 기록합니다. 설치되어 있지 않으면 UI에서 가이드가 표시됩니다.ignore?: Array<string | RegExp> | ((url: string) => boolean)
"/api" → ^/api(url) => boolean을 반환해야 하며 true일 때 해당 HTTP 이벤트(요청/응답)가 무시됩니다.예시
<ApiRecorderDevtools
ignore={[
'/health', // 접두 일치. '^/health' 로 취급
/^\/socket\.io\//, // 정규식 매칭
url => url.includes('__vite_ping'), // 사용자 함수
]}
/>
내보내기는 요청 단위로 그룹화되어 출력됩니다. 주요 그룹 유형은 다음과 같습니다.
{
"type": "http-rest",
"requestId": "abc123",
"request": {
"method": "GET",
"url": "/api/users",
"headers": {"accept": "application/json"},
"body": null,
"timestamp": 1730000000000
},
"response": {
"status": 200,
"statusText": "OK",
"headers": {"content-type": "application/json"},
"body": [{"id":1,"name":"Ada"}],
"timestamp": 1730000000123
},
"totalDuration": 123
}
{
"type": "http-stream",
"requestId": "def456",
"request": {
"method": "GET",
"url": "/api/stream",
"headers": {},
"body": null,
"timestamp": 1730000000000
},
"response": {
"status": 200,
"headers": {"content-type": "text/stream"},
"timestamp": 1730000000050
},
"streamEvents": [
{"data": "{\"id\":1}\n{\"id\":2}", "delay": 120, "timestamp": 1730000000170, "phase": "message", "type": "message_delta"}
],
"streamStartedAt": 1730000000050,
"streamEndedAt": 1730000000400
}
{
"type": "socketio",
"requestId": "ghi789",
"connection": {
"url": "wss://example.com/socket.io",
"namespace": "/chat",
"timestamp": 1730000000000
},
"messages": [
{"direction": "clientToServer", "event": "join", "data": ["room-1"], "timestamp": 1730000000100},
{"direction": "serverToClient", "event": "message", "data": [{"text": "hi"}], "timestamp": 1730000000200}
],
"closedAt": 1730000000500
}
메모
data, 이전 이벤트 대비 지연 delay, phaseignore를 활용하거나 서버/클라이언트에서 마스킹하세요.yarn dev # 예제/개발 환경 실행
yarn build # 라이브러리 빌드 (ESM)
yarn lint # 코드/서식 검사
yarn format # 포맷팅
라이브러리 빌드 산출물
dist/api-recorder.es.jsdist/main.d.ts외부 의존성(번들 제외)
react, react-dom, react/jsx-runtime, socket.io-clientundefined일 수 있습니다.application/stream+json 등은 포맷에 따라 일부만 수집될 수 있습니다.socket.io-client@^4가 설치된 경우에만 활성화됩니다(선택 의존성).문의/이슈는 저장소 이슈 트래커를 통해 남겨주세요.
FAQs
React 애플리케이션에서 다음을 자동으로 수집/시각화하는 개발자 도구입니다. - HTTP 요청/응답(`fetch`, `XHR`) - 스트리밍 응답(텍스트 기반 `ReadableStream`) - `Socket.IO` 송수신 이벤트(선택 설치)
The npm package @jjades/api-recorder receives a total of 1 weekly downloads. As such, @jjades/api-recorder popularity was classified as not popular.
We found that @jjades/api-recorder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.

Security News
The White House’s Gold Eagle Initiative aims to coordinate AI-discovered vulnerabilities, validate findings, and accelerate patching across critical software.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.