Skip to content

Commit 8443a6d

Browse files
committed
feat: added docs, license and contributing guidelines
1 parent ee97d7a commit 8443a6d

File tree

3 files changed

+237
-1
lines changed

3 files changed

+237
-1
lines changed

CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Contributing to this project
2+
3+
Thank you for your interest in contributing to the project! Your help is greatly appreciated. Please follow the guidelines below to ensure a smooth contribution process.
4+
5+
## Getting Started
6+
7+
1. **Fork the repository** and clone your fork locally.
8+
2. **Install dependencies**:
9+
```bash
10+
npm install
11+
# or
12+
yarn install
13+
```
14+
3. **Create a new branch** for your feature or bugfix:
15+
```bash
16+
git checkout -b my-feature
17+
```
18+
19+
## Development
20+
21+
- Keep your code clean and readable.
22+
- Follow existing code style and conventions (TypeScript, Prettier, etc.).
23+
- Document new features or changes in the README if needed.
24+
25+
## Pull Requests
26+
27+
- Ensure your branch is up to date with the latest `main` branch.
28+
- Open a pull request with a clear description of your changes.
29+
- Reference any related issues in your PR description.
30+
- Be responsive to code review feedback.
31+
32+
## Commit Messages
33+
34+
- Use clear, descriptive commit messages.
35+
- Follow the [Conventional Commits](https://www.conventionalcommits.org/) style if possible.
36+
37+
## Code of Conduct
38+
39+
Please be respectful and considerate in all interactions.
40+
41+
## Reporting Issues
42+
43+
If you find a bug or have a feature request, please open an issue on GitHub with as much detail as possible.
44+
45+
---
46+
47+
Thank you for helping make this project better!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 ImageKit Pvt Ltd
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.

README.md

Lines changed: 169 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,169 @@
1-
# imagekit-contentful-app
1+
[<img width="250" alt="ImageKit.io" src="https://raw.githubusercontent.com/imagekit-developer/imagekit-javascript/master/assets/imagekit-light-logo.svg"/>](https://imagekit.io)
2+
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4+
[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
5+
[![React](https://img.shields.io/badge/React-20232A?logo=react&logoColor=61DAFB)](https://reactjs.org/)
6+
[![Contentful](https://img.shields.io/badge/Contentful-2478CC?logo=contentful&logoColor=white)](https://www.contentful.com/)
7+
8+
# ImageKit App for Contentful
9+
10+
Seamlessly integrate ImageKit's powerful media management with your Contentful workflows.
11+
12+
---
13+
14+
## Table of Contents
15+
16+
- [ImageKit App for Contentful](#imagekit-app-for-contentful)
17+
- [Table of Contents](#table-of-contents)
18+
- [Overview](#overview)
19+
- [Features](#features)
20+
- [🎯 Core Features](#-core-features)
21+
- [🔧 Advanced Features](#-advanced-features)
22+
- [Prerequisites](#prerequisites)
23+
- [Installation](#installation)
24+
- [Configuration](#configuration)
25+
- [Basic Setup](#basic-setup)
26+
- [Advanced Configuration](#advanced-configuration)
27+
- [Media Delivery Settings](#media-delivery-settings)
28+
- [Widget Settings](#widget-settings)
29+
- [Usage](#usage)
30+
- [Adding ImageKit Fields to Content Types](#adding-imagekit-fields-to-content-types)
31+
- [Selecting Assets](#selecting-assets)
32+
- [Support](#support)
33+
- [Official Support Channels](#official-support-channels)
34+
- [Community Support](#community-support)
35+
- [License](#license)
36+
37+
## Overview
38+
39+
The **ImageKit App** for Contentful enables content creators to seamlessly select, upload, and manage media assets from their ImageKit Media Library directly within Contentful's interface. This integration combines ImageKit's powerful image and video optimization capabilities with Contentful's flexible content management system.
40+
41+
## Features
42+
43+
### 🎯 Core Features
44+
45+
- **Media Library Integration**: Browse and select assets from your ImageKit Media Library
46+
- **Direct Upload**: Upload new assets to ImageKit from within Contentful
47+
- **Real-time Transformations**: Apply transformations and quality settings automatically
48+
- **Drag & Drop Reordering**: Easily reorder selected assets
49+
- **Rich Metadata**: Access comprehensive asset information including dimensions, file size, tags, and more
50+
- **Preview Support**: View thumbnails and preview assets before selection
51+
52+
### 🔧 Advanced Features
53+
54+
- **Custom Transformations**: Apply default transformation strings to all selected assets
55+
- **Quality Control**: Set specific quality levels for optimized delivery
56+
- **Folder Navigation**: Start in specific folders within your media library
57+
- **Collection Support**: Filter by specific collections or view all collections
58+
- **File Type Filtering**: Show only specific file types (image, video, etc.)
59+
- **Search Integration**: Default search queries for faster asset discovery within the media library
60+
- **Multiple Selection**: Select multiple assets at once with configurable limits
61+
62+
## Prerequisites
63+
64+
Before installing this app, ensure you have:
65+
66+
1. **Active ImageKit Account**: Sign up at [imagekit.io](https://imagekit.io) if you haven't already
67+
2. **Contentful Space**: Administrative access to a Contentful space where you want to install the app
68+
3. **Content Types**: At least one content type where you want to use the media field
69+
70+
## Installation
71+
72+
The easiest and the recommended way to install this app is from the Contentful official marketplace.
73+
74+
1. Go to your Contentful space
75+
2. Navigate to **Apps****Marketplace**
76+
3. Search for "ImageKit App"
77+
4. Click **Install** and follow the setup wizard
78+
79+
## Configuration
80+
81+
### Basic Setup
82+
83+
After installation, configure the app through Contentful's interface:
84+
85+
1. **Navigate to App Configuration**:
86+
- Go to **App****Installed apps**
87+
- Find "ImageKit App" and click **Configure**
88+
89+
2. **Complete the Setup Wizard**:
90+
- **Field Selection**: Choose which content types and fields will use ImageKit
91+
- **Basic Configuration**: This will be automatically set up during the configuration process
92+
93+
### Advanced Configuration
94+
95+
The app provides extensive configuration options to customize behavior:
96+
97+
#### Media Delivery Settings
98+
99+
Configure how selected media assets are delivered:
100+
101+
| Setting | Description | Default | Example |
102+
|---------|-------------|---------|---------|
103+
| **Default Transformation** | Transformation string applied to all selected assets | None | `w-400,h-300,c-maintain_ratio` |
104+
| **Media Quality** | Quality level for image compression | `auto` | `80`, `auto` |
105+
106+
#### Widget Settings
107+
108+
Control the media library widget's initial state:
109+
110+
| Setting | Description | Default | Example |
111+
|---------|-------------|---------|---------|
112+
| **Starting Folder** | Default folder path when widget opens | `/` | `/marketing/banners/` |
113+
| **Collection ID** | Specific collection to display | None | `col_123456` or `all` |
114+
| **File Type Filter** | Restrict to specific file types | None | `image`, `video`, `others` |
115+
| **Default Search** | Pre-filled search query | None | `name = "red-dress-summer.jpg"` |
116+
| **Multiple Selection** | Allow selecting multiple assets | `true` | `false` |
117+
| **Max Selections** | Maximum number of assets per selection | Unlimited | `5` |
118+
119+
## Usage
120+
121+
### Adding ImageKit Fields to Content Types
122+
123+
1. **Open Content Type**:
124+
- Navigate to **Content model** → Select your content type
125+
- Click **Add field**
126+
127+
2. **Select Field Type**:
128+
- Choose **JSON Object**
129+
- Set field name (e.g., "Hero Image", "Gallery Images")
130+
- Configure validation rules as needed
131+
132+
3. **Configure Field**:
133+
- In the **Appearance** tab, select "ImageKit App"
134+
- The field will now use the ImageKit media library widget
135+
136+
### Selecting Assets
137+
138+
1. **Open Entry Editor**:
139+
- Navigate to **Content** → Select an entry
140+
- Find your ImageKit field
141+
142+
2. **Select Assets**:
143+
- Click **"Select or upload an asset"**
144+
- Browse your ImageKit Media Library
145+
- Use search, filters, and folder navigation
146+
- Select desired assets and click **Insert**
147+
148+
3. **Manage Selected Assets**:
149+
- **Reorder**: Drag and drop assets to reorder
150+
- **Preview**: Click on assets to see details and preview
151+
- **Remove**: Use the delete button to remove assets
152+
- **View on ImageKit**: Click to open the asset in ImageKit dashboard
153+
154+
## Support
155+
156+
### Official Support Channels
157+
158+
- **ImageKit Support**: For ImageKit-specific issues, contact [ImageKit Support](https://imagekit.io/support)
159+
- **Contentful Support**: For Contentful platform issues, contact [Contentful Support](https://support.contentful.com)
160+
161+
### Community Support
162+
163+
- **GitHub Issues**: Report bugs or request features in our [GitHub repository](https://github.com/your-org/imagekit-contentful/issues)
164+
- **Documentation**: Check our comprehensive documentation above
165+
- **StackOverflow**: Tag questions with `imagekit` and `contentful`
166+
167+
## License
168+
169+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)