Catalog npm
Back to packageRELEASE DETAILS

10.3.101

npm

3w3m-blockly

Blockly is a library for building visual programming editors.

blockly
Published31 Jan 2024
Direct dependencies39
Transitive dependenciesNot calculated

README

Current package documentation

Blockly

Google's Blockly is a web-based, visual programming editor. Users can drag blocks together to build programs. All code is free and open source.

The source for this module is in the Blockly repo.

Example Usage

import * as Blockly from 'blockly/core';
Blockly.inject('blocklyDiv', {
    ...
})

Samples

For samples on how to integrate Blockly into your project, view the list of samples at blockly-samples.

Installation

You can install this package either via npm or unpkg.

unpkg

<script src="https://unpkg.com/blockly/blockly.min.js"></script>

When importing from unpkg, you can access imports from the global namespace.

// Access Blockly.
Blockly.thing;
// Access the default blocks.
Blockly.Blocks['block_type'];
// Access the javascript generator.
javascript.javascriptGenerator;

npm

npm install blockly

Imports

Note: Using import of our package targets requires you to use a bundler (like webpack), since Blockly is packaged as a UMD, rather than an ESM.

// Import Blockly core.
import * as Blockly from 'blockly/core';
// Import the default blocks.
import * as libraryBlocks from 'blockly/blocks';
// Import a generator.
import {javascriptGenerator} from 'blockly/javascript';
// Import a message file.
import * as En from 'blockly/msg/en';

Requires

// Require Blockly core.
const Blockly = require('blockly/core');
// Require the default blocks.
const libraryBlocks = require('blockly/blocks');
// Require a generator.
const {javascriptGenerator} = require('blockly/javascript');
// Require a message file.
const En = require('blockly/msg/en');

Applying messages

Once you have the message files, you also need to apply them.

Blockly.setLocal(En);

For a full list of supported Blockly locales, see: https://github.com/google/blockly/tree/master/msg/js

Docs

For more information about how to use Blockly, check out our devsite.

License

Apache 2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 39

Native requirements
39 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
22.1.0runtime
@blockly/block-test
Environment
{
  "local_name": "@blockly/block-test",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
@blockly/dev-tools
Environment
{
  "local_name": "@blockly/dev-tools",
  "alias": false,
  "peer_metadata": null
}
^7.0.2development
@blockly/theme-modern
Environment
{
  "local_name": "@blockly/theme-modern",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
@hyperjump/json-schema
Environment
{
  "local_name": "@hyperjump/json-schema",
  "alias": false,
  "peer_metadata": null
}
^1.5.0development
@microsoft/api-documenter
Environment
{
  "local_name": "@microsoft/api-documenter",
  "alias": false,
  "peer_metadata": null
}
^7.22.4development
@microsoft/api-extractor
Environment
{
  "local_name": "@microsoft/api-extractor",
  "alias": false,
  "peer_metadata": null
}
^7.29.5development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^6.1.0development
async-done
Environment
{
  "local_name": "async-done",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.2.0development
concurrently
Environment
{
  "local_name": "concurrently",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.4.1development
eslint-config-google
Environment
{
  "local_name": "eslint-config-google",
  "alias": false,
  "peer_metadata": null
}
^0.14.0development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
eslint-plugin-jsdoc
Environment
{
  "local_name": "eslint-plugin-jsdoc",
  "alias": false,
  "peer_metadata": null
}
^48.0.2development
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
^10.3.4development
google-closure-compiler
Environment
{
  "local_name": "google-closure-compiler",
  "alias": false,
  "peer_metadata": null
}
^20230802.0.0development
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^4.0.2development
gulp-concat
Environment
{
  "local_name": "gulp-concat",
  "alias": false,
  "peer_metadata": null
}
^2.6.1development
gulp-gzip
Environment
{
  "local_name": "gulp-gzip",
  "alias": false,
  "peer_metadata": null
}
^1.4.2development
gulp-header
Environment
{
  "local_name": "gulp-header",
  "alias": false,
  "peer_metadata": null
}
^2.0.9development
gulp-insert
Environment
{
  "local_name": "gulp-insert",
  "alias": false,
  "peer_metadata": null
}
^0.5.0development
gulp-rename
Environment
{
  "local_name": "gulp-rename",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
gulp-replace
Environment
{
  "local_name": "gulp-replace",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development
gulp-series
Environment
{
  "local_name": "gulp-series",
  "alias": false,
  "peer_metadata": null
}
^1.0.2development
gulp-shell
Environment
{
  "local_name": "gulp-shell",
  "alias": false,
  "peer_metadata": null
}
^0.8.0development
gulp-sourcemaps
Environment
{
  "local_name": "gulp-sourcemaps",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
gulp-umd
Environment
{
  "local_name": "gulp-umd",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
http-server
Environment
{
  "local_name": "http-server",
  "alias": false,
  "peer_metadata": null
}
^14.0.0development
json5
Environment
{
  "local_name": "json5",
  "alias": false,
  "peer_metadata": null
}
^2.2.0development
markdown-tables-to-json
Environment
{
  "local_name": "markdown-tables-to-json",
  "alias": false,
  "peer_metadata": null
}
^0.1.7development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
patch-package
Environment
{
  "local_name": "patch-package",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
3.1.1development
readline-sync
Environment
{
  "local_name": "readline-sync",
  "alias": false,
  "peer_metadata": null
}
^1.4.10development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.0.2development
webdriverio
Environment
{
  "local_name": "webdriverio",
  "alias": false,
  "peer_metadata": null
}
^8.16.7development
yargs
Environment
{
  "local_name": "yargs",
  "alias": false,
  "peer_metadata": null
}
^17.2.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-St2xAb17ts02BEnGRyDJx6MQ2sOKAGXvjZZn6hWiIvpGVdNXpe0AqNfjrLRqNSAhav3i06KWr67mWm3bbzuU/Q==",
  "shasum": "06964604c2b0869d1ae63a50ddf826e0b0ebea2b",
  "tarball": "https://registry.npmjs.org/3w3m-blockly/-/3w3m-blockly-10.3.101.tgz",
  "fileCount": 597,
  "unpackedSize": 12405926,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIE7GP9fYLH+qftxPu50DKmC8FpCSnQogkr5cnYyGzgiCAiAcvApg5MtzJl2I2NzVcK9q/0Bh4M5Xrbt72QxhLv5udg=="
    }
  ]
}

Repository

PENDING
str11ngfello/blockly

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:54 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c79ee8b13720c5069a3f90b5e34d7bb584afed4c868fff39eafcb0ef2d14a41b

Other collected versions

10.3.1042 Feb10.3.1032 Feb10.3.10231 Jan10.3.10031 Jan10.3.131 JanView all collected versions →