Skip to content

Commit 3d9b348

Browse files
authored
Merge pull request #14 from muhammad-fiaz/add-frontend
add initial frontend
2 parents 5c209db + f74775e commit 3d9b348

111 files changed

Lines changed: 20532 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# Server Settings
1+
# ============================================
2+
# OpenMemory - Environment Configuration
3+
# ============================================
4+
5+
# --------------------------------------------
6+
# Backend Server Settings
7+
# --------------------------------------------
28
OM_PORT=8080
39
OM_API_KEY=your-secret-api-key-here
410
OM_MODE=standard # standard | langgraph
511

12+
# --------------------------------------------
613
# Metadata Store
14+
# --------------------------------------------
715
# sqlite (default) | postgres
816
OM_METADATA_BACKEND=sqlite
917
OM_DB_PATH=./data/openmemory.sqlite
@@ -18,15 +26,19 @@ OM_PG_SCHEMA=public
1826
OM_PG_TABLE=openmemory_memories
1927
OM_PG_SSL=disable # disable | require
2028

29+
# --------------------------------------------
2130
# Vector Store Backend
31+
# --------------------------------------------
2232
# sqlite (default) | pgvector | weaviate
2333
OM_VECTOR_BACKEND=sqlite
2434
OM_VECTOR_TABLE=openmemory_vectors
2535
OM_WEAVIATE_URL=
2636
OM_WEAVIATE_API_KEY=
2737
OM_WEAVIATE_CLASS=OpenMemory
2838

39+
# --------------------------------------------
2940
# Embeddings Configuration
41+
# --------------------------------------------
3042
# Available providers: openai, gemini, ollama, local, synthetic
3143
OM_EMBEDDINGS=openai
3244
OM_VEC_DIM=1536
@@ -42,10 +54,13 @@ OM_ADV_EMBED_PARALLEL=false
4254
# Delay between embeddings in milliseconds
4355
OM_EMBED_DELAY_MS=200
4456

57+
# --------------------------------------------
58+
# Embedding Provider API Keys
59+
# --------------------------------------------
4560
# OpenAI Embeddings
4661
OPENAI_API_KEY=your-openai-api-key-here
4762

48-
# Google Gemini Embeddings
63+
# Google Gemini Embeddings
4964
GEMINI_API_KEY=your-gemini-api-key-here
5065

5166
# Ollama Local Embeddings
@@ -54,14 +69,48 @@ OLLAMA_URL=http://localhost:11434
5469
# Local Model Path (for custom embedding models)
5570
LOCAL_MODEL_PATH=/path/to/your/local/model
5671

57-
# Memory System Settings
72+
# --------------------------------------------
73+
# Memory System Settings
74+
# --------------------------------------------
5875
OM_MIN_SCORE=0.3
5976
OM_DECAY_LAMBDA=0.02
6077

6178
# Brain Sector Configuration (auto-classified, but you can override)
6279
# Sectors: episodic, semantic, procedural, emotional, reflective
6380

81+
# --------------------------------------------
6482
# LangGraph Integration Mode (LGM)
83+
# --------------------------------------------
6584
OM_LG_NAMESPACE=default
6685
OM_LG_MAX_CONTEXT=50
6786
OM_LG_REFLECTIVE=true
87+
88+
# ============================================
89+
# Frontend Dashboard Settings
90+
# ============================================
91+
92+
# Dashboard API URL (connects to backend)
93+
VITE_DASHBOARD_API=http://localhost:3001/api
94+
VITE_BACKEND_API=http://localhost:8080
95+
96+
# Dashboard Server Port
97+
DASHBOARD_PORT=3001
98+
99+
# --------------------------------------------
100+
# Authentication Settings
101+
# --------------------------------------------
102+
# Set to 'true' to enable authentication, 'false' to disable
103+
VITE_AUTH_ENABLED=false
104+
105+
# Better Auth Configuration (only needed if auth is enabled)
106+
# Generate a secure random string for BETTER_AUTH_SECRET
107+
# You can use: openssl rand -base64 32
108+
BETTER_AUTH_SECRET=your-secret-key-here
109+
BETTER_AUTH_URL=http://localhost:3001
110+
111+
# --------------------------------------------
112+
# Real-time Updates
113+
# --------------------------------------------
114+
# Auto-refresh interval in milliseconds (default: 5000ms = 5 seconds)
115+
VITE_AUTO_REFRESH_INTERVAL=5000
116+

bun.lock

Lines changed: 1668 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Database
16+
*.db
17+
*.db-journal
18+
*.db-shm
19+
*.db-wal
20+
prisma/*.db
21+
prisma/*.db-journal
22+
23+
# Environment
24+
.env
25+
.env.local
26+
.env.production
27+
.env.development
28+
29+
# Editor directories and files
30+
.vscode/*
31+
!.vscode/extensions.json
32+
.idea
33+
.DS_Store
34+
*.suo
35+
*.ntvs*
36+
*.njsproj
37+
*.sln
38+
*.sw?

frontend/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

frontend/.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

frontend/bun.lock

Lines changed: 882 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/App.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

frontend/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
import { defineConfig, globalIgnores } from "eslint/config";
7+
8+
export default defineConfig([
9+
globalIgnores(["dist"]),
10+
{
11+
files: ["**/*.{ts,tsx}"],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs["recommended-latest"],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
]);

frontend/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>OpenMemory</title>
8+
<link href="/src/index.css" rel="stylesheet" />
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)