
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@hexput/blockly
Advanced tools
This project provides a Blockly integration for the Hexput programming language. It allows visual programming through custom blocks that generate Hexput code, making it easier to create Hexput programs without writing code directly.
To install the module, use npm:
npm install hexput-blockly
To use Hexput Blockly in your project, import it and initialize the Blockly environment:
import Blockly from 'blockly';
import { initBlockly } from 'hexput-blockly';
// Initialize Blockly with your container ID and optional toolbox
initBlockly(Blockly, 'blocklyDiv', yourToolboxDefinition);
After creating blocks in the Blockly workspace, you can generate Hexput code:
import Blockly from 'blockly';
// Get the workspace
const workspace = Blockly.getMainWorkspace();
// Generate Hexput code
const code = Blockly.Hexput.workspaceToCode(workspace);
console.log(code);
Hexput Blockly provides many custom blocks for the Hexput language:
vl varName = value)Here's an example of using blocks to define a variable and perform operations:
// In Blockly this would be visual blocks generating:
vl myNumber = 42;
vl myString = "Hello, world!";
vl myResult = myNumber + 10;
if myResult > 50 {
vl message = myString + " The result is greater than 50!";
}
loop item in [1, 2, 3] {
vl doubled = item * 2;
}
To define new blocks for Hexput Blockly, you can extend the module with your own block definitions:
import Blockly from 'blockly';
import { initBlockly, generateHexputBlockly } from 'hexput-blockly';
// Define your custom block
Blockly.Blocks['my_custom_block'] = {
init: function() {
// Block definition logic
}
};
// Define the generator for your custom block
const hexputGenerator = generateHexputBlockly(Blockly);
hexputGenerator.forBlock['my_custom_block'] = function(block) {
// Code generation logic
return 'my custom hexput code';
};
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
This project is licensed under the MIT License. See the LICENSE file for more details.
FAQs
A Blockly module for the Hexput programming language.
We found that @hexput/blockly 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.