Code Monkey home page Code Monkey logo

raycast-pro-proxy's Introduction

Raycast Pro Proxy

This project is a Cloudflare worker that acts as a proxy for Raycast and integrates with OpenAI.

Project Structure

  • src/index.js: The main entry point of the application.
  • package.json: Defines the project dependencies and scripts.
  • wrangler.toml: Configuration file for the Cloudflare worker.
  • .gitignore: Specifies the files and directories that Git should ignore.

Setup

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. Set up your environment variables in the wrangler.toml file.
  4. OPENAI_API_BASE is the base URL for the OpenAI API.
  5. OPENAI_API_KEY is the API key for the OpenAI API.
  6. kv_namespaces is the list of key-value namespaces that the worker will use. You can create these namespaces in the Cloudflare dashboard. The worker uses these namespaces to store user data. The namespaces should be created with the following settings:
    • Title: RAYCAST_PRO_PROXY

Development

To start the development server, run npm run dev.

Deployment

To deploy the application, run npm run deploy.

Dependencies

  • wrangler: The CLI tool for Cloudflare Workers.
  • cloudflare-worker-request-data: A utility for working with request data in Cloudflare Workers.
  • openai: The official OpenAI API client.
  • reflare: A library for building reactive web applications.

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

raycast-pro-proxy's People

Contributors

kilingzhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.