Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qualified/embed

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qualified/embed

With Embed, you can now build advanced, developer-friendly coding products for education, recruiting, upskilling, and more. Our SDK makes it simple to embed code challenges and assessments into your existing products.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Qualified Embed SDK

With Qualified Embed, you can now build advanced, developer-friendly coding products for education, recruiting, upskilling, and more. Our SDK makes it simple to embed code challenges and assessments into your existing products.

Documentation

Embed SDK docs

Examples

Usage

Node

Install the dependency into your Node web project:

npm i @qualified/embed-sdk

Import the package and create an instance of the Embed manager:

import { QualifiedEmbedManager } from "@qualified/embed-sdk";

const manager = QualifiedEmbedManager.init({
  options: {
    embedClientKey: "Your Embed key",
  },
});
const editor = manager.createEditor({
  challengeId: "An embedded challenge ID",
  node: document.querySelector("#qualified-embed-container"),
});

Optionally integrate this into your front end framework of choice (React, Vue, Angular, etc), then bundle the code using your favorite web bundler (Vite, Webpack, Parcel, etc).

See our Embed with React demo for a complete example.

Browser

You can use Qualified Embed in a script tag as follows:

<script src=":replace with unpkg or jsdelivr url:"></script>

See our quick start and demo page for examples.

Development

git config blame.ignoreRevsFile .git-blame-ignore-revs
npm i # install dependencies
npm start # run a development server
npm run build # bundle the manager to /dist
npm run jsdoc # bundle the docs to /docs
npm run lint # run eslint
npm run format # run prettier

If you're working on Embed internals in the Qualified codebase, update baseURL in the Embed options in public/index.html to http://localhost:3001 (or the port the Qualified UI Docker container is running on). You'll also need to ensure your embedClientKey and challengeId match a valid team and local Embed-enabled challenge.

Deploying the Package

The package is hosted on npm.

npm publish

Deploying the Docs

The docs are hosted on GitHub pages.

git checkout docs
npm run jsdoc
git add -f docs
git commit -m "Deploy docs"
git push

Contributing

Issues and pull requests are welcome. Before opening a PR, please create an issue and target the issue for closure with the PR.

Before opening a PR, add automated tests if appropriate and run and pass all checks:

npm run format
npm run lint
npm run test

Keywords

FAQs

Package last updated on 06 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc