All Projects → jkcfg → Jk

jkcfg / Jk

Licence: apache-2.0
Configuration as Code with ECMAScript

Programming Languages

go
31211 projects - #10 most used programming language
ecmascript
72 projects

Projects that are alternatives of or similar to Jk

Resticprofile
Configuration profiles for restic backup
Stars: ✭ 48 (-85.09%)
Mutual labels:  hcl, json, yaml, configuration
Dasel
Query, update and convert data structures from the command line. Comparable to jq/yq but supports JSON, TOML, YAML, XML and CSV with zero runtime dependencies.
Stars: ✭ 759 (+135.71%)
Mutual labels:  json, yaml, configuration
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (-73.29%)
Mutual labels:  yaml, configuration, hcl
Fig
A minimalist Go configuration library
Stars: ✭ 142 (-55.9%)
Mutual labels:  json, yaml, configuration
Config
JSON or YAML configuration wrapper with convenient access methods.
Stars: ✭ 237 (-26.4%)
Mutual labels:  json, yaml, configuration
Configurate
A simple configuration library for Java applications providing a node structure, a variety of formats, and tools for transformation
Stars: ✭ 148 (-54.04%)
Mutual labels:  json, yaml, configuration
Night Config
Powerful java configuration library for toml, yaml, hocon, json and in-memory configurations
Stars: ✭ 93 (-71.12%)
Mutual labels:  json, yaml, configuration
Simple Settings
A simple way to manage your project settings.
Stars: ✭ 165 (-48.76%)
Mutual labels:  json, yaml, configuration
Konf
A type-safe cascading configuration library for Kotlin/Java/Android, supporting most configuration formats
Stars: ✭ 225 (-30.12%)
Mutual labels:  json, yaml, configuration
Config Lint
Command line tool to validate configuration files
Stars: ✭ 118 (-63.35%)
Mutual labels:  hcl, json, yaml
Config
📝 Go config manage(load,get,set). support JSON, YAML, TOML, INI, HCL, ENV and Flags. Multi file load, data override merge, parse ENV var. Go应用配置加载管理,支持多种格式,多文件加载,远程文件加载,支持数据合并,解析环境变量名
Stars: ✭ 225 (-30.12%)
Mutual labels:  hcl, json, yaml
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-93.79%)
Mutual labels:  yaml, configuration
transfer
Converts from one encoding to another. Supported formats HCL ⇄ JSON ⇄ YAML⇄TOML⇄XML⇄plist⇄pickle⇄properties ...
Stars: ✭ 70 (-78.26%)
Mutual labels:  yaml, hcl
stein
A linter for config files with a customizable rule set
Stars: ✭ 92 (-71.43%)
Mutual labels:  yaml, hcl
yaask
Make your yaml configurable with interactive configurations!
Stars: ✭ 15 (-95.34%)
Mutual labels:  yaml, configuration
goodconf
Transparently load variables from environment or JSON/YAML file.
Stars: ✭ 80 (-75.16%)
Mutual labels:  yaml, configuration
refmt
Reformat HCL ⇄ JSON ⇄ YAML.
Stars: ✭ 19 (-94.1%)
Mutual labels:  yaml, hcl
config
Simple configuration management for PHP
Stars: ✭ 15 (-95.34%)
Mutual labels:  yaml, configuration
Pyhcl
HCL is a configuration language. pyhcl is a python parser for it.
Stars: ✭ 260 (-19.25%)
Mutual labels:  hcl, configuration
cfg-rs
A Configuration Library for Rust Applications
Stars: ✭ 18 (-94.41%)
Mutual labels:  yaml, configuration

jk

Build Status

Caveat: jk is pre-1.0, and as such, features, commands, and APIs inevitably will change.

Releases within a minor version should be stable; we try to signal breaking changes ahead of time in ./docs/deprecations.md.

jk - configuration as code

jk is a data templating tool designed to help writing structured configuration files.

The main idea behind jk is to use a general purpose language for this task. They offer mature tooling, great runtimes, a well established ecosystem and many learning resources. jk uses Javascript and a runtime tailored for configuration.

Quick start

A good way to start with jk is to read our introduction tutorial. For more context head to our introduction blog post!

More complex examples

Architecture & design

v8

jk itself is a Javascript runtime written in Go and embedding v8. It uses Ryan Dahl's v8worker2 to embed v8 and flatbuffers for the v8 ⟷ Go communication.

Hermeticity

While a general purpose language is great, configuration code can be made more maintainable by restricting what it can do. A nice property jk has to offer is being hermetic: if you clone a git repository and execute a jk script, the resulting files should be the same on any machine. To give concrete examples, this means the jk standard library doesn't support environment variables nor has any networking capability.

Library support

jk provides an unopinionated data templating layer. On top of the jk runtime, libraries provide APIs for users to write configuration.

Roadmap

This project is still in early stages but future (exciting!) plans include:

  • Reach the state of having Kubernetes examples working and well documented.
  • Work on hermeticity. (eg. #110, #44, topic/hermeticity).
  • Native typescript support (#54).
  • HCL support (#94).

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue with the owners of this repository before making a change.

Setup

The jk executable itself is written in Go, but the JavaScript part of this project requires NodeJS.

Prerequisites:

  • go 1.11.4 or later (modules support)
  • nodejs, npm
  • make
  • pkg-config

First off, clone this repository:

$ git clone https://github.com/jkcfg/jk.git
# or with hub:
$ hub clone jkcfg/jk

$ cd ./jk

Then pull most of the dependencies using the Makefile:

$ make dep

jk is linked against v8worker2. As building V8 takes ~30 minutes, prebuilt versions are provided for linux/amd64 and darwin/amd64. This also includes flatc from flatbuffers:

# download the prebuilt artifacts from GitHub:
$ git clone https://github.com/jkcfg/prebuilt.git
$ cd ./prebuilt

# these following put files in /usr/local, so you may need sudo

# x64 Linux:
$ make install-linux-amd64

# x64 macOS:
$ make install-darwin-amd64

Building

After setting up the environment, the jk binary can be built:

$ make jk
$ ./jk --help # confirm it works

Additionally, on Linux, it's possible to use a docker container to build the project instead of installing the prebuilt libraries and binaries:

$ ./run-in-docker.sh make dep jk
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].