Loading
Loading
Loading
Use this flow for Siftor, future Entroparc apps, and later public customer installs. The project page gives the real project key; this page keeps the repeatable contract clear.
Create a project boundary and bind the first host origin.
Add the npm widget and mount it once in the host app shell.
Send one live feedback item from the installed host page.
Save the detected browser origin on the active project key.
Confirm the latest signal is key-bound and origin-verified.
Copyable baseline
npm install @entroparc/entrofeed-widget@latest # or pnpm add @entroparc/entrofeed-widget@latest # Current Entrofeed widget version: 0.1.3
NEXT_PUBLIC_ENTROFEED_URL=https://www.entrofeed.com NEXT_PUBLIC_ENTROFEED_PROJECT_KEY=pk_live_your_project_key
"use client";
import { usePathname } from "next/navigation";
import { EntrofeedWidget } from "@entroparc/entrofeed-widget";
type ProductFeedbackProps = {
user?: {
id?: string;
email?: string | null;
username?: string | null;
};
};
export function ProductFeedback({ user }: ProductFeedbackProps) {
const pathname = usePathname();
return (
<EntrofeedWidget
apiBaseUrl={process.env.NEXT_PUBLIC_ENTROFEED_URL!}
projectKey={process.env.NEXT_PUBLIC_ENTROFEED_PROJECT_KEY!}
user={{
id: user?.id,
label: user?.email ?? user?.username ?? undefined,
}}
context={{ path: pathname, route: pathname }}
/>
);
}<script async src="https://www.entrofeed.com/widget.js" data-project-key="pk_live_your_project_key" ></script>
Install Entrofeed feedback into this React/Next.js app. Use the repo's package manager to add @entroparc/entrofeed-widget@latest. Set these public env vars: NEXT_PUBLIC_ENTROFEED_URL=https://www.entrofeed.com NEXT_PUBLIC_ENTROFEED_PROJECT_KEY=pk_live_your_project_key Mount EntrofeedWidget once in the authenticated app layout or product shell. Pass the current pathname as both path and route, and pass the current user id/email when available. Do not put server secrets in NEXT_PUBLIC vars. Use the Entrofeed URL exactly as shown; browser CORS preflight requests cannot follow domain redirects. Make sure the host origin is allowed in Entrofeed: https://your-app.example. If this is not a React app, use the hosted script tag from the Entrofeed install page instead of adding the npm package. Run lint/build after the change, then submit one live feedback smoke test and confirm it appears in Entrofeed.
1. Allowed origin: https://your-app.example 2. Start or deploy the host app with the two NEXT_PUBLIC_ENTROFEED_* vars. 3. Open the page where EntrofeedWidget is mounted. 4. Submit a short test message from the launcher. 5. Confirm the item appears in Entrofeed /inbox with the right project, path, and user label. 6. If the browser console shows a CORS preflight redirect, confirm NEXT_PUBLIC_ENTROFEED_URL is the canonical Entrofeed URL shown above.
Open a project to copy its real key, origins, smoke test, and agent prompt.
Check the capture surface and package contract before embedding it in another app.
Keep the app, package, and release process connected to the public repository.