
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@pai-tech/spell
Advanced tools
Spell is a universal user interface (UI) framework for distributed application development, such application requires control on several devices with full sync but each device provides a different user interface, Spell enables real-time translation from any command (spell-command) to platform specific command (like HTML, video file, sound, lights and more).
This package is an implementation of Spell engine for web applications (Javascript/HTML), the engine supports native HTML DOM manipulation engine (SpellUI) and real-time 3D engine for browsers based on THREE.JS and WebGL.
A distributed application (d'app) is an application that runs on several devices concurrently, the "Hello World" example in this case would be a program (app) that when it will run it will display "Hello World" on two different computers screens:
------------- -------------
| Hello World | | Hello World |
------------- -------------
|PC 1| |PC 2|
------ ------
/\ /\
|| ||
=====[Application]=====
Since a single application cant work on multiple context sessions (especially because of the different O/S instances) the way to accomplish such task is to write a program, deploy it to the computers and synchronized the running apps.
Spell is a rear-time interpreter that provides an interface to control both output and input devices (like screens, lights, sounds, microphones, vr headset etc').
Generally Spell is a frontend framework but it can work seamlessly with PAI-Bots which are used to develop backend applications that manages security, data management, transactions and more.
Distributed Application (d'app) example:
::::> (frontend html/3d (WebGL based engines))
:
: :::>(wormhole - bots communication channel)
: :
------- : ---------
[d'app] --> [ pc based * ] --------> |spell| <=-|WH|-=> |backend| :::>(node/python/java)
| ------- ---------
| /\
| |WH| :::> bot-to-bot communication for sync (P2P)
| \/
| ------- ---------
[ smart devices ** ] --> |spell| <=-|WH|-=> |backend|
| ------- ---------
| :
| :::>(iOS/Android native app/OpenGL based engines)
|
|
...
* PC based O/S: Windows, Linux & MacOS
** Smart devices O/S: iOS & Android
Spell is a modular framework, meaning the basic engine can load external modules ad run them.
[user] --> spell-command --> [spell]
|
|-----> [spell-module-ui]
|
|-----> [spell-module-3d]
|
|-----> [spell-module]
The way to communicate with Spell engine is to send SpellCommand that will be analyzed and activate the appropriate module:
[spell-command]
- module (the name of the module to run the command)
- created (date/timestamp of the command)
- op (the operation (method/function) to run within the module)
- params (list of parameters)
optional:
= on-frame (when to run the command)
= on-event (event to run the command)
SpellCommand can be send in several formats:
module-name op-name on-frame:"frame-number" param1:"param1-value" param2:"param2-value" ...
{ "module":"module-name", "op":"op-name", "on-frame":"frame-number" params: { "param1":"param1-value", "param2":"param2-value", } }
Spell objects can be created by calling the interpreter with create command, the parameters is the object meta json: { _id:"object-id", _type:"object-type", style:"html style", }
Credits & References:
THREE.JS: threejs.org
FAQs
Spell.JS UI Framework
The npm package @pai-tech/spell receives a total of 2 weekly downloads. As such, @pai-tech/spell popularity was classified as not popular.
We found that @pai-tech/spell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.