MCPcopy Index your code
hub / github.com/corn-config/corn

github.com/corn-config/corn @v0.10.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.1 ↗ · + Follow
231 symbols 301 edges 12 files 14 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🌽 Corn

A simple and pain-free configuration language.

Corn has been designed using inspiration from JSON and Nix to produce a language that's easy and intuitive to write, good for config files, and has a feature-set small enough you can learn it in minutes. It was born out of the following frustrations:

  • JSON is not a config language, despite how often people use it as one.
  • TOML is good for flat structures but gets ugly quickly with deeper objects.
  • YAML is far too complex and its whitespace rules make it error-prone.
  • Nix is a full-sized language and not easy to integrate.

Documentation

📖User guide | 📝 Full specification


let {
    $entry = "dist/index.js"
    $author = { name = "John Smith" email = "mail@example.com" }
} in {
    name = "example-package"
    version = "1.0.0"
    main = $entry
    bin.filebrowser = $entry
    private = false

    author = $author
    author.url = "https://example.com"

    contributors = [ $author ]

    scripts.build = "tsc"
    scripts.run = "node dist"

    dependencies = {
        dotenv = "^8.2.0"
        // put the rest of your deps here...
    }

    devDependencies.typescript = "^4.5"

    config.port = 8080
    config.hostname = null
}

Corn is available as libraries for Rust, Go, Lua, and JavaScript (via WASM).\ A CLI and web API are also available.

Editor plugins are available for JetBrains IDEs, VS Code and Neovim.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Class 130
Method 63
Function 24
Enum 13
Interface 1

Languages

Rust100%

Modules by API surface

tests/de_tests.rs75 symbols
benches/serde.rs64 symbols
src/de.rs48 symbols
src/parser.rs19 symbols
cli/src/main.rs7 symbols
cli/src/error.rs6 symbols
src/lib.rs4 symbols
src/wasm.rs3 symbols
src/lua.rs3 symbols
src/error.rs2 symbols

For agents

$ claude mcp add corn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page