
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
intermix-menu-item
Advanced tools
When dealing with multiple frontend technologies, we will run into the issue of not having access to React components (like NavLink) , that will be required for the layout items like the menu or dashboard. This plugin will abstract out access to these React components and make them available to other non-React pilet apps.
The following functions are brought to the Pilet API.
createLinkApiThe provided library only brings API extensions for pilets to a Piral instance.
For the setup of the library itself you'll need to import createLinkApi from the piral-navlink package.
import { createLinkApi } from "piral-navlink";
The integration looks like:
const instance = createInstance({
// important part
extendApi: [createLinkApi()]
// ...
});
createLinkCreate a menu link component based on NavLink
createLink(to: string, name: string): ComponentType;
piral.registerMenu(() => app.createLink("/svlete-app", "Svelte App"));
MIT
FAQs
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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.