Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Ads JavaScript SDK
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗This repository is a monorepo powered by pnpm and contains two public npm packages:
| Package | Description |
|---|---|
@vtex/ads-core | Framework-agnostic SDK to fetch sponsored products from the VTEX Ad Network. |
@vtex/ads-react | Thin React layer (Provider + hook) on top of ads-core for an ergonomic DX. |
# pick your favourite package manager
pnpm add @vtex/ads-core # core only
pnpm add @vtex/ads-react # React hooks
Both packages are shipped as ES Modules and include TypeScript declarations out of the box.
import { getAds } from "@vtex/ads-core";
const ads = await getAds({
account: "fashion",
region: "aws-us-east-1",
// see types for all available parameters
});
console.log(ads.byPlacement.homepage);
import { AdsProvider, useAds } from "@vtex/ads-react";
export function App() {
return (
<AdsProvider account="fashion" region="aws-us-east-1">
<HomePage />
</AdsProvider>
);
}
function HomePage() {
const { ads, isLoading } = useAds({ placement: "homepage" });
if (isLoading) return <p>Loading…</p>;
return <pre>{JSON.stringify(ads, null, 2)}</pre>;
}
Comprehensive guides & API reference at https://vtex.github.io/ads-js/docs.
Spin up the playground locally with pnpm playground:dev or try it online
at https://vtex.github.io/ads-js/.
Want to run the project locally, contribute a change or publish a release? See CONTRIBUTING.md.