GithubHelp home page GithubHelp logo

norris-gpt's Introduction

ChatGPT Todo Plugin In NodeJs

This template repository will help you bootstrap your ChatGPT plugin development in NodeJs / Typescript. It provides a simple example of a Todo plugin for ChatGPT. The plugin allows users to add, retrieve, and delete Todo items for different usernames, following the original OpenAI python example.

Get a todo list ChatGPT plugin up and running in under 5 minutes using NodeJS. If you do not already have plugin developer access, please join the waitlist. This is similar to the python sample from OpenAI

I would also suggest you to read the plugin documentation from OpenAI if you havn't done this yet.

image info

Features

  • Add Todo items for a specific user
  • Retrieve Todo items for a specific user
  • Delete Todo items for a specific user

Getting Started

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/etherlegend/chatgpt-plugin-node-todo.git
cd chatgpt-plugin-node-todo
  1. Install the required dependencies:
npm install

Running the project

For development:

npm start

Once the local server is running:

  1. Navigate to https://chat.openai.com.
  2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
  3. Select "Plugin store"
  4. Select "Develop your own plugin"
  5. Enter in localhost:5003 since this is the URL the server is running on locally, then select "Find manifest file".

The plugin should now be installed and enabled! You can start with a question like "What is on my todo list" and then try adding something to it as well!

API Endpoints

Add Todo

  • URL: /todos/:username
  • Method: POST
  • URL Params: username (string)
  • Data Params: { "todo": "A todo item" }
  • Success Response: 200 OK

Get Todos

  • URL: /todos/:username
  • Method: GET
  • URL Params: username (string)
  • Success Response: 200 OK with JSON array of todos

Delete Todo

  • URL: /todos/:username
  • Method: DELETE
  • URL Params: username (string)
  • Data Params: { "todo_idx": 0 } (index of the todo item to delete)
  • Success Response: 200 OK

Contributing

Contributions are welcome! Please create a fork of this repository, make your changes in a new branch, and submit a pull request.

License

This project is licensed under the MIT License.

norris-gpt's People

Contributors

acedzn avatar

Watchers

 avatar  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.