
Security News
Cloudflare Introduces a Faster TypeScript Compiler Written in Rust
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.
@gleanwork/web-sdk
Advanced tools
The Glean Web SDK enables integration of AI powered search and chat functionalities into your existing intranet portal. The toolkit offers different variants to suit various use-cases and provide a streamlined search experience.
We recommend to use the @gleanwork/web-sdk when integrate with Glean, it will provide proper type support as well.
Install the Glean Web SDK with the following command:
// npm
npm install @gleanwork/web-sdk
// yarn
yarn add @gleanwork/web-sdk
// pnpm
pnpm add @gleanwork/web-sdk
// Can import all methods in one namespace GleanWebSDK
import GleanWebSDK, { type ModalSearchOptions } from "@gleanwork/web-sdk"
const optionalModalSearchOptions: ModalSearchOptions = {
// ...
}
GleanWebSDK.attach(document.getElementById('search-box'), optionalModalSearchOptions)
// or can import individual methods instead
import { attach, type ModalSearchOptions } from "@gleanwork/web-sdk"
attach(document.getElementById('search-box'), optionalModalSearchOptions)
If npm is not a viable solution, you can also integrate Glean via script tag, just
include the JS library in the <head> of your page, where YOUR_GLEAN_DOMAIN is
where your company accesses Glean, such as app.glean.com, {company}.glean.com.
<script
src="https://{YOUR_GLEAN_DOMAIN}/sdk/glean-web-sdk-<version>.min.js"
></script>
This will provide all the methods available in NPM package via window.GleanWebSDK,
other than that, the usage will remain the same.
Details on usage can found on https://developers.glean.com/docs/browser_api/
FAQs
Library for embedding Glean UI components
We found that @gleanwork/web-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.

Security News
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.