@frames.js/debugger

0.3.1 • Public • Published

@frames.js/debugger

Debug your Frames built using frames.js with ease.

Usage

Using npx or alternatives

$ npx @frames.js/debugger@latest
$ pnpm dlx @frames.js/debugger@latest

Installing globally

# usage with npm
$ npm install -g @frames.js/debugger
$ frames

# usage with yarn
$ yarn global add @frames.js/debugger
$ frames

# usage with pnpm
$ pnpm add -g @frames.js/debugger
$ frames

Set your Frames app to use the debugger

Set the hubHttpUrl to http://localhost:3010/hub (this is default used by debugger, you can change it by running debugger with --port flag).

import { getFrameMessage } from "frames.js/next/server";

const frameMessage = await getFrameMessage(previousFrame.postBody, {
  hubHttpUrl: "http://localhost:3010/hub",
});

/@frames.js/debugger/

    Package Sidebar

    Install

    npm i @frames.js/debugger

    Weekly Downloads

    930

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    36 MB

    Total Files

    315

    Last publish

    Collaborators

    • stephancill
    • davidfurlong