Twine

Nexus AI - Next.js, Nuxt.js, Angular (AI Chat)

Dane C Cameron
Published

0
  • Project creator

Nexus AI - FFind Frontend Engineer Assessment

[https://www.twine.net/signin

This repository contains three distinct implementations of a modern Generative AI chat interface, built to demonstrate proficiency across the three major frontend frameworks: Next.js, Nuxt.js, and Angular. The project validates clean UI design, direct streaming API integrations, dynamic rendering without reloads, extensive state handling (skeletons/indicators), and semantic component architectures.

🚀 Live Deployed Environments

Visitors can easily explore and interact with the deployed applications through the links below:

Note on Architecture: The local and deployed Angular applications, as well as the Nuxt.js app, are currently utilizing the deployed Next.js project’s edge function API (`https://www.twine.net/signin via proxy configurations. This guarantees stable, synchronized backend behavior across all frameworks.

Project Structure

  • /nextjs-app: Primary Implementation using Next.js (App Router), TypeScript, Tailwind CSS, and Jest.
  • /nuxtjs-app: Nuxt 3 implementation using Vue 3 Composition API.
  • /angular-app: Angular 19+ implementation using Standalone Components and RxJS.

Features Across All Versions

  • OpenAI Integration: Powered by OpenAI’s API returning token-by-token readable streams.
  • Rich UI/UX: Custom design system with modern message alignments, smooth animations, and responsive layout.
  • Persistent History: Chat sessions are saved dynamically to state and persist across the active flow to keep prompts visible.
  • Markdown Support: AI responses render code snippets, tables, and formatted text directly with inline copying mechanisms.
  • Robust State Management: Handled timeout handling, loading skeletons, typing indicators, and empty prompt fallbacks.
  • Session Management: Distinct “Clear Chat” functionalities integrated to quickly wipe current interaction scopes.