Here is the difference between running a plugin on the Server Side and on the Client Side:Documentation Index
Fetch the complete documentation index at: https://docs.typingmind.com/llms.txt
Use this file to discover all available pages before exploring further.
What is a Server Plugin?
Run on the Server side:
✅ How it works:- The user can not see the plugin’s code, API keys, credentials, and data. Only the plugin’s output is shown to the user.
- If the plugin requires sending HTTP requests to external servers, the requests will be sent from the TypingMind server, hidden away from the user.
- By default, all plugins are run on the server side if it has an HTTP action implementation.
- Running the plugin on the server side is more convenience for the users, as they don’t need to setup anything to use the plugins.
Run on the Client side:
✅ How it works:- The plugin will be run on the users’ browser.
- If the plugin has a JavaScript implementation, the code will be executed in a sandboxed browser environment on the user’s device.
- If the plugin requires sending HTTP requests to external servers, the requests will be sent directly from the user’s browser to the external server (be aware of CORS issues in this case).
- The users will need to provide all the plugin settings (e.g., API keys) in order to use the plugin.
- Use it if the plugin is designed to be run on the client, for example, rendering interactive charts or running JavaScript on the user’s device.
- Use this if you want to give the users the flexibility of using their own API key in some plugins.