TuskLang Logo PNT

TuskLang for
JavaScript

Build intelligent configurations for Node.js applications. Query APIs, cache results, and optimize performance directly from your config files.

npm
Package Manager
2min
Setup Time
100%
Node.js Compatible

Why JavaScript Developers Choose TuskLang

Stop wrestling with static JSON configs. Build configs that work with your Node.js applications.

@

@ Operators for JavaScript

Query APIs, cache results, and execute JavaScript code directly from configuration files using powerful @ operators.

MongoDB

Database Integration

Native MongoDB and SQL support with Mongoose and Prisma integration. Query your database directly from config files.

Smart Caching

Intelligent caching with Redis and memory support. Cache expensive operations and optimize performance automatically.

Express & React Ready

Drop-in integration for Express, React, Next.js, and other JavaScript frameworks. Middleware and hooks included.

Hot Reload

Development-friendly hot reloading. Changes to config files automatically update your Node.js application without restarts.

Jest

Jest Testing

Built-in Jest support with test helpers and mocking utilities for testing configurations and @ operators.

See It in Action

Traditional JSON configs are static objects. TuskLang configs are intelligent, pulling live data and optimizing automatically.

  • ⚡ Native Node.js integration
  • 🔍 Live API queries
  • 🧠 ML-powered optimization
  • 🔥 Hot reload support
  • 📦 NPM package ready
config.tsk
# Smart Node.js Configuration
app_name: "MyNodeApp"
port: @env("PORT", 3000)

# Database with live user count
database {
    host: @env("DB_HOST", "localhost")
    max_connections: @query("SELECT COUNT(*) FROM users") > 1000 ? 100 : 50
}

# API with intelligent caching
api {
    rate_limit: @learn("optimal_rate_limit", 100)
    cache_ttl: @optimize("cache_duration", "5m")
}

# Features based on environment
features: @env("NODE_ENV") === "production" ? 
    ["analytics", "monitoring"] : 
    ["debug", "hot-reload"]

JavaScript Ecosystem Integration

Works seamlessly with your favorite JavaScript tools and frameworks

Express.js

Middleware integration

React

Build-time configuration

Next.js

SSR and SSG support

Node.js

Native ES6+ support

Jest

Testing utilities

Webpack

Bundle optimization

Get Started in Minutes

Install TuskLang for JavaScript and start building intelligent configurations

1 Install via NPM

npm install tusklang

2 Create your first config

# config.tsk
app_name: "MyApp"
port: @env("PORT", 3000)

3 Load in your Node.js app

const TuskLang = require('tusklang');
const config = TuskLang.load('config.tsk');
Complete Guide View Examples