ThreatLens AI is a Next.js application that provides advanced threat intelligence and analysis capabilities. Built with modern web technologies and best practices for security analysis.
- Modern Next.js App Router architecture
- Authentication with NextAuth.js
- Database integration with Prisma
- Real-time data fetching with SWR
- DOCX export capabilities
- Responsive UI with Tailwind CSS
- Markdown rendering support
- Toast notifications for user feedback
- Next.js 15
- React 19
- TypeScript
- Prisma (Database ORM)
- Tailwind CSS
- NextAuth.js
- SWR (Data fetching)
- Export libraries (docx)
- Node.js v14 or later
- npm or Yarn
- PostgreSQL (or your preferred database)
git clone https://github.com/neelshha/threatlens-ai.git
cd threatlens-ai
npm install
Create a .env
file in the root directory with the following variables:
DATABASE_URL="your_database_connection_string"
NEXTAUTH_SECRET="your_nextauth_secret"
NEXTAUTH_URL="http://localhost:3000"
npx prisma generate
npx prisma db push
npm run dev
Open http://localhost:3000 in your browser to see the result.
npm run dev # Start development server
npm run build # Generate Prisma client and build for production
npm start # Start production server
npm run lint # Run code linter
threatlens-ai/
├── src/ # Source code directory
├── public/ # Static assets
├── prisma/ # Database schema and migrations
├── types/ # TypeScript type definitions
├── components/ # Reusable UI components
├── next.config.ts # Next.js configuration
├── tailwind.config.js # Tailwind CSS configuration
└── package.json # Project dependencies and scripts
The project is configured for deployment on Vercel:
- Push your code to a Git repository
- Import the repository in Vercel
- Configure environment variables
- Deploy and enjoy automatic previews
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.