
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
block-template-html
Advanced tools
See https://blockprotocol.org/docs/developing-blocks
TL;DR: Run npx create-block-app@latest [your-block-name] --template=html
Other templates are available. See npx create-block-app@latest --help
Change into the folder: cd path/to/your-block-name
Update block-metadata.json
and block-schema.json
to define your block's metadata and the properties it takes.
Write your block starting in app.html
. To test it during development:
edit dev/index.html
to give your block starting properties
run the dev server with yarn dev
(or npm run dev
)
When finished, run yarn build
(or npm run build
), which:
block-metadata.json
to load a block and its schema. This file is documented in full here.Please see the Block Protocol docs for help in creating and updating data from your block.
You can format your code using yarn format
(or npm run format
).
N.B.
Head over to blockprotocol.org to read instructions on publishing your block.
This template assumes there is no bundling process. You will need to reference external dependencies using ES Modules. Tools like esm.sh or unpkg.com can make this much easier.
The Block Protocol does not currently support externals
when using HTML blocks.
The component can be debugged locally by first starting yarn dev
.
Now (using VS Code), go to the Debug tab, select "Launch Chrome" and start the debugger (F5).
You should now be able to set breakpoints and step through the code.
FAQs
Block Protocol block template for an html-based block
The npm package block-template-html receives a total of 5 weekly downloads. As such, block-template-html popularity was classified as not popular.
We found that block-template-html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.