Search Docs
Loading...
Skip to content

Postcard UI

Built to facilitate optimal post- and greeting-card design, from changing accent colors and selecting fonts to custom messages and pictures.

Postcard UI starter kit showing a greeting card design interface

10 mins
estimated time
Download
GitHub

Pre-requisites#

This guide assumes basic familiarity with React and TypeScript.

  • Node.js v22+ with npm – Download
  • Supported browsers – Chrome 114+, Edge 114+, Firefox 115+, Safari 15.6+
    See Browser Support for the full list

Get Started#

Start fresh with a standalone Postcard Editor project. This creates a complete, ready-to-run application with a custom React-based interface.

Step 1: Clone the Repository#

Terminal
git clone https://github.com/imgly/starterkit-postcard-ui-react-web.git
cd starterkit-postcard-ui-react-web
git clone https://github.com/imgly/starterkit-postcard-ui-react-web.git
cd starterkit-postcard-ui-react-web

The src/ folder contains the editor code:

src/
├── app/ # Demo application
├── imgly/
│ ├── index.ts # Editor initialization function
│ ├── demo-assets.ts # Demo asset URLs
│ ├── constants.ts # Shared constants
│ ├── postcard-catalog.ts # Postcard catalog
│ ├── utils.ts # Utility functions
│ ├── config/
│ │ └── actions.ts # Export/import actions
│ └── plugins/
│ ├── image-colors.ts # Image colors plugin
│ └── unsplash.ts # Unsplash plugin
└── index.tsx # Application entry point

Step 2: Install Dependencies#

Install the required packages:

Terminal
npm install
npm install

Step 3: Run the Development Server#

Terminal
npm run dev
npm run dev

Open http://localhost:5173 in your browser.


Key Capabilities#

The Postcard Editor includes everything needed for postcard creation workflows.

Style Presets

Style Presets

Professionally crafted postcard templates to jump-start the design process.

Design Mode

Design Mode

Full editing capabilities including color changes, photo replacement, and text editing.

Write Mode

Write Mode

Personal message composition with font, size, and color customization.

Mobile-Friendly

Mobile-Friendly

Responsive interface optimized for both desktop and mobile devices.

Export Options

Export Options

Export designs in high-resolution, print-friendly formats.



Troubleshooting#

Editor doesn’t load#

  • Check console errors: Look for CORS or network errors in browser developer tools
  • Verify dependencies: Ensure all npm packages are installed correctly

Assets don’t appear#

  • Check network requests: Open DevTools Network tab and look for failed requests
  • Check the asset location: The starter kit sets no baseURL, so the editor loads its assets from the IMG.LY CDN. To host them yourself, see Serve Assets

Unsplash search shows no images#

  • Set an Unsplash proxy: The starter kit has no built-in Unsplash proxy. The proxy is your own server. It forwards the Unsplash API requests and adds your Unsplash Access Key, so the key does not reach the browser. Set the URL of your proxy in DEFAULT_UNSPLASH_API_URL in src/imgly/plugins/unsplash.ts. For an example, see “Set Up Unsplash Proxy” in the Unsplash Editor starter kit

Watermark appears in production#


Next Steps#