Sign In

design-math

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

design-math - npm Package Compare versions

Comparing version
0.1.3
to
0.1.5
+8
-8
package.json
{
"name": "design-math",
"version": "0.1.3",
"version": "0.1.5",
"description": "Agent-friendly design math CLI for color, typography, and shadow systems.",

@@ -34,11 +34,11 @@ "license": "MIT",

"optionalDependencies": {
"design-math-bin-darwin-arm64": "0.1.3",
"design-math-bin-darwin-x64": "0.1.3",
"design-math-bin-linux-arm64-gnu": "0.1.3",
"design-math-bin-linux-arm64-musl": "0.1.3",
"design-math-bin-linux-x64-gnu": "0.1.3",
"design-math-bin-linux-x64-musl": "0.1.3",
"design-math-bin-win32-x64": "0.1.3"
"design-math-bin-darwin-arm64": "0.1.5",
"design-math-bin-darwin-x64": "0.1.5",
"design-math-bin-linux-arm64-gnu": "0.1.5",
"design-math-bin-linux-arm64-musl": "0.1.5",
"design-math-bin-linux-x64-gnu": "0.1.5",
"design-math-bin-linux-x64-musl": "0.1.5",
"design-math-bin-win32-x64": "0.1.5"
},
"preferUnplugged": true
}

@@ -11,3 +11,3 @@ # design-math

This repo is not just a small color utility. It is a product-shaped workspace built around `design-math-core` as the source of truth for design calculations, with a CLI today and language bindings planned next.
This repo is not just a small color utility. It is a product-shaped workspace built around `design-math-core` as the source of truth for design calculations, with a CLI plus in-repo Node and WASM bindings sharing the same engine.

@@ -40,2 +40,6 @@ ## Why it exists

The CLI crate for argument parsing, formatting, exports, and release distribution.
- `bindings/node`
The `design-math-node` native Node binding package built with `napi-rs`.
- `bindings/wasm`
The `design-math-wasm` fallback package built with `wasm-bindgen`.

@@ -99,4 +103,34 @@ If you are new to the repo, these docs are the best starting points:

- `design-math-core`
The reusable Rust engine that future bindings and integrations should share.
The reusable Rust engine shared by the CLI and language bindings.
- `design-math-node`
The native Node binding package that wraps the core API with a small JS layer.
- `design-math-wasm`
The WASM package that exposes the same API shape for JS runtimes that want a non-native fallback.
## JavaScript bindings
If you want function calls instead of shelling out to the CLI, there are two JS-facing bindings:
- `design-math-wasm`
The easiest integration path for JS and TS consumers. It exposes the shared design-math API without requiring a native Node addon toolchain.
- `design-math-node`
The native Node binding with the same public API shape. It is published as a main npm package plus platform-specific optional dependency packages.
The shared API includes:
- `convertColor`
- `contrastColor`
- `manipulateColor`
- `mixColors`
- `generateColorScale`
- `generateColorHarmony`
- `generatePalette`
- `generateScheme`
- `generateTypeScale`
- `generateFluidScale`
- `generateFluidType`
- `generateShadowSystem`
For integration examples and API notes, see [docs/javascript-bindings.md](docs/javascript-bindings.md).
## Current focus

@@ -114,4 +148,4 @@

- language bindings
- stronger agent-first workflows
- the remaining polish toward 1.0
- possible post-1.0 visual tooling such as a local preview server