> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/server-side/sdks/js-sdk/archived-versions/archived-js-v40x.md).

# v4.0.X

#### Welcome to the Comprehensive Guide for Flagship JavaScript / TypeScript / NodeJS & Deno SDK!

This documentation is your one-stop resource for integrating Flagship into your JavaScript ecosystem, whether it's client-side or server-side. Our library comes with preconfigured methods designed to \[...]

* [Installation](/server-side/sdks/js-sdk/archived-versions/archived-js-v40x/archived-js-v40x-installation.md): Step-by-step instructions to set up Flagship in your environment.
* [Quick Start](/server-side/sdks/js-sdk/archived-versions/archived-js-v40x/archived-js-v40x-quick-start.md): Get up and running with Flagship in no time.
* [Reference](/server-side/sdks/js-sdk/archived-versions/archived-js-v40x/archived-js-v40x-reference.md): Detailed API documentation for in-depth understanding.

## SDK features

This version of the SDK lets you :

* Set a visitor ID
* Update visitor context
* Assign campaigns via the Decision API or via Bucketing Mode
* Get flag
* Manage visitor consent
* Use Experience Continuity
* Activate campaigns
* Send hits to our Universal Collect
* Manage visitor cache

## Prerequisites

| NodeJS                                                     | Deno                                                       |
| ---------------------------------------------------------- | ---------------------------------------------------------- |
| \* Your server/device must have an access to the internet. | \* Your server/device must have an access to the internet. |

## Good to know

| NodeJS                                                                 | Deno                                                                   |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| \* Github repository: <https://github.com/flagship-io/flagship-ts-sdk> | \* Github repository: <https://github.com/flagship-io/flagship-ts-sdk> |

> 📘 Javascript SDK - Engine compatibility
>
> Our Javascript SDK is compatible with :
>
> * V8 Engine
> * Node.js runtime
> * Deno

## Versions

#### Change logs

Find the versions change logs on our [Github Repository](https://github.com/flagship-io/flagship-ts-sdk/releases)

## Contact us

Feel free to [contact us](mailto:product.feedback@abtasty.com?subject=Flagship%20Developer%20Documentation) if you have any questions regarding this documentation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.abtasty.com/server-side/sdks/js-sdk/archived-versions/archived-js-v40x.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
