An efficient and permeable alternative to iframes
npm install terrar

An efficient and permeable alternative to iframes.
Proxy class to create parent-jailed HTMLElement objectsbash
npm install terrar
`
And then you can import it in your scripts using :
`js
import "terrar";
`
For client-side usage (browser), simply put this
Usage
Like iframes, Terrar frames are a client-side way of isolating some content from the main context.
However Terrar frames support SSR, which means that you can pre-populated frames with content
generated on server side to reduces the amount of requests the page has to perform.
$3
`js
const content =
terrar.createFrame(content)
`$3
`html
...
...
`
or
`html
...
...
``If the default configuration should fit most use cases, each Terrar frame can be me manually fine-grained configured to :
- allow / restrict the usage of some tags
- allow / restrict the usage of some properties
- expose / hide function from the main context
So Terrar.js is especially useful with :
- Contents you own but don't trust (e.g. user-provided HTML content)
- Contents you dynamically generate from JS and want to prevent collisions between them
-