Inspiration
Nightmares can repeat night after night. The Kiroween theme gave me the chance to build something that tries to help people who suffer from them, offering possible resolutions and gently helping the mind reframe the problem
What it does
First, you write down your nightmare. The app generates an image that depicts it, then builds an interactive story and offers you choices along the way. Based on your decisions, it guides the story toward a healing ending, closing with a second image that illustrates that new ending. When you finish, you can share your story anonymously with others. It draws on Imagery Rehearsal Therapy (IRT), but it is not a medical treatment or a substitute for professional care.
How we built it
The app is built with Kiro. The frontend is an Angular app and the backend is a serverless stack on AWS. The core piece is Amazon Bedrock, used to interact with different models for both text and images. Amazon Polly adds voice narration to the story. Other services include S3, DynamoDB, API Gateway, Lambda, CloudFront, Parameter Store and AWS CDK.
Challenges we ran into
The main challenge is guiding the user correctly through Imagery Rehearsal Therapy (IRT) while keeping the experience safe with solid guardrails around user input. I plan to review the approach with physicians to validate the responses.
Accomplishments that we're proud of
Building a fun app that fits the Kiroween theme while trying to make it genuinely useful to people.
What we learned
Working with Kiro and AWS together gives you knowledge you can carry over to many other projects.
What's next for Nightmare resolver
I want to offer the app to the psychology department at the hospital where I work, to improve it and help patients.
Built With
- amazon
- amazon-bedrock
- amazon-cloudfront-cdn
- amazon-dynamodb
- amazon-polly
- amazon-web-services
- angular.js
- cdk
- python