
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.
@capillarytech/cap-ui-dev-tools
Advanced tools
Development tools for Capillary UI projects including webpack hot-reload plugin and CapVision session recording
Development tools for Capillary UI projects - Webpack hot-reload plugin + CapVision session recording
A "zero-config" webpack plugin that automatically aliases and hot-reloads local libraries.
Automatic session recording for WebdriverIO tests with HTML report integration.
npm install --save-dev @capillarytech/cap-ui-dev-tools
When developing an application that consumes a local library, you typically have to manage two separate configurations:
resolve.alias entry in your webpack config to point the library's package name to your local source code.Managing this in the main webpack config can be messy and error-prone.
This plugin provides a single, clean interface to handle both aliasing and watching.
Based on initial testing, this can reduce development iteration time by over 90% (e.g., from 3 minutes to under 10 seconds).

// webpack.config.js
const LibraryWatcherPlugin = require('@capillarytech/cap-ui-dev-tools');
// or
const LibraryWatcherPlugin = require('@capillarytech/cap-ui-dev-tools/webpack');
const path = require('path');
module.exports = {
mode: 'development',
// ... your other webpack config
// NO need for a separate resolve.alias block for local development!
// The plugin handles it for you.
resolve: {
// ... any other aliases can stay here
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new LibraryWatcherPlugin({
// An array of libraries to alias and watch.
libs: [
{
// The package name of the library (from its package.json).
name: 'cap-creatives-ui',
// The absolute path to the library's source code.
path: path.resolve(__dirname, '../cap-creatives-ui/src')
},
{
name: 'another-local-lib',
path: path.resolve(__dirname, '../another-local-lib/src')
}
],
// Enable verbose logging to the console.
verbose: true,
// Optional: Options passed directly to chokidar.
watchOptions: {
// ..
}
})
]
};
libs array.resolve.alias entry for each library.chokidar to watch the provided path for each library.contextDependencies to make webpack aware of them.// wdio.conf.js
const { createWDIOCapVisionHooks } = require('@capillarytech/cap-ui-dev-tools/capvision');
const capVisionHooks = createWDIOCapVisionHooks({
recordingsOutputDir: './reports/recordings',
enabledClusters: ['staging', 'production']
});
exports.config = {
onPrepare: capVisionHooks.onPrepare,
beforeTest: (test, context) => capVisionHooks.beforeTest(test, context, browser),
afterTest: capVisionHooks.afterTest,
onComplete: capVisionHooks.onComplete
};
See CAPVISION_USAGE.md for complete CapVision documentation including:
// Webpack Plugin (default export)
const LibraryWatcherPlugin = require('@capillarytech/cap-ui-dev-tools');
// or explicitly
const LibraryWatcherPlugin = require('@capillarytech/cap-ui-dev-tools/webpack');
// CapVision Recorder
const { createWDIOCapVisionHooks } = require('@capillarytech/cap-ui-dev-tools/capvision');
// or from main export
const { createWDIOCapVisionHooks } = require('@capillarytech/cap-ui-dev-tools');
// Full CapVision module
const capVision = require('@capillarytech/cap-ui-dev-tools').capVisionRecorder;
Use LibraryWatcherPlugin to:
Use CapVision Recorder to:
Use both for:
path in the libs configuration is an absolute path pointing to the source code of your library. Use path.resolve(__dirname, '..', 'your-lib').name property matches the package name your host application is trying to import.verbose mode: Set verbose: true to see detailed logs.See CAPVISION_USAGE.md for common issues and solutions.
saveAllRecordings config optionsaveAllRecordings: trueVISUAL_REGRESSION environment variableFor maintainers:
Update Version Number: Update the version field in package.json according to SemVer.
Log in to NPM:
npm login
Perform a Dry Run:
npm publish --dry-run
Publish:
npm publish
Contributions welcome! Please:
ISC License
Made with ❤️ by Capillary Technologies
Version: 2.1.0 Includes: Webpack Hot-Reload Plugin + CapVision Session Recording + Visual Regression Mode
FAQs
Development tools for Capillary UI projects including webpack hot-reload plugin and CapVision session recording
The npm package @capillarytech/cap-ui-dev-tools receives a total of 89 weekly downloads. As such, @capillarytech/cap-ui-dev-tools popularity was classified as not popular.
We found that @capillarytech/cap-ui-dev-tools 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.