GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - contentstack/marketplace-quick-web-lookup-app: A Contentstack marketplace app that automatically extracts URLs from entry content and generates rich link previews with metadata, images, and descriptions.

BranchesTags
Open more actions menu

Latest commit

 

History

42 Commits
42 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
e2e
e2e
 
 
public
public
 
 
src
src
 
 
.env.sample
.env.sample
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.talismanrc
.talismanrc
 
 
CODEOWNERS
CODEOWNERS
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
commitlint.config.js
commitlint.config.js
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

Quick Web Lookup

License: MIT TypeScript React Playwright Vite

A modern Contentstack marketplace app that automatically extracts URLs from entry content and generates rich link previews with metadata, images, and descriptions. This React-based application provides an intuitive link preview interface that integrates seamlessly with Contentstack's content management system.

๐Ÿš€ Features

  • Automatic URL Detection: Extracts URLs from content fields automatically
  • Rich Link Previews: Generates previews with titles, descriptions, and images
  • Responsive Design: Adapts to different sidebar widths and screen sizes
  • Real-time Updates: Refreshes previews when content is saved
  • Error Handling: Graceful fallbacks with retry options
  • TypeScript: Fully typed for better development experience
  • Modern UI: Clean, professional interface using modern CSS modules

๐Ÿ“‹ Prerequisites

  • Node.js (v16 or higher)
  • npm
  • Contentstack account (for marketplace deployment)

๐Ÿš€ Quick Start

Installation

# Clone the repository
git clone https://github.com/contentstack/marketplace-quick-web-lookup-app.git
cd marketplace-quick-web-lookup-app

# Install dependencies
npm install

Development

# Start development server
npm run dev

# Run E2E tests
npm run test:e2e

# Run linting
npm run lint

Building for Production

# Build the application
npm run build

# The built files will be in the `dist` directory

๐Ÿ—๏ธ Project Structure

marketplace-quick-web-lookup-app/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/          # Reusable React components
โ”‚   โ”‚   โ”œโ”€โ”€ AppFailed.tsx   # Error boundary component
โ”‚   โ”‚   โ”œโ”€โ”€ ErrorBoundary.tsx
โ”‚   โ”‚   โ””โ”€โ”€ LinkPreview/    # Link preview components
โ”‚   โ”œโ”€โ”€ containers/          # Main app containers
โ”‚   โ”‚   โ”œโ”€โ”€ App/            # Main app component
โ”‚   โ”‚   โ”œโ”€โ”€ AppConfiguration/ # App configuration
โ”‚   โ”‚   โ”œโ”€โ”€ SidebarWidget/  # Entry sidebar widget
โ”‚   โ”‚   โ””โ”€โ”€ 404/           # 404 error page
โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ”œโ”€โ”€ contexts/       # React contexts
โ”‚   โ”‚   โ”œโ”€โ”€ hooks/          # Custom React hooks
โ”‚   โ”‚   โ”œโ”€โ”€ locales/        # Internationalization
โ”‚   โ”‚   โ”œโ”€โ”€ providers/      # Context providers
โ”‚   โ”‚   โ”œโ”€โ”€ types/          # TypeScript type definitions
โ”‚   โ”‚   โ””โ”€โ”€ utils/          # Utility functions
โ”‚   โ”œโ”€โ”€ services/           # API services
โ”‚   โ”œโ”€โ”€ types/              # Type definitions
โ”‚   โ”œโ”€โ”€ utils/              # Utility functions
โ”‚   โ””โ”€โ”€ assets/             # Static assets
โ”œโ”€โ”€ e2e/                    # End-to-end tests
โ”œโ”€โ”€ public/                 # Public assets
โ””โ”€โ”€ config files...

๐Ÿงช Testing

This project includes comprehensive testing:

E2E Tests

npm run test:e2e          # Run all E2E tests
npm run test:chrome       # Run E2E tests in Chrome
npm run test:firefox      # Run E2E tests in Firefox
npm run test:safari       # Run E2E tests in Safari
npm run test:chrome-headed # Run E2E tests in Chrome with UI

Code Quality

npm run lint              # Run ESLint
npm run typecheck         # TypeScript type checking
npm run format            # Format code with Prettier

๐Ÿ”ง Configuration

Environment Variables

Create a .env file in the root directory:

VITE_PUBLIC_KEY_BASE_URL=https://app.contentstack.com

App Configuration

The app configuration is defined in the manifest and deployment files for Contentstack marketplace integration.

๐Ÿ› ๏ธ Development

Adding New Features

  1. Create feature branch from main
  2. Implement your changes
  3. Add tests for new functionality
  4. Update documentation
  5. Submit pull request

Code Style

This project uses:

  • ESLint for code linting
  • Prettier for code formatting
  • TypeScript for type safety
  • CSS Modules for styling

Commit Convention

This project follows Conventional Commits:

feat: add new link preview feature
fix: resolve URL extraction issue
docs: update README with new features
test: add E2E tests for link previews

๐Ÿ“ฆ Deployment

Contentstack Marketplace

  1. Build the application: npm run build
  2. Package the dist directory
  3. Upload to Contentstack marketplace
  4. Install in your Contentstack stack

Using Contentstack Launch

  1. Go to Contentstack Launch Dashboard

    • Navigate to your Contentstack organization
    • Access the Launch section
  2. Connect GitHub Repository

    • Click "Connect Repository"
    • Select GitHub and authorize access
    • Choose your repository: marketplace-quick-web-lookup-app
    • Set build command: npm run build
    • Set output directory: dist
  3. Configure Deployment

    • Enable automatic deployments on push to main branch
    • Set up environment variables if needed
    • Configure build settings
  4. Deploy

    • Push changes to your main branch to trigger automatic deployment
    • Or manually trigger deployment from the Launch dashboard

Local Development

For local development with Contentstack:

  1. Use Contentstack's local development tools
  2. Configure your environment variables
  3. Run npm run dev for development server

๐Ÿ“ฑ Usage

  1. Install from Contentstack marketplace
  2. Navigate to entry with URL content
  3. Open sidebar to see link previews
  4. Click previews to open links in new tabs
  5. Refresh previews when content changes

๐Ÿค Contributing

We welcome contributions!

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

# Install dependencies
npm install

# Start development
npm run dev

# Run tests
npm run test:e2e

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Contentstack for the marketplace platform
  • Peekalink API for link preview generation
  • React for the UI framework
  • Vite for the build tool
  • Playwright for E2E testing

๐Ÿ“ž Support

  • Issues: GitHub Issues
  • Documentation: Contentstack Developer Hub
  • Community: Contentstack Community

Made with โค๏ธ by the Contentstack team

About

A Contentstack marketplace app that automatically extracts URLs from entry content and generates rich link previews with metadata, images, and descriptions.

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.