Inspiration
I've been playing a lot of Scrabble lately and found myself googling for words, if they are part of the Scrabble dictionary, or what words I can make given the letters I have.
What It Does
It's a custom GPT called Scrabble Buddy that can talk about Scrabble, it has access to the official Scrabble dictionary and can check if a word is a valid word, or if you can make any words with the current letters you have. It can also give you definitions for those words as well.
How I Built It
I made a REST API that has two functions: check if a word is in the Scrabble dictionary, and check what words can be made with your letters. Then created a custom GPT that can use the API to avoid hallucinations. The custom GPT is also ChatGPT so it has the normal ChatGPT capabilities as well.
Challenges We Ran Into
NextJS 14 has revamped the routing structure and that threw me off because I hadn't worked with Next since pre-routing changes.
Accomplishments That We're Proud Of
I created a database to store the dictionary and an API that can query the database and connected them all together to the custom GPT, I'm pretty proud of this.
What We Learned
NextJS 14's new app folder structure and the revamped API routing pattern that it has now. Previously it was very different to create an API and define routes for it with NextJS. Aside from that this was really the first time I setup an actual database, queried it with an API that I setup and hosted them publicly on a cloud provider. I usually just do frontend work and backend is not my specialty. Overall I learned a lot from putting this together.
What's Next for Scrabble Buddy
Offline home assistant LLM based on an open sourced model, that way I don't have to lift a finger to get the answers I need!
Built With
- chatgpt
- javascript
- nextjs
- postgresql
- typescript
- vercel
Log in or sign up for Devpost to join the conversation.