Skip to content

Installation

The TaskOn Embed SDK supports multiple installation and usage options.

Install via package manager

We recommend installing via a package manager for TypeScript support and version management.

bash
npm install @taskon/embed
bash
yarn add @taskon/embed
bash
pnpm add @taskon/embed

Use via CDN

If you're not using a bundler/build tool, you can import via CDN:

html
<!-- ES Module -->
<script type="module">
  import { TaskOnEmbed } from "https://unpkg.com/@taskon/embed@latest/dist/embed.js";
  // Your code
</script>

<!-- Or use the IIFE version -->
<script src="https://unpkg.com/@taskon/embed@latest/dist/embed.iife.js"></script>
<script>
  const { TaskOnEmbed } = window.TaskonEmbed;
  // Your code
</script>

Versions

Latest stable

bash
npm install @taskon/embed@latest

Specific version

bash
npm install @taskon/embed@0.1.0

Beta channel

bash
npm install @taskon/embed@beta

Build outputs

After installation, the package contains the following files:

@taskon/embed/
├── dist/
│   ├── embed.js          # ES module build
│   ├── embed.iife.js     # IIFE build (use directly in browser)
│   └── index.d.ts        # TypeScript typings
├── package.json
└── README.md

TypeScript support

The SDK ships with full type definitions. No extra @types packages are required.

typescript
import { TaskOnEmbed, type TaskOnEmbedConfig } from "@taskon/embed";

const config: TaskOnEmbedConfig = {
  clientId: "your-client-id",
  baseUrl: "https://taskon.xyz",
  containerElement: "#container",
};

Browser compatibility

TaskOn Embed SDK supports modern browsers:

BrowserMinimum Version
Chrome60+
Firefox55+
Safari12+
Edge79+

Bundle size

VersionOriginal SizeGzip Compressed
ES Module16.16 KB4.36 KB
IIFE11.36 KB3.67 KB

Verify installation

After installation, you can quickly verify:

javascript
import { TaskOnEmbed } from "@taskon/embed";

console.log(TaskOnEmbed); // You should see the constructor

Next steps

After installation, continue to configure your first TaskOn Embed instance.

Released under the MIT License.