mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-04 00:47:01 +01:00
Single-user diary served as one Rust binary with the Svelte frontend embedded. - axum 0.8 + SQLite (sqlx), migrations run at startup - stateless HMAC session cookie; credentials from .env, compared in constant time - FTS5 full-text search, user input rewritten into quoted prefix terms - media uploads linked to entries by scanning bodies for /api/media/<id>, which scopes share-token media access and entry deletion - unguessable share links (192-bit token) serving a public read-only page - vim keybindings via CodeMirror plus a modal browse layer and : command line; disabled on touch devices
31 lines
775 B
JSON
31 lines
775 B
JSON
{
|
|
"name": "narl-diary-web",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
"@tsconfig/svelte": "^5.0.4",
|
|
"svelte": "^5.19.0",
|
|
"svelte-check": "^4.1.4",
|
|
"typescript": "^5.7.3",
|
|
"vite": "^6.0.11"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/commands": "^6.7.1",
|
|
"@codemirror/lang-markdown": "^6.3.1",
|
|
"@codemirror/language": "^6.10.8",
|
|
"@codemirror/state": "^6.5.1",
|
|
"@codemirror/view": "^6.36.2",
|
|
"@lezer/highlight": "^1.2.1",
|
|
"@replit/codemirror-vim": "^6.2.1",
|
|
"dompurify": "^3.2.4",
|
|
"marked": "^15.0.6"
|
|
}
|
|
}
|