MCPcopy Index your code
hub / github.com/croct-tech/plug-js

github.com/croct-tech/plug-js @0.24.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.24.0 ↗ · + Follow
126 symbols 298 edges 43 files 3 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

    <img src="https://github.com/croct-tech/plug-js/blob/master/.github/assets/header-light-mobile.svg" alt="Croct JavaScript SDK" title="Croct JavaScript SDK" width="100%">

Croct JavaScript SDK

Bring dynamic, personalized content natively into your applications.

<strong>📘 <a href="https://docs.croct.com/reference/sdk/javascript/installation">Quick start &rarr;</a></strong>









<a href="https://www.npmjs.com/package/@croct/plug"><img alt="Version" src="https://img.shields.io/npm/v/@croct/plug"/></a>
<img alt="Gzipped bundle size" src="https://img.badgesize.io/https:/cdn.croct.io/js/v1/lib/plug.js?style=flat&compression=gzip" />

Introduction

Croct is a headless CMS that helps you manage content, run AB tests, and personalize experiences without the hassle of complex integrations.

Installation

Run this command to install the SDK:

npm install @croct/plug

See our quick start guide for more details.

Documentation

Visit our official documentation.

Support

Join our official Slack channel to get help from the Croct team and other developers.

Contribution

Contributions are always welcome!

  • Report any bugs or issues on the issue tracker.
  • For major changes, please open an issue first to discuss what you would like to change.
  • Please make sure to update tests as appropriate. Run tests with npm test.

License

This library is licensed under the MIT license.

Extension points exported contracts — how you extend this code

Plugin (Interface)
(no doc) [6 implementers]
src/plugin.ts
Plug (Interface)
(no doc) [2 implementers]
src/plug.ts
Window (Interface)
(no doc)
src/global.d.ts
SlotMap (Interface)
(no doc)
src/slot.ts
ComponentMap (Interface)
(no doc)
src/component.ts
Window (Interface)
(no doc)
preview/test/global.d.ts
PluginSdk (Interface)
(no doc)
src/plugin.ts
PluginConfigurations (Interface)
(no doc)
src/plug.ts

Core symbols most depended-on inside this repo

plug
called by 77
src/plug.ts
enable
called by 50
src/plugin.ts
getValue
called by 29
src/plugins/autoTracking/structuredData.ts
setToken
called by 18
src/plug.ts
extend
called by 15
src/plug.ts
fetch
called by 11
src/plug.ts
isObject
called by 11
src/plugins/autoTracking/structuredData.ts
truncate
called by 11
src/plugins/autoTracking/index.ts

Shape

Method 67
Function 39
Interface 12
Class 8

Languages

TypeScript100%

Modules by API surface

src/plug.ts42 symbols
src/plugins/preview/index.ts14 symbols
src/plugins/autoTracking/index.ts13 symbols
src/plugins/autoTracking/structuredData.ts11 symbols
src/plugin.ts11 symbols
preview/src/widget.js7 symbols
src/plugins/globalVariable/index.ts6 symbols
test/slot.test.ts3 symbols
test/component.test.ts3 symbols
test/plug.test.ts2 symbols
src/slot.ts2 symbols
src/component.ts2 symbols

For agents

$ claude mcp add plug-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact