perplexity-image 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/index.js +89 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Perplexity Image
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Perplexity Image
|
|
2
|
+
|
|
3
|
+
AI Image Generator - Create stunning visuals instantly with text-to-image AI.
|
|
4
|
+
|
|
5
|
+
## Official Website
|
|
6
|
+
|
|
7
|
+
š **[https://perplexityimage.com](https://perplexityimage.com)**
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- šØ **Text-to-Image Generation** - Up to 4K resolution
|
|
12
|
+
- ā” **Studio-Grade Quality** - Professional output for web, print, and commercial use
|
|
13
|
+
- šļø **Multiple Styles** - Photorealistic, watercolor, oil painting, anime, vintage
|
|
14
|
+
- š· **Reference Guidance** - Upload reference images to guide AI
|
|
15
|
+
- š± **Multi-Platform** - Optimized for Instagram, Pinterest, Twitter, etc.
|
|
16
|
+
- š **Batch Processing** - Generate multiple images efficiently
|
|
17
|
+
- ā
**Commercial Rights** - Full usage rights, no attribution required
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install perplexity-image
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
const perplexityImage = require('perplexity-image');
|
|
29
|
+
|
|
30
|
+
// Get platform info
|
|
31
|
+
const info = perplexityImage.getInfo();
|
|
32
|
+
console.log(info);
|
|
33
|
+
|
|
34
|
+
// Get website URL
|
|
35
|
+
const url = perplexityImage.getPlatformUrl();
|
|
36
|
+
console.log(url); // https://perplexityimage.com
|
|
37
|
+
|
|
38
|
+
// Get features
|
|
39
|
+
const features = perplexityImage.getFeatures();
|
|
40
|
+
console.log(features);
|
|
41
|
+
|
|
42
|
+
// Display full info
|
|
43
|
+
perplexityImage.displayInfo();
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## API Reference
|
|
47
|
+
|
|
48
|
+
### `getInfo()`
|
|
49
|
+
Returns complete platform information object.
|
|
50
|
+
|
|
51
|
+
### `getPlatformUrl()`
|
|
52
|
+
Returns the official website URL.
|
|
53
|
+
|
|
54
|
+
### `getVersion()`
|
|
55
|
+
Returns the current package version.
|
|
56
|
+
|
|
57
|
+
### `getFeatures()`
|
|
58
|
+
Returns an array of platform features.
|
|
59
|
+
|
|
60
|
+
### `displayInfo()`
|
|
61
|
+
Displays formatted platform information in the console.
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- š Website: [https://perplexityimage.com](https://perplexityimage.com)
|
|
66
|
+
- š¦ npm: [https://www.npmjs.com/package/perplexity-image](https://www.npmjs.com/package/perplexity-image)
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
Ā© 2026 Perplexity Image. All rights reserved.
|
package/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Perplexity Image - AI Image Generator
|
|
3
|
+
* Create stunning visuals instantly with text-to-image AI.
|
|
4
|
+
*
|
|
5
|
+
* Official Website: https://perplexityimage.com
|
|
6
|
+
*
|
|
7
|
+
* @module perplexity-image
|
|
8
|
+
* @version 0.1.0
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
const info = {
|
|
15
|
+
name: 'Perplexity Image',
|
|
16
|
+
version: '0.1.0',
|
|
17
|
+
website: 'https://perplexityimage.com',
|
|
18
|
+
description: 'AI Image Generator - Create stunning visuals instantly with text-to-image AI'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const features = [
|
|
22
|
+
'Text-to-Image Generation up to 4K resolution',
|
|
23
|
+
'Professional studio-grade output quality',
|
|
24
|
+
'Multiple artistic styles (photorealistic, watercolor, anime, etc.)',
|
|
25
|
+
'Reference image guidance',
|
|
26
|
+
'Multi-platform optimization',
|
|
27
|
+
'Batch processing support',
|
|
28
|
+
'Full commercial usage rights'
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get complete platform information
|
|
33
|
+
* @returns {Object} Platform info object
|
|
34
|
+
*/
|
|
35
|
+
function getInfo() {
|
|
36
|
+
return { ...info };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get the official website URL
|
|
41
|
+
* @returns {string} Website URL
|
|
42
|
+
*/
|
|
43
|
+
function getPlatformUrl() {
|
|
44
|
+
return info.website;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get the current version
|
|
49
|
+
* @returns {string} Version string
|
|
50
|
+
*/
|
|
51
|
+
function getVersion() {
|
|
52
|
+
return info.version;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Get list of features
|
|
57
|
+
* @returns {Array} Feature list
|
|
58
|
+
*/
|
|
59
|
+
function getFeatures() {
|
|
60
|
+
return [...features];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Display platform info in console
|
|
65
|
+
*/
|
|
66
|
+
function displayInfo() {
|
|
67
|
+
console.log('\nšØ Perplexity Image - AI Image Generator\n');
|
|
68
|
+
console.log(`Version: ${info.version}`);
|
|
69
|
+
console.log(`Website: ${info.website}`);
|
|
70
|
+
console.log(`\nDescription: ${info.description}`);
|
|
71
|
+
console.log('\nFeatures:');
|
|
72
|
+
features.forEach((f, i) => console.log(` ${i + 1}. ${f}`));
|
|
73
|
+
console.log('\nš Visit https://perplexityimage.com for more!\n');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
module.exports = {
|
|
77
|
+
info,
|
|
78
|
+
features,
|
|
79
|
+
getInfo,
|
|
80
|
+
getPlatformUrl,
|
|
81
|
+
getVersion,
|
|
82
|
+
getFeatures,
|
|
83
|
+
displayInfo
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// CLI mode
|
|
87
|
+
if (require.main === module) {
|
|
88
|
+
displayInfo();
|
|
89
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "perplexity-image",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "AI Image Generator - Create stunning visuals instantly with text-to-image AI. Professional studio-grade output up to 4K resolution.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"perplexity-image",
|
|
8
|
+
"ai-image",
|
|
9
|
+
"image-generator",
|
|
10
|
+
"text-to-image",
|
|
11
|
+
"ai-art",
|
|
12
|
+
"image-generation",
|
|
13
|
+
"ai",
|
|
14
|
+
"artificial-intelligence",
|
|
15
|
+
"stable-diffusion",
|
|
16
|
+
"midjourney-alternative",
|
|
17
|
+
"dalle-alternative",
|
|
18
|
+
"visual-content"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://perplexityimage.com",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://perplexityimage.com"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://perplexityimage.com"
|
|
27
|
+
},
|
|
28
|
+
"author": "Perplexity Image Team",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=14.0.0"
|
|
32
|
+
}
|
|
33
|
+
}
|