# Water-Melon/Melon

A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).

Repository: https://github.com/Water-Melon/Melon
Canonical: https://ross.abutalabs.com/products/melon
Homepage: http://doc.melonc.io
Language: C
License: BSD-3-Clause
License Family: permissive
Topics: c, framework, thread-pool, multithreading, multiprocessing, interpreter, algorithms, data-structures, reedsolomon, regular-expression, json, http, cipher-algorithms, memory-pool, base64, md5, sha1, sha256, aop, c99
Last push: 2026-05-30T17:06:51+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 85, release rhythm 35, longevity 100
- inputs: {"age_days": 4401, "days_push": 95, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1460, forks 209 (observed 2026-08-28T04:04:47.349568+00:00)

## What it is
Melon is a generic cross-platform C library (C99) bundling algorithms, data structures, functional components (memory pool, thread pool, event mechanism, HTTP/WebSocket, crypto, JSON), multi-process/multi-thread frameworks, and the Melang scripting language interpreter. It supports AOP-style function templates and compiles for Linux, macOS, Windows (msys2/msvc), and WebAssembly.

## Use cases
- c library with memory pool and thread pool
- embed a scripting language interpreter in a c application
- multi-process server framework in c
- c data structures like red-black tree and fibonacci heap
- aes md5 sha base64 in c without dependencies
- websocket and http handling in c
- aspect-oriented programming in c
- compile c library to webassembly

## When to choose
- writing C/C++ applications on Linux/macOS/Windows that need common components without many dependencies
- you want an embedded scripting language or AOP-style function callbacks in C
- you need a batteries-included C toolkit covering data structures, crypto, JSON, and concurrency

## When to avoid
- you need a single-purpose, minimal library rather than a large monolithic one
- you require full framework features (multi-process/multi-thread models) on Windows or MSVC
- your project is in a higher-level language with rich ecosystems

## Facets
- artifact type: library
- maturity: active
- function: concurrency, parser, interpreter, json, http-server, websocket, cryptography, logging, configuration-management, programming-language, compiler, math, compression, middleware
- domain: developer-tools, cross-platform, parsers, programming-languages, networking
- platform: windows, c, wasm
- tags: memory-pool, thread-pool, aop, data-structures, melang, reed-solomon, ipc, multiprocessing, c99, scripting-language, algorithms, linux, macos, docker

## Member repositories
- Water-Melon/Melon (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:47.349568+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:23.162528+00:00, confidence not recorded.
  - readme: https://github.com/Water-Melon/Melon (fetched 2026-08-28T04:04:47.349568+00:00, sha 750054c2110a)
  - homepage: http://doc.melonc.io (fetched 2026-08-29T11:44:09.537246+00:00, sha 37a96125dd07)
  - site_page: http://doc.melonc.io/en/install.html (fetched 2026-08-29T11:44:09.546557+00:00, sha fc19a93e12b7)
  - site_page: http://doc.melonc.io/en/quickstart.html (fetched 2026-08-29T11:44:09.548754+00:00, sha ae2a87017043)
  - site_page: http://doc.melonc.io/cn/install.html (fetched 2026-08-29T11:44:09.550570+00:00, sha 475c5ae86342)
  - site_page: http://doc.melonc.io/cn/quickstart.html (fetched 2026-08-29T11:44:09.552328+00:00, sha a0abced0d513)
- Data as of 2026-08-30T08:39:29.467469+00:00.
