MCPcopy Index your code
hub / github.com/kbrsh/moon

github.com/kbrsh/moon @v0.11.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.11.0 ↗
99 symbols 261 edges 52 files 6 documented · 6%
README

Moon

A minimal, blazing fast UI library.

Build Status Code Coverage License

License

Summary

  • :tada: Small file size (6kb minified + gzip)
  • :zap: Blazing fast performance
  • :rocket: Intuitive, easy-to-learn API
  • :gem: Powerful directives
  • :hammer: Compose with Components

What is it?

Moon is a simple front end javascript library heavily inspired by Vue. The library is fast, flexible, and easy to learn. Check out the Medium Article on the motivations for making this.

Extras

  • moon-cli - scaffold a feature rich Moon project
  • 🚩 moon-router - fast router plugin for components
  • 📋 monx - clean state management
  • 🌎 moon-ssr - universal server-side rendering
  • 📊 moon-bars - beautiful bar graph component

Another library?

There have been a lot of libraries released. Moon has been being developed since late 2015. Most libraries are bloated, with a large API and file size, leading to applications becoming slower, and less mobile friendly.

Moon differs from the existing solutions by providing a faster, yet compact library with a simple but powerful API. It uses a virtual DOM system similar to React, but includes advanced optimizations crafted specifically for Moon, similar to the Glimmer engine by the Ember team. In a variety of benchmarks, Moon has proven itself to be the fastest UI library out there.

Still, you do not have to use Moon if you are happy with your current solution, or if you have already started. If you are creating something new or would like to use it for the performance gains and intuitive API, feel free to use Moon.

Usage

See the website.

How to Contribute?

Check the CONTRIBUTING file for more information about this project and how to help.

License

Licensed under the MIT License by Kabir Shah

Core symbols most depended-on inside this repo

wait
called by 63
test/core/util.js
createTestElement
called by 51
test/core/util.js
compileTemplateExpression
called by 8
src/compiler/template.js
m
called by 8
src/util/vdom.js
error
called by 7
src/util/util.js
createNodeFromVNode
called by 7
src/util/dom.js
incrementChar
called by 6
src/compiler/lexer.js
move
called by 6
src/compiler/parser.js

Shape

Function 99

Languages

TypeScript100%

Modules by API surface

benchmarks/dbmon/lib/monitor.js14 symbols
test/core/util.js12 symbols
src/util/vdom.js11 symbols
src/util/util.js10 symbols
src/util/dom.js8 symbols
src/compiler/lexer.js8 symbols
benchmarks/dbmon/ENV.js8 symbols
src/compiler/template.js5 symbols
src/compiler/generator.js5 symbols
src/compiler/parser.js4 symbols
src/observer/reactive.js2 symbols
src/observer/methods.js2 symbols

Dependencies from manifests, versioned

buble0.15.2 · 1×
chai3.5.0 · 1×
gulp3.9.1 · 1×
gulp-concat2.6.0 · 1×
gulp-connect5.0.0 · 1×
gulp-header1.8.8 · 1×
gulp-include2.3.1 · 1×
gulp-replace0.5.4 · 1×
gulp-size2.1.0 · 1×
gulp-uglify2.1.2 · 1×
karma1.7.0 · 1×
karma-coverage1.1.1 · 1×

For agents

$ claude mcp add moon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact