Skip to content

Repository files navigation

Ghosted.exe

Ghosted.exe is a Gen-Z style AI-powered reply probability calculator for decoding whether a conversation is likely to get a reply, a response, or a full emotional disappear-a-rama.

What it does

  • Accepts conversation context from a short form interface.
  • Scores the likelihood of a reply with a generated result card.
  • Provides a shareable image export and local history behavior.
  • Stores only anonymous analytics when PostgreSQL is configured.

Stack

  • Next.js App Router
  • React + TypeScript
  • Tailwind CSS
  • shadcn-style local UI components
  • Framer Motion
  • Next.js API routes
  • Prisma ORM + PostgreSQL analytics
  • Ollama/OpenAI-compatible inference endpoint

Getting started

Prerequisites

  • Node.js 20+
  • npm
  • An Ollama-compatible API host, or a public/fallback inference route

Local setup

npm install
cp .env.example .env
npm run prisma:generate
npm run dev

Open the app at http://localhost:3000.

Environment

Copy .env.example to .env and fill the variables.

OLLAMA_BASE_URL="https://ollama.h4sib.pro/v1"
OLLAMA_MODEL="qwen2.5:7b"
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/ghosted?schema=public"

DATABASE_URL is optional for local UI testing. If it is omitted, Ghosted.exe can still analyze conversation inputs and skip analytics writes.

Database

A Prisma schema is present for optional anonymous analytics writes.

npm run prisma:migrate

The database stores these fields only:

  • ghostScore
  • replyProbability
  • selected input options
  • source (ollama or fallback)
  • timestamp

The database never stores conversation text or account records.

Routes

  • / — landing page
  • /analyze — calculator experience
  • /result — result display and local history
  • /api/analyze — Ollama-backed analyze API
  • /api/analytics — aggregate analytics API

Commands

npm run typecheck
npm run lint
npm run build
npm run prisma:generate
npm run prisma:migrate

Deployment

This repository is compatible with Vercel's Next.js hosting model. The Vercel adapter is not special-cased in code, so standard Next.js App Router builds can be deployed directly after seeding environment variables.

Security and privacy

The UI does not send conversation content to analytics. The only persisted result data outside the browser is the analytics payload defined in the Prisma schema.

Contributing

Please read CONTRIBUTING.md before opening an issue or pull request.

Code of conduct

Please follow the standards in CODE_OF_CONDUCT.md.

License

This project is licensed under the MIT License. See LICENSE.

About

Ghosted.exe is a Gen-Z style AI-powered reply probability calculator for decoding whether a conversation is likely to get a reply, a response, or a full emotional disappear-a-rama.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages