@luzzle/core 0.0.244 → 0.0.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -43
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/vite.config.js +1 -0
- package/dist/vite.config.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,44 +1,3 @@
|
|
|
1
|
-
# @luzzle/core
|
|
1
|
+
# @luzzle/core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Luzzle is a specification designed to solve the challenges of managing digital
|
|
6
|
-
records using plain text files instead of proprietary databases or spreadsheets.
|
|
7
|
-
`@luzzle/core` provides the tooling to define, parse, and validate these text
|
|
8
|
-
records ("pieces") and attachments so they can be easily queried, indexed, and
|
|
9
|
-
synced to a database.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Core Concepts 🏗️
|
|
14
|
-
|
|
15
|
-
### 1. Pieces & Schemas
|
|
16
|
-
|
|
17
|
-
The core of the Luzzle spec is the **Piece**: a standard Markdown file with
|
|
18
|
-
structured YAML frontmatter. `@luzzle/core` validates these pieces using
|
|
19
|
-
standard JSON schemas (typically defined in your archive under
|
|
20
|
-
`.luzzle/schemas/`). This gives you uniform, type-safe records without holding
|
|
21
|
-
your data hostage.
|
|
22
|
-
|
|
23
|
-
### 2. Assets & Attachments
|
|
24
|
-
|
|
25
|
-
A digital garden is not just text. `@luzzle/core` defines conventions for how
|
|
26
|
-
non-text media (like images or PDF attachments) are stored within the
|
|
27
|
-
`.assets/` directory and referenced in a piece's metadata.
|
|
28
|
-
|
|
29
|
-
### 3. File Naming Convention
|
|
30
|
-
|
|
31
|
-
To associate a piece with its schema, Luzzle relies on a specific file naming
|
|
32
|
-
convention: `name.[piece-type].md` (e.g., `dune.books.md`). This naming
|
|
33
|
-
convention solves the problem of quickly identifying a piece's type to map it
|
|
34
|
-
to the correct validator. _Note: This convention might be evolved or removed
|
|
35
|
-
in the future, but remains the current way piece types are discovered._
|
|
36
|
-
|
|
37
|
-
### 4. Simple Filesystem Backend
|
|
38
|
-
|
|
39
|
-
To adhere to the Unix philosophy, `@luzzle/core` **only** implements a simple
|
|
40
|
-
local filesystem backend. It reads Markdown files, validates frontmatter, and
|
|
41
|
-
updates a derivative SQLite index for query performance.
|
|
42
|
-
|
|
43
|
-
Upstream apps (such as `@luzzle/web` or custom deploy scripts) are responsible
|
|
44
|
-
for handling remote storage backends (like WebDAV or cloud storage syncing).
|
|
3
|
+
Archive parsing, validation and indexing. [Archive guide](../../docs/archive.md).
|