YunYouJun/ai-sfc

AI 春联 / Spring Festival Couplets

What it solves

It provides a way to generate traditional Chinese Spring Festival couplets (Chunlian) using AI, allowing users to create couplets with specific layout options (right-to-left or left-to-right) for the horizontal scroll and vertical banners.

How it works

The project uses a Nuxt 3 frontend and integrates with OpenAI-compatible model interfaces. It offers two paths for generation: unauthenticated users can provide their own API keys in settings for direct browser-to-model communication, while authenticated users use a centralized runtime that handles billing and model calls via the YunLeFun SSO system.

Who it’s for

Users looking to create AI-generated Spring Festival couplets and developers who want to deploy similar AI-powered content generation tools on edge functions.

Highlights

  • Flexible API Integration: Supports any OpenAI-compatible API, including DeepSeek.
  • Dual Access Modes: Supports both local API key usage and a managed service account system.
  • Edge Deployment: Optimized for deployment on EdgeOne Pages using V8 edge functions.
  • SSO Integration: Implements a secure cross-site SSO system for user authentication and authentication codes.

Related

  • Project
  • Project
  • Project
  • Project
  • Project