![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@memori.ai/memori-webcomponent
Advanced tools
WebComponent to integrate a Memori in your app or website
WebComponent to integrate a Memori in a web page or web app.
Platforms:
Uses memori-react under the hood. See demo.
npm i --save @memori.ai/memori-webcomponent
<script
type="module"
src="https://esm.run/@memori.ai/memori-webcomponent/dist/memori-webcomponent.js"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@memori.ai/memori-react/dist/styles.min.css"
/>
<memori-client
memoriName="Memori"
ownerUserName="nunziofiore"
tenantID="app.memorytwin.com"
showShare
apiURL="https://backend.memori.ai"
baseURL="https://app.memorytwin.com"
uiLang="it"
/>
For more details on attributes, see memori-react component props.
Special note for height
: defaults to 100%
and can be set to a fixed value (e.g. 500px
).
For the best experience, it is recommended to set it to '100vh' (full height of the viewport) or '100svh'.
As for memori-react component, it is possible to pass an initial context to the Memori session.
With this WebComponent that is slightly different, as the context is not passed as a JSON but as a string in the context
attribute as comma-separated KEY:VALUE
pairs:
<memori-client ... context="VAR1:VALUE1,VAR2:VALUE2" />
FAQs
WebComponent to integrate a Memori in your app or website
The npm package @memori.ai/memori-webcomponent receives a total of 180 weekly downloads. As such, @memori.ai/memori-webcomponent popularity was classified as not popular.
We found that @memori.ai/memori-webcomponent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.