Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus-labs/ai-focal-point-detection-operation

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus-labs/ai-focal-point-detection-operation - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

98

package.json
{
"name": "@directus-labs/ai-focal-point-detection-operation",
"description": "Use OpenAI Vision models to find an image's focal points.",
"icon": "extension",
"version": "1.0.2",
"keywords": [
"directus",
"directus-extension",
"directus-extension-operation"
],
"type": "module",
"files": [
"dist"
],
"license": "MIT",
"directus:extension": {
"type": "operation",
"path": {
"app": "dist/app.js",
"api": "dist/api.js"
},
"source": {
"app": "src/app.js",
"api": "src/api.js"
},
"host": "^10.10.0",
"sandbox": {
"enabled": true,
"requestedScopes": {
"log": {},
"request": {
"methods": [
"POST"
],
"urls": [
"https://api.openai.com/v1/chat/**"
]
}
}
}
},
"scripts": {
"build": "directus-extension build",
"dev": "directus-extension build -w --no-minify",
"link": "directus-extension link"
},
"devDependencies": {
"@directus/extensions-sdk": "11.0.1",
"vue": "^3.4.21"
}
"name": "@directus-labs/ai-focal-point-detection-operation",
"description": "Use OpenAI Vision models to find an image's focal points.",
"icon": "extension",
"version": "1.0.3",
"keywords": [
"directus",
"directus-extension",
"directus-extension-operation"
],
"type": "module",
"files": [
"dist"
],
"license": "MIT",
"directus:extension": {
"type": "operation",
"path": {
"app": "dist/app.js",
"api": "dist/api.js"
},
"source": {
"app": "src/app.js",
"api": "src/api.js"
},
"host": "^10.10.0",
"sandbox": {
"enabled": true,
"requestedScopes": {
"log": {},
"request": {
"methods": [
"POST"
],
"urls": [
"https://api.openai.com/v1/chat/**"
]
}
}
}
},
"scripts": {
"build": "directus-extension build",
"dev": "directus-extension build -w --no-minify",
"link": "directus-extension link"
},
"devDependencies": {
"@directus/extensions-sdk": "11.0.1",
"vue": "^3.4.21"
}
}

@@ -5,7 +5,7 @@ # AI Focal Point Detection Operation

![The AI Focal Point Detection operation, showing an Openai API Key field and a File URL field.](https://raw.githubusercontent.com/directus-labs/extension-ai-focal-point-detection-operation/main/docs/options.png)
![The AI Focal Point Detection operation, showing an Openai API Key field and a File URL field.](https://raw.githubusercontent.com/directus-labs/extensions/main/packages/ai-focal-point-detection-operation/docs/options.png)
This operation contains two required configuration options - an [OpenAI API Key](https://platform.openai.com), and a link to a file. It returns a JSON object containing the focal point coordinates and the reason these were chosen.
![The output showing a JSON object containing a a flocal_point_x, focal_point_y, and reason parameter.](https://raw.githubusercontent.com/directus-labs/extension-ai-focal-point-detection-operation/main/docs/output.png)
![The output showing a JSON object containing a a flocal_point_x, focal_point_y, and reason parameter.](https://raw.githubusercontent.com/directus-labs/extensions/main/packages/ai-focal-point-detection-operation/docs/output.png)

@@ -12,0 +12,0 @@ You can use the operation to then save the result to a file.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc