Launching peky.app!
May 21 328 Words
Table of Contents
Peky
Hi everyone,
I'm excited to introduce Peky - your advanced AI assistant for Discord servers! Peky brings you features like generating assistants from web pages, creating reminders, and more to enhance your Discord experience.
Tech Stack
Peky is powered by two main components: the Messaging Server and the Dashboard UI.
Messaging Server
The Messaging Server is the heart of Peky. It handles receiving Discord messages, sending them to LLM providers, and relaying AI-generated responses back to users. It also manages essential features like Discord command handling and reminder scheduling. Building these features was challenging but rewarding.
To develop the Messaging Server efficiently, I used:
- Node.js (Bun actually)
- TypeScript
- MongoDB
- Prisma
- Discord.js
- Various other packages
This server is hosted on a VPS for cost-effectiveness and simplicity. I use pm2
and bun
to manage the application. For updates, I manually build the project, push the index.js
file to the server, and restart it with pm2 restart peky
. No Docker or complex technologies here—just straightforward solutions, and it just works!
Dashboard UI
The Dashboard UI is much simpler to build and primarily involves CRUD operations with some UI controls. The technologies used include:
- Next.js
- MongoDB
- Prisma
- shadcn/ui
- TailwindCSS
Initially, I deployed the UI to Cloudflare Pages, but ran into persistent build errors, specifically Error: The script will never generate a response.
Despite troubleshooting, the issue remained unresolved. After switching to our old friend Vercel, everything worked seamlessly.
Looking Ahead
Creating Peky is just the beginning. The journey ahead involves learning about payment integration, marketing, and operations, as well as building and refining more features. This is just the start, and there's a lot more to come!
Stay tuned for more updates and thank you for reading this!