
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
sd-builder
Advanced tools
Opinionated builder for react web projects.
sd-builder dev sets up dev environment with auto-recompilingsd-builder build builds the projectsd-builder config writes the app configuration to app-config.jsapp/main.html file, which is compiled
into build/index.html. For now the compilation consists in a simple a
copy/paste.The builder expects there to be an app/main.jsx file, which is used as
webpack's entry point. The generated bundle is written to
build/_assets/js/app.js.
Files are compiled by babel. It's up to the user to specify which plugins to
use by installing and listing them in a .babelrc config file.
npm modules listed in deps.json's js array are separated from the main
bundle and compiled into build/_assets/js/vendor.js.
During webpack's compilation NODE_PATH includes the app directory.
It's possible to require / import .js, .jsx and .json files.
Source maps are always generated.
app/assets will be recursively copied into
build/_assets.deps.json's css array are bundled (concat) into
build/_assets/css/vendor.css.deps.json's fonts array are copied (concat) into
build/_assets/fonts.VERSION.txt file (written to build/VERSION.txt)
with the following format:
[package.json version] - [git commit sha][package.json version]CHANGELOG.md file is present, it's copied to build/CHANGELOG.mdRunning sd-builder config a build/app-config.js file is generated, exporting
one global variable, window.APP_CONFIG, which is a map of key-value pairs
gathered from:
.env file when NODE_ENV=development__APP_CONFIG__ file when
NODE_ENV=productionYou should add app-config.js script in your main.html file.
<script src="app-config.js"></script>
At build time, the following environment variables can be used to customize the build:
NODE_ENV: defaults to developmentEXEC_ENV: defaults to browserThe variables are:
main.htmlDefinePlugin when building js filesExample main.html build customization:
<!-- @if EXEC_ENV=='cordova' -->
<!--
This ends up in the compiled index.html only when, in the build
environment, process.env.EXEC_ENV === "cordova"
-->
<script src="cordova.js"></script>
<!-- @endif -->
Example js build customization:
console.log(process.env.EXEC_ENV);
/*
* When in the build environment process.env.EXEC_ENV === "cordova", the above
* line of code will be compiled into the line `console.log("cordova");`
*/
When NODE_ENV=production JS and CSS files are minified.
FAQs
Opinionated builder for react web projects
We found that sd-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.