Built a block? Share it with the world
Once you've built a block, you can add it to the Block Hub, so that:
To publish a block on the hub, the initial process is as follows:
blockprotocol
repository@
symbol (e.g. @myusername
)The JSON metadata file should look like this:
{
// REQUIRED - path to the repository with your block's source code
repository: "https://github.com/hashintel/dev.git",
// REQUIRED - name of the branch to build your block from
branch: "main",
// REQUIRED - name of the folder your built blocks will appear in after running `yarn build`
distDir: "dist",
// OPTIONAL - modify yarn commands
workspace: "@hashintel/block-embed",
}
We assume that running yarn install && yarn build
will create your block's distribution in the specified distDir
,
unless workspace
is provided, in which case we will modify both yarn commands with the provided workspace.