Unix is a modern, distraction-free writing environment enhanced by a context-aware AI assistant. Built for novelists and creative writers, it seamlessly integrates advanced AI tools directly into the writing workflow.
- Context Aware: The AI knows about your current file, selected text, and other project files.
- Smart Tools: can
write,update,create, andrenamefiles directly. - Persistent History: Chat history is saved to the database, so you never lose a conversation.
- Auto-Renaming: When the AI writes a new chapter or article for you, it automatically renames "Untitled Page" to a relevant title.
- Style Guide: Create a
.unixrcfile to enforce specific writing styles, character voices, or world-building rules. The AI will adhere to these rules in every interaction.
- Framework: Next.js 16 (Turbopack)
- Language: TypeScript
- Styling: Tailwind CSS
- Database: Supabase (PostgreSQL + Vector)
- AI Model: Google Gemini 2.5 Flash
- State Management: Zustand (via
editor-store)
-
Clone the repository
git clone <your-repo-url> cd unix
-
Install dependencies
npm install # or pnpm install -
Environment Setup Create a
.envfile with the following keys:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key GEMINI_API_KEY=your_gemini_api_key
-
Database Migration Run the SQL migrations in your Supabase dashboard (found in
migrations/orchat_history.sql). -
Run Development Server
npm run dev
app/: Next.js App Router pages and API routes.components/: UI components (Editor, Sidebar, etc.).lib/: Utilities and Supabase client configurations.migrations/: SQL files for setting up the database schema.