Mint is a programming language and toolchain for building single-page web applications, with typed components, built-in styling, stores, and routing.
Overview
Mint is aimed at front-end web development. You write applications in Mint itself rather than assembling many JavaScript libraries for UI, styling, state, and routing. The language is still moving toward a 1.0 release, with syntax and the standard library described as largely stable while the implementation is refined.
Applications are built from components with local state, render functions, and CSS-like style blocks that support nesting, media queries, conditionals, and value interpolation. Global stores hold shared data and can be connected to components so views update when store data changes.
Routing is defined in the language with type-checked route parameters. JavaScript interop uses encode and decode for typed values and inline JavaScript fragments where needed. A single binary bundles a development server, formatter, test runner, package manager, documentation generator, language server, and build tool.
The compiler is implemented in Crystal. Output targets the browser via compile-to-JavaScript, and the project documents trying code in a browser sandbox as well as CLI project workflows.
Key features
- Single-page application focus
- Component state and global stores
- Language-integrated CSS styling
- Declarative typed routing
- JavaScript encode and decode interop
- Bundled dev server and build CLI
- Package manager and language server
- Code formatter and test runner
Use cases
- Building typed single-page web apps
- Replacing many npm UI libraries
- Interactive browser tutorial projects
- Maintainable front-end with one language