
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
CLI tool to clean and minify HTML by removing scripts, styles, and attributes — optimized for LLM input.
Lighten your HTML input. Keep the meaning, ditch the weight.
htmless is a minimalist CLI tool that strips HTML down to the bone — removing unnecessary scripts, styles, attributes, and utility classes.
The result is a clean, minified HTML output, ideal for feeding into LLMs where every token counts.
I needed to extract semantically valuable content from HTML pages and send it to AI models. But raw HTML is full of bloat — especially utility classes from frameworks like Tailwind, inline styles, scripts, and other things that eat tokens without adding real value.
The goals were simple:
href attributes on <a> tags – they carry semantic meaning and useful contextpnpm add -g htmless
# or
npm install -g htmless
cat input.html | htmless
Use it in a bash pipeline, before LLM processing, or to clean up WYSIWYG HTML exports.
<div class="bg-white p-4 text-sm text-gray-700">
<h1 class="text-3xl font-bold">Welcome</h1>
<p>This is a <strong>test</strong>.</p>
<script>alert('Hi')</script>
<style>body { background: red; }</style>
</div>
<div><h1>Welcome</h1><p>This is a <strong>test</strong>.</p></div>
<script> and <style> blockshref on <a> is preserved)htmlparser2 — fast and robustcommanderLess is more. Tokens are expensive.
htmlesshelps LLMs process content, not the wrapper.
Made with ❤️ by BroJor
ISC License © 2025 BroJor
FAQs
CLI tool to clean and minify HTML by removing scripts, styles, and attributes — optimized for LLM input.
The npm package htmless receives a total of 2 weekly downloads. As such, htmless popularity was classified as not popular.
We found that htmless 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.