
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@karrotmarket/lynx-icon-rsbuild-plugin
Advanced tools
All-in-one Rsbuild plugin for Lynx icons - converts SVG to WebP base64
All-in-one Rsbuild plugin for Lynx icons - no additional loader required!
Automatically converts SVG icons from @karrotmarket/assets-monochrome and @karrotmarket/assets-multicolor to WebP base64 format for optimal performance in Lynx applications.
yarn add -D @karrotmarket/lynx-icon-rsbuild-plugin
Simply add the plugin to your Rsbuild config:
// lynx.config.ts
import { defineConfig } from '@lynx-js/rspeedy'
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
import { pluginLynxIcon } from '@karrotmarket/lynx-icon-rsbuild-plugin'
export default defineConfig({
plugins: [
pluginReactLynx(),
pluginLynxIcon(), // 👈 Add this!
],
});
That's it! No additional rspack configuration needed.
import { pluginLynxIcon } from '@karrotmarket/lynx-icon-rsbuild-plugin';
export default defineConfig({
plugins: [
pluginLynxIcon({
maxSize: 72, // Maximum icon size (default: 72)
quality: 90, // WebP quality 0-100 (default: 90)
}),
],
});
import { IconAppleFill } from '@karrotmarket/lynx-monochrome-icon';
import { IconApple } from '@karrotmarket/lynx-multicolor-icon';
function MyComponent() {
return (
<view>
{/* Monochrome icon with color */}
<IconAppleFill size={24} color="#FF6B00" />
{/* Multicolor icon (uses original colors) */}
<IconApple size={32} />
</view>
);
}
Before (manual rspack config):
// lynx.config.ts
export default defineConfig({
tools: {
rspack(config) {
// 20+ lines of manual configuration...
config.module.rules = config.module.rules.map((rule) => {
// SVG exclude logic...
});
config.module.rules.unshift({
test: /\.svg$/,
use: { loader: './icon-loader.js' }
});
return config;
},
},
});
After (plugin):
// lynx.config.ts
import { pluginLynxIcon } from '@karrotmarket/lynx-icon-rsbuild-plugin';
export default defineConfig({
plugins: [
pluginLynxIcon(), // Just one line!
],
});
LynxIconPluginOptionsinterface LynxIconPluginOptions {
/**
* Maximum size for icon conversion (default: 72px)
* @default 72
*/
maxSize?: number;
/**
* WebP quality (0-100, default: 90)
* @default 90
*/
quality?: number;
/**
* Include additional paths beyond default @karrotmarket/assets-*
* @default []
*/
includePaths?: RegExp[];
}
@karrotmarket/assets-monochrome/svg/ and @karrotmarket/assets-multicolor/svg/MIT
FAQs
All-in-one Rsbuild plugin for Lynx icons - converts SVG to WebP base64
The npm package @karrotmarket/lynx-icon-rsbuild-plugin receives a total of 0 weekly downloads. As such, @karrotmarket/lynx-icon-rsbuild-plugin popularity was classified as not popular.
We found that @karrotmarket/lynx-icon-rsbuild-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.