
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@fiberplane/hono_fptest
Advanced tools
Hono middleware to forward data to a local instance of @fiberplane/studio
This is a client library that will send telemetry data to a local FPX server upon every incoming request and outgoing response.
Note that it also monkey-patches console.* functions to send events to a local FPX server,
so any time you use a console.log, console.error, etc., in your app, it will send that data to FPX.
Create Hono project
# Create a hono project, using cloudflare-workers runtime
npm create hono@latest my-hono-project
# > cloudflare-workers
Install middleware
npm i @fiberplane/hono
Add middleware to your project
import { Hono } from "hono";
import { createHonoMiddleware } from "@fiberplane/hono";
const app = new Hono();
app.use(createHonoMiddleware(app))
app.get("/", (c) => {
return c.text("Hello Hono!");
});
export default app;
Launch the FPX Studio UI
npx @fiberplane/studio
Visit http://localhost:8788 to see your logs come in as you test your app!
This section takes you through:
Create a new Hono project with the following command. When prompted, choose cloudflare-workers as the template.
npm create hono@latest my-hono-project
# > cloudflare-workers
npm i @fiberplane/hono
Add the @fiberplane/hono import, and then add middleware definitions AT THE TOP OF YOUR APP, ideally in your src/index.ts
If you only just started your project, you can copy paste the entire contents below into your src/index.ts:
import { Hono } from "hono";
import { createHonoMiddleware } from "@fiberplane/hono";
const app = new Hono();
const fpxConfig = {
libraryDebugMode: false, // By default, do not print noisy debug logs
monitor: {
// This example would turn off auto-logging of fetch requests to FPX
fetch: false,
// This example keeps the default behavior of logging all requests to FPX
requests: true,
},
}
app.use(createHonoMiddleware(app, fpxConfig))
app.get("/", (c) => {
return c.text("Hello Hono!");
});
export default app;
You only need one command:
npx @fiberplane/studio
When you first run npx @fiberplane/studio, you'll be taken through a few initalization steps.
Visit the link to studio that's printed in your UI, and that's it! You should see your logs in the FPX UI.
Your configuration will be saved for the future.
If you ever want to change your configuration, you can do so by running npx @fiberplane/studio again, with the appropriate environment variables set:
# Launch the FPX Studio UI on a different port
FPX_PORT=8789 npx @fiberplane/studio
# Point the FPX Studio UI to your service, in order to autodetect its routes
FPX_SERVICE_TARGET=http://localhost:1234 npx @fiberplane/studio
FPX_ENDPOINT environment variableThe FPX_ENDPOINT environment variable controls where the FPX client library sends telemetry data.
If it is not defined, the middleware will do nothing. This means you can safely deploy your Hono app to any cloud environment, and by default, it will not send telemetry data.
The cli should help you initialize your project correctly, but if you want to connect your api to FPX Studio manually, you can add or modify this variable with, e.g., FPX_ENDPOINT=http://localhost:8788/v0/logs in your environment variable file.
echo -e '\nFPX_ENDPOINT=http://localhost:8788/v0/logs\n' >> .dev.vars
See DEVELOPMENT.md for instructions on how to develop this library.
FAQs
Hono middleware to forward data to a local instance of @fiberplane/studio
We found that @fiberplane/hono_fptest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.