11# Configliere
22
3- Functional configuration parser that validates all program inputs (config files,
4- environment variables, CLI options) ahead of time using a single schema based on
5- the [ Standard Schema] ( https://standardschema.dev ) spec.
3+ Configuration for programs.
64
7- ## Architecture
5+ ## Current state
86
9- Configliere is a parser-combinator library. Small parsers compose into larger
10- ones. Every parser implements the ` Parser ` interface from ` lib/types.ts ` and
11- returns an ` Increment ` — either ` Done|Fail ` for single-step parsers or
12- ` Next|Fail ` for multi-step (phased) parsers.
13-
14- ### Key design concepts
15-
16- - ** Source tracking** : Every parsed value carries metadata about where it came
7+ Configliere is undergoing a ground-up rebuild. No implementation architecture is
8+ established yet. Design from the bottom up with small API sketches, exact type
9+ expectations, and tests before implementation. Do not carry architectural
10+ assumptions forward from pre-rebuild history.
1711
1812## Conventions
1913
@@ -30,20 +24,14 @@ Strongly prefer one-word variable and function names (e.g. `dir` not `tmpDir`,
3024### Testing
3125
3226- Framework: ` @std/testing/bdd ` (` describe ` /` it ` ) with ` @std/expect `
33- - Schema library in tests: ` arktype ` (via ` type() ` )
34- - Test helpers in ` test/test-helpers.ts ` : ` parseOk() ` and ` parseNotOk() ` wrap
35- ` parseSync ` with assertions
36- - Tests live in ` test/ ` and mirror ` lib/ ` module names (e.g.
37- ` test/field.test.ts ` )
27+ - Tests live in ` test/ ` and mirror the source layout.
3828
3929### Runtime and tooling
4030
4131- ** Runtime** : Deno
4232- ** Registry** : JSR (` @frontside/configliere ` )
43- - ** Linting** : ` deno lint ` (excludes ` prefer-const ` and ` require-yield ` )
44- - ** Testing** : ` deno test `
45- - ** Examples** : Files in ` examples/ ` must compile (` deno check ` ) and run
46- (` deno run ` ) without errors
33+ - ** Linting** : ` deno lint ` (excludes ` prefer-const ` )
34+ - ** Testing** : ` deno task test `
4735- ** Build** : ` deno task build:npm ` (dnt) and ` deno task build:jsr `
4836
4937### Dependencies
0 commit comments