Background and stack
I wanted to see if I can build an app using pure prompts, without serious by hand coding (sans the occasional typo).
- Developed using pure prompts with Cursor AI IDE.
- Primary code model: Anthropic Claude 3.5 Sonnet.
- Additional model OpenAI o1-preview for cases where claude got stuck.
Stack
I chose the Astro starter, everything else was guided by prompts.
- Uses Astro 5.0 framework with shadcn/ui and tailwindcss based on Agent C template.
- Uses HighCharts for charts.
- Uses Sentiment for word-list based sentiment analysis.
- Statically compiled via Bun.
- Hosted on Cloudflare Pages.
Sentiment analysis
By default, the sentiment analysis is performed using the Sentiment package, which uses a word list-based approach. While simplistic and very coarse, this enables real-time analysis on the firehose even on mobile browsers.
Alternatively, the FastText ML library may be used (inspired by alextobias/sentiment-analysis-web), which provides a more sophisticated approach and may improve the accuracy of the sentiment analysis at the cost of increased processing overhead.
MIT License
Copyright (c) 2024 Agent C https://agentc.app
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.