https://github.com/sneas/sensus
🟢 AI sensor for your GitHub comments
https://github.com/sneas/sensus
chatgpt chrome-extension github
Last synced: 2 months ago
JSON representation
🟢 AI sensor for your GitHub comments
- Host: GitHub
- URL: https://github.com/sneas/sensus
- Owner: sneas
- License: mit
- Created: 2023-11-05T11:45:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T16:02:01.000Z (over 2 years ago)
- Last Synced: 2025-03-27T22:43:19.009Z (about 1 year ago)
- Topics: chatgpt, chrome-extension, github
- Language: TypeScript
- Homepage: https://chromewebstore.google.com/detail/sensus-constructive-githu/eeeacchbfimdlomgbdfchlpghjlcmeod
- Size: 170 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sensus 🟢
A browser extension that shows the opinionated constructiveness of your comments on GitHub.
https://chromewebstore.google.com/detail/sensus-constructive-githu/eeeacchbfimdlomgbdfchlpghjlcmeod
## Why?
This repo's authors believe positive reinforcement is the most humane way to affect people's behavior.
## How it works
Every time you type a text in the comment textarea on GitHub, Sensus:
1. Sends the text of your comment to the Analyze Lambda [packages/backend/src/lambdas/analyze/index.ts](packages/backend/src/lambdas/analyze/index.ts)
1. Analyze Lambda passes the text of your comment to ChatGPT as a part of a prompt that returns JSON with values
1. Analyze Lambda calculates and returns the Constructiveness Score - a number between 1 and 5
1. The Constructiveness Score is shown in the top right corner of the comment textarea
## How to build
```sh
npm install
npm run build
```
## How to run in dev mode
### Google Chrome
1. Open `chrome://extensions` in your Chrome browser
1. Toggle "Developer mode" in top right corner of the screen
1. Click "Load unpacked" button in top left corner of the screen
1. Select `packages/extension/dist` folder from this repository (Build the project to see dist folder)