Skip to content

neuphonic/neuphonic-chrome-extension

Repository files navigation

Neuphonic Chrome Extension

A Chrome extension that uses Neuphonic to read aloud highlighted text, or allows users to converse with a page using Neuphonic Agents.

Development Setup

Prerequisites

  • Node.js
  • pnpm
  • Chrome browser

Installation Steps

  1. Clone the repository:

    git clone git@github.com:neuphonic/neuphonic-chrome-extension.git
    cd neuphonic-chrome-extension
  2. Install dependencies:

    pnpm install
  3. Build the extension:

    pnpm build

    This creates a /build folder with the compiled extension.

    Alternatively, for development:

    pnpm dev

    This starts a watch mode that rebuilds the extension on file changes.

Loading the Extension in Chrome

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer Mode" (toggle in the top right)
  3. Click "Load Unpacked"
  4. Select the /build folder from your project directory

Development Workflow

See Hello World Tutorial for details on how to develop with chrome extensions.

  • The extension will be loaded into Chrome and ready to use
  • Any changes made to the source code will require a re-build.
  • Therefore, when developing, use pnpm dev to handle the building. The changes automatically become available in the widget.

Using the Extension

  1. Click the extension icon in Chrome's toolbar
  2. If it's your first time:
    • Go to Settings
    • Add your Neuphonic API key
    • Select your preferred language and voice
  3. To use Read Aloud:
    • Highlight any text on a webpage
    • Click the extension icon
    • Click "Read Aloud"
  4. The text will be read aloud using your selected voice

Project Structure

neuphonic-chrome-extension/
├── src/                   # Source code
│   ├── App.tsx            # Main application component
│   ├── hooks.ts           # Custom React hooks
|   ├── content.ts         # Custom script which runs in the context of the browser
│   └── types.ts           # TypeScript type definitions
├── public/                # Static assets
│   ├── manifest.json      # Extension manifest
│   └── logo.png           # Neuphonic logo
└── build/                 # Compiled extension (generated)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors