@rubixstudios/payload-images 1.0.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.
Files changed (3) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +71 -0
  3. package/package.json +80 -0
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rilrom / Riley Langbein
4
+ Copyright (c) 2025-2026 Rubix Studios Pty. Ltd. <https://rubixstudios.com.au>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # PayloadCMS Image Search Plugin
2
+
3
+ Integrated Payload CMS plugin for stock image search across Unsplash, Pexels, and Pixabay, with filterable results and instant import.
4
+
5
+ This project is an independent implementation derived [PayloadBites' Image Search](https://github.com/rilrom/payload-bites/tree/main/packages/image-search) extended with provider-specific image filtering and improved Windows OS compatibility.
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ pnpm add @rubixstudios/payload-images
11
+ ```
12
+
13
+ ```typescript
14
+ // payload.config.ts
15
+ import { buildConfig } from 'payload/config'
16
+ import { imagePlugin } from '@rubixstudios/payload-images'
17
+
18
+ export default buildConfig({
19
+ plugins: [
20
+ imagePlugin({
21
+ disabled: false, // Optional, defaults to false
22
+ access: ({ req: { user } }) => Boolean(user), // Image search access control
23
+ pexels: process.env.API_KEY_PEXELS!,
24
+ pixabay: process.env.API_KEY_PIXABAY!,
25
+ unsplash: process.env.API_KEY_UNSPLASH!,
26
+ }),
27
+ ],
28
+ })
29
+ ```
30
+
31
+ ## Notes
32
+
33
+ API key can be obtained from the respective provider's website.
34
+
35
+ - [Unsplash](https://unsplash.com/developers)
36
+ - [Pexels](https://www.pexels.com/api/)
37
+ - [Pixabay](https://pixabay.com/api/docs/)
38
+
39
+ When using Unplash, utilise your Access Key for the API Token.
40
+
41
+ ## Features
42
+
43
+ - Stock image search inside Payload Admin
44
+ - Providers: Unsplash, Pexels, Pixabay
45
+ - Provider-specific filters (color, orientation, size, type)
46
+ - Featured and keyword search modes
47
+ - One-click image import
48
+ - Permission-based access control
49
+
50
+ ## Liability
51
+
52
+ Rubix Studios, its developers, and contributors bear no responsibility for how images are used.
53
+ Before using any provider, ensure you have reviewed and agreed to their terms and usage policies.
54
+
55
+ ## Support
56
+
57
+ For support or inquiries:
58
+
59
+ - LinkedIn: [rubixvi](https://www.linkedin.com/in/rubixvi/)
60
+ - Website: [Rubix Studios](https://rubixstudios.com.au)
61
+
62
+ ## Author
63
+
64
+ Rubix Studios Pty. Ltd.
65
+ [https://rubixstudios.com.au](https://rubixstudios.com.au)
66
+
67
+ ## Acknowledgments
68
+
69
+ This project is based on the Image Search by Riley Langbein:
70
+
71
+ - [Riley Langbein](https://github.com/rilrom)
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@rubixstudios/payload-images",
3
+ "version": "1.0.0",
4
+ "description": "A Payload CMS plugin that integrates with stock image providers including Unsplash, Pexels and Pixabay.",
5
+ "license": "MIT",
6
+ "author": "Rubix Studios <hello@rubixstudios.com.au> (https://rubixstudios.com.au)",
7
+ "homepage": "https://rubixstudios.com.au",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/rubix-studios-pty-ltd/payload-images.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/rubix-studios-pty-ltd/payload-images/issues"
14
+ },
15
+ "maintainers": [
16
+ {
17
+ "name": "Rubix Studios",
18
+ "email": "hello@rubixstudios.com.au",
19
+ "url": "https://rubixstudios.com.au"
20
+ }
21
+ ],
22
+ "type": "module",
23
+ "keywords": [
24
+ "payload",
25
+ "payloadcms",
26
+ "stock",
27
+ "images",
28
+ "plugin",
29
+ "typescript",
30
+ "react",
31
+ "nextjs"
32
+ ],
33
+ "sideEffects": false,
34
+ "exports": {
35
+ ".": {
36
+ "import": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ }
40
+ },
41
+ "main": "./dist/index.js",
42
+ "types": "./dist/index.d.ts",
43
+ "files": [
44
+ "dist"
45
+ ],
46
+ "devDependencies": {
47
+ "@biomejs/biome": "2.3.12",
48
+ "@payloadcms/ui": "^3.73.0",
49
+ "@semantic-release/changelog": "^6.0.3",
50
+ "@semantic-release/git": "^10.0.1",
51
+ "@swc/cli": "^0.7.10",
52
+ "@swc/core": "^1.15.10",
53
+ "@types/react": "^19.2.9",
54
+ "clean-css-cli": "^5.6.3",
55
+ "payload": "^3.73.0",
56
+ "rimraf": "^6.1.2",
57
+ "semantic-release": "^25.0.2",
58
+ "typescript": "5.9.3"
59
+ },
60
+ "peerDependencies": {
61
+ "payload": "^3.72.0"
62
+ },
63
+ "engines": {
64
+ "node": ">=24",
65
+ "pnpm": ">=10"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public",
69
+ "registry": "https://registry.npmjs.org/"
70
+ },
71
+ "scripts": {
72
+ "build": "pnpm build:types && pnpm build:swc && pnpm build:assets",
73
+ "build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
74
+ "build:types": "tsc -p tsconfig.json",
75
+ "build:assets": "cleancss -o dist/components/SearchImages/style.css src/components/SearchImages/*.css",
76
+ "clean": "rimraf -g {dist,*.tsbuildinfo} && pnpm exec biome check --write",
77
+ "update": "pnpm update --latest && pnpm install && pnpm prune && pnpm dedupe && pnpm run clean",
78
+ "release": "semantic-release"
79
+ }
80
+ }