---
title: "Deploy mos.ai.c"
description: "Your second brain on Railway"
category: "Other"
url: https://railway.com/deploy/mosaic
---

# Deploy mos.ai.c

Your second brain on Railway

**[Deploy mos.ai.c on Railway](https://railway.com/template/mosaic)**

- **Creator:** mumunha's Projects
- **Category:** Other
- **Total deploys:** 8

## Template content

### pgvector

- **Image:** pgvector/pgvector:pg17
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

### mos.ai.c-app

- **Source:** mumunha/mos.ai.c-app
- **Public domain:** Yes

## Documentation

# Deploy and Host MOS•AI•C with Railway

MOS•AI•C (Memory-Organization-Synthesis AI Companion) is an AI-powered knowledge management system that transforms how you organize, search, and interact with your information. Built with Next.js 14, it features intelligent note processing, semantic search, task extraction, and interactive chat capabilities.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.com/deploy/gT34ln?referralCode=YC-2HP)

## About Hosting MOS•AI•C

Hosting MOS•AI•C requires a robust infrastructure stack including a Next.js application server, PostgreSQL database with vector extensions, and integration with OpenAI's API services. This template provides a complete deployment solution with automated database setup, AI processing pipelines, and optional Telegram bot integration. The application automatically initializes its schema, processes content with embeddings, and provides real-time search capabilities across your knowledge base.

## Common Use Cases

- **Personal Knowledge Management**: Organize research, notes, and ideas with AI-powered insights
- **Content Research Hub**: Aggregate and analyze information with semantic search capabilities  
- **Task and Project Management**: Extract actionable items from notes with automated scheduling
- **Team Knowledge Base**: Collaborative information sharing with intelligent organization
- **Research Assistant**: AI-powered content analysis and relationship discovery

## Dependencies for MOS•AI•C Hosting

- **Next.js 14**: Modern React framework with App Router and TypeScript
- **PostgreSQL with pgvector**: Vector database for semantic search capabilities
- **OpenAI API**: GPT models for content analysis and text embeddings
- **Tailwind CSS + shadcn/ui**: Modern styling framework and component library
- **JWT Authentication**: Secure user session management with bcrypt password hashing

### Deployment Dependencies

- [OpenAI API Key](https://platform.openai.com/api-keys) - Required for AI features and embeddings
- [Telegram Bot Token](https://t.me/botfather) - Optional for chat integration

### Implementation Details

The application uses a hybrid search approach combining vector embeddings with full-text search:

```typescript
// Semantic search with OpenAI embeddings
const embedding = await openai.embeddings.create({
  model: "text-embedding-3-small",
  input: query
});

// PostgreSQL vector similarity + full-text search
const results = await query(`
  SELECT *, 
    1 - (embedding &lt;=&gt; $1) as similarity,
    ts_rank(search_vector, plainto_tsquery($2)) as text_rank
  FROM chunks 
  WHERE embedding &lt;=&gt; $1 &lt; 0.8 
  ORDER BY (similarity * 0.7 + text_rank * 0.3) DESC
`, [embedding.data[0].embedding, searchQuery]);
```

## Why Deploy MOS•AI•C on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying MOS•AI•C on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/mosaic
