
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
sveltekit-remote-debug
Advanced tools
This component allows you to debug your remote functions in the style of the sveltekit-superforms library SuperDebug
Making Remote Functions a breeze!
This component allows you to debug your remote functions in the style of the sveltekit-superforms library SuperDebug.
With the remote functions from SvelteKit, the superforms library isn't always necessary - but still needs a visual debugger when developing.
Remote Functions is currently experimental and subject to change. At this stage, it is not possible to collect all fields before they are interacted with. As a result, fields cannot be rendered in advance. This means the debugger will only display fields after they have been touched or once the form has been submitted.
Install the package
npm i -D sveltekit-remote-debug
Then you simply import the debugger in your project together with your remote function
import { RemoteDebug } from 'sveltekit-remote-debug';
import { myRemoteFormFunction } from '$lib/remote-functions/my-remote-form-function.ts';
The RemoteDebug takes the form as a property to collect it's data.
Be sure to also add
oninputto your form, to debug in real time!
<RemoteDebug form="{myRemoteFormFunction}" />
<form {...myRemoteFormFunction} oninput="{()" ="">myRemoteFormFunction.validate()}> ...</form>
Having this in your code, will show a box with your fields and it's values, such as
{
"firstname": "foo",
"lastname": "bar"
}
showIssues?: boolean;
windowed?: boolean;
theme?: BundledTheme;
space?: number;
Enabling this property will also show you a list of all the issues that is generated from your validation schema. This also separates the input data in it's own data property.
{
"data": {
"firstname": undefined,
"lastname": "bar"
},
"issues": {
"firstname": ["Firstname is required"],
"lastname": undefined
}
}
Enabling this property will instead make the debugger an absolute div which you can move around. Here you can also minimize it and copy the content (json) from the box.
Because of the simplicity with shiki that this debugger is using for highlighting, you can also change the theme of your output.
This option takes a number that defines the tab-spacing for each row of your output.
If you wish for something, please drop an issue and I will look into it ⭐
FAQs
This component allows you to debug your remote functions in the style of the sveltekit-superforms library SuperDebug
We found that sveltekit-remote-debug 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.