Synaplan
Open-source AI platform for companies: self-hosted AI agents, GDPR-compliant chatbot widget, RAG knowledge base, WhatsApp and Outlook AI, MCP, multi-model routing. Docker, Kubernetes or hosted in Germ
Mesleki ve Teknik Anadolu Lisesi için koordinatörlük yönetim sistemi
Translation pending
BusinessTypeScript · JavaScriptGitHub @EngindalgaMakuOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗✅ SİSTEM TAMAMEN HAZIR VE ÇALIŞIR DURUMDA!
Bu proje, eğitim kurumlarının dekont doğruluğunu ve güvenilirligini kontrol etmek için tamamen ücretsiz OCR (Optical Character Recognition) ve gelişmiş kural tabanlı AI analiz sistemini içerir.
✅ Tesseract.js ile Türkçe OCR entegrasyonu ✅ Gelişmiş kural tabanlı AI analiz sistemi (OpenAI gerekmez!) ✅ Güvenlik sistemi (rate limiting, dosya doğrulama, audit logging) ✅ Admin panel entegrasyonu (tekil ve toplu analiz) ✅ TypeScript tam uyumluluğu ✅ Next.js 15 production build başarılı ✅ Responsive tasarım (desktop + mobile) ✅ Comprehensive testing ve error handling
src/
├── lib/
│ ├── ocr-service.ts # OCR işleme servisi
│ ├── ai-analysis-service.ts # AI analiz servisi
│ ├── security-validation.ts # Güvenlik doğrulama
│ └── security-config.ts # Güvenlik konfigürasyonu
├── app/
│ ├── api/admin/dekontlar/
│ │ ├── [id]/analyze/ # Tekil analiz endpoint
│ │ └── analyze/batch/ # Toplu analiz endpoint
│ └── admin/dekontlar/
│ └── page.tsx # Admin dekont sayfası
├── middleware/
│ └── security-middleware.ts # Global güvenlik middleware
└── __tests__/
└── security-validation.test.ts # Güvenlik testleri
npm install tesseract.js sharp pdf-to-png-converter
npm install --save-dev jest @types/jest ts-jest @testing-library/jest-dom
Not: OpenAI veya başka bir ücretli API gerekmez! Sistem tamamen kural tabanlı çalışır.
.env dosyasını oluşturun:
# OCR ve AI Analiz Sistemi - Tamamen Ücretsiz!
# Bu sistem kural tabanlı AI kullanır, dış API gerektirmez
# Güvenlik ayarları
ANALYSIS_RATE_LIMIT_PER_HOUR=50
BATCH_ANALYSIS_RATE_LIMIT_PER_HOUR=10
MAX_FILE_SIZE_MB=10
MAX_BATCH_SIZE=20
# OCR ayarları
OCR_MIN_CONFIDENCE=60
OCR_MAX_TEXT_LENGTH=50000
# Kural tabanlı AI ayarları
AI_MIN_RELIABILITY=0.3
AI_MAX_FORGERY_RISK=0.7
# Audit logging
SECURITY_AUDIT_ENABLED=true
SECURITY_LOG_LEVEL=INFO
npm run prisma:migrate
// API Endpoint: POST /api/admin/dekontlar/{id}/analyze
const response = await fetch(`/api/admin/dekontlar/${dekontId}/analyze`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
});
const result = await response.json();
// API Endpoint: POST /api/admin/dekontlar/analyze/batch
const response = await fetch('/api/admin/dekontlar/analyze/batch', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
},
body: JSON.stringify({
dekontIds: ['id1', 'id2', 'id3']
})
});
const results = await response.json();
{
"ocrAnalysisResult": {
"extractedText": "Dekont metni...",
"confidence": 85.5,
"language": "tur",
"processingTime": 2.3,
"extractedData": {
"tutar": "150.00",
"tarih": "2024-01-15",
"aciklama": "Yemek masrafı"
}
}
}
{
"aiAnalysisResult": {
"reliabilityScore": 0.85,
"forgeryRisk": 0.15,
"authenticity": "HIGH",
"dataConsistency": 0.92,
"findings": [
"Tarih formatı doğru",
"Tutar sayısal olarak geçerli",
"Açıklama makul görünüyor"
],
"recommendations": [
"Dekont güvenilir görünüyor",
"Ek kontrol gerekmiyor"
]
}
}
| İşlem | Limit | Süre |
|---|---|---|
| Tekil Analiz | 50 | 1 saat |
| Toplu Analiz | 10 | 1 saat |
| Başarısız Deneme | 20 | 1 saat |
npm run test:security
npm test
npm run test:coverage
| Kod | Açıklama |
|---|---|
| 400 | Geçersiz istek |
| 401 | Yetkisiz erişim |
| 403 | Yetersiz izin |
| 429 | Rate limit aşımı |
| 413 | Dosya çok büyük |
| 422 | OCR işleme hatası |
| 500 | Sistem hatası |
{
"timestamp": "2024-01-01T10:00:00.000Z",
"userId": "user-id",
"action": "SUCCESSFUL_DOCUMENT_ANALYSIS",
"details": {
"dekontId": "dekont-id",
"reliabilityScore": 85,
"ip": "192.168.1.1",
"userAgent": "Mozilla/5.0..."
},
"severity": "INFO"
}
Sistem, farklı güvenlik seviyelerine göre konfigüre edilebilir:
// Hızlı işleme için
OCR_MIN_CONFIDENCE=50
OCR_WORKER_POOL_SIZE=3
// Kaliteli sonuç için
OCR_MIN_CONFIDENCE=80
OCR_WORKER_POOL_SIZE=1
/api/admin/dekontlar/{id}/analyzeTekil dekont analizi
Headers:
Authorization: Bearer {token}
Content-Type: application/json
Response:
{
"success": true,
"data": {
"dekontId": "uuid",
"ocrAnalysisResult": {...},
"aiAnalysisResult": {...},
"reliabilityScore": 85,
"isAnalyzed": true,
"analyzedAt": "2024-01-01T10:00:00Z"
}
}
/api/admin/dekontlar/analyze/batchToplu dekont analizi
Body:
{
"dekontIds": ["uuid1", "uuid2", "uuid3"]
}
Response:
{
"success": true,
"data": {
"results": [...],
"summary": {
"total": 3,
"successful": 2,
"failed": 1,
"averageReliability": 78.5
}
}
}
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Bu proje MIT lisansı altında lisanslanmıştır.
Sorunlar veya sorular için:
Son Güncelleme: 2024-01-01
Versiyon: 1.0.0
Yazarlar: Sistem Geliştirici