@blanklogic/refinery-core
v0.2.5
Published
Clean context before AI sees it — shared BlankLogic Refinery engines (local, no upload).
Maintainers
Readme
@blanklogic/refinery-core
Shared local engine for BlankLogic Refinery — de-bloat, secret redaction, and full refine.
This package powers the CLI, MCP server, proxy transforms, and extension backend. It is local-only: no network calls, no API keys, no BlankLogic server dependency.
What's new in 0.2.0
- Release alignment with proxy whitelist/graph and MCP telemetry hardening (no API break).
- 512 KB max input guard on all refine/sanitize entry points.
Saved tokens or caught a secret?
If BlankLogic trimmed noise, redacted secrets, or cut token waste for you, a quick review helps others find it:
- Cursor / Open VSX: Rate BlankLogic Refinery on Open VSX
- VS Code: Leave a review on the Marketplace
- Feedback: blanklogic.io/#bugs
Install
npm install @blanklogic/refinery-coreAPI
import { refineFull, runCodeDebloater, runTokenSanitizer } from '@blanklogic/refinery-core'
const cleaned = refineFull(input)| Function | Behavior |
|----------|----------|
| runCodeDebloater(input) | Remove tracker noise, comments, and boilerplate |
| runTokenSanitizer(input) | Redact obvious secrets; compact text |
| refineFull(input) | De-bloat, then sanitize |
When to use this package
- Building integrations on top of Refinery
- Monorepo workspaces that need the engine without the CLI binary
- Advanced pipelines that call de-bloat and sanitize separately
Most users should start with @blanklogic/refinery (CLI) or the VS Code extension.
Related BlankLogic tools
| Product | Link |
|---------|------|
| CLI | @blanklogic/refinery |
| MCP | @blanklogic/refinery-mcp |
| Proxy | @blanklogic/proxy |
| Homepage | blanklogic.io |
| Refinery web app | blanklogic.io/refinery |
Privacy
Local-only. No Stripe, BlankLogic servers, Ollama, or third-party APIs.
Support
- Homepage: blanklogic.io
- Bug reports: blanklogic.io/#bugs
