pidge

pidge is a powerful tool that aids in creating and managing AI-driven conversation apps. In this README, we provide a brief overview of how to set up, compile, and use pidge along with its associated development bookmarklet.

Prerequisites

Installation

  1. Clone the pidge git repository.
  2. Ensure you have the aforementioned prerequisites installed.
  3. Navigate to the root directory of the pidge repository.
  4. Run make build to compile the app. This will create an executable binary named pidge in the release/ directory.
  5. You can either:
    • Move the pidge binary from release/ to a directory in your system's PATH, e.g., /usr/local/bin/, or
    • Add the path to the release/ directory to your system's PATH.

Getting Started with pidge

  1. Create a New App:

    pidge new [app-name]

    This command initializes a new pidge app in a directory named [app-name]. The basic structure includes:

    • A src/ directory.
    • Inside src/, a prompt/ directory containing folders for each AI conversation. The default template has two conversations named bird and insight.
    • A main file: main.pj.
    • Conversation templates with .pjt extensions.
  2. Compile the App:

    pidge compile
  3. Run the App:

To run your pidge app, use the following command:

pidge run [options]

Here are the available command-line switches for the run command:

  1. Quick Compile & Run: If you're iterating rapidly, you can use:
    pidge go [run-options]
    This command first compiles and then immediately runs your app.

Bookmarklet

  1. Run make bookmarklet_compile to minify the JavaScript code for the bookmarklet, and write it to release/bookmarklet.txt. This action will also copy the minified code to your clipboard (Mac only).
  2. Create a new bookmark in your browser and paste the copied code as its URL.
  3. Navigate to a ChatGPT conversation and click the bookmark. When prompted, input a session in the format [conversation-name]-[session-name], e.g., bird-aaa.

Future Roadmap

Conclusion

This guide provides the basic steps to get started with pidge. For a deeper dive into the language syntax and the underlying theory, please refer to our detailed documentation (coming soon).