App Config.json Documentation
Comprehensive guide for configuration management, SDK usage, API integration, and best practices.
Introduction
App Config.json is a centralized, zero-downtime configuration management platform designed for modern microservices and monolithic applications. It enables teams to define, version, sync, and deploy configuration across environments using a familiar JSON structure.
Ensure you have an active account, an API key, and Node.js 18+ (or equivalent runtime for your SDK). All examples use v3.0.0 of the platform.
Installation
Install the official SDK via your preferred package manager:
For other languages (Python, Go, Rust, Java), refer to the Language-Specific SDKs section.
Quick Start
Initialize the client and load your configuration in under 10 lines:
Configuration Schema
All configurations must adhere to the following JSON structure. The platform validates schemas automatically.
| Key | Type | Required | Description |
|---|---|---|---|
app.name | string | Yes | Unique identifier for your application |
features.* | any | No | Feature flags or runtime toggles |
endpoints.* | string (URL) | No | Service endpoints and URIs |
secrets.* | string (encrypted) | No | Auto-resolved secrets from vault |
Environment Management
App Config.json supports environment-specific overrides without duplicating entire files. Use the extends directive to layer configurations:
development, staging, production, custom_*. Environment names are case-sensitive.
SDK Methods & Events
The SDK exposes a promise-based API with real-time event listeners.
| Method | Returns | Description |
|---|---|---|
load() | Promise<void> | Fetches and caches the latest configuration |
get(path) | any | Retrieves a value using dot notation (e.g., features.cache_ttl) |
subscribe(fn) | UnsubscribeFn | Registers a listener for live config changes |
rollback(version) | Promise<void> | Reverts to a specific configuration version |
validate() | Promise<boolean> | Runs schema validation against current payload |
REST API
All SDK operations are backed by a versioned REST API. Base URL: https://api.appconfig.json/v3
Versioning & Rollback
Every configuration push creates an immutable version. You can rollback via SDK or CLI:
Free tier supports 10 rollbacks/month. Pro/Enterprise have unlimited rollbacks with instant propagation.
Troubleshooting
Common Errors
- 401 Unauthorized: Invalid or expired API key. Rotate via dashboard.
- 422 Validation Error: Schema mismatch. Run
ac validatelocally. - Sync Timeout: Network latency or firewall blocking WebSocket connection. Ensure port 443 is open.
Debug Mode
Enable verbose logging by setting the environment variable:
Need help? Contact Support or join our Discord Community.