create-freon
v2.0.0
Published
[](https://www.npmjs.com/package/create-freon)
Readme
Create Freon
The easiest way to start a new Freon language project.
With a single command, Create Freon generates a complete project scaffold for your domain-specific language (DSL), including everything you need to build and run a browser-based editor.
💡 You can start from an empty scaffold or choose one of the example languages provided in create-freon-languages:
- 📘 CourseSchedule – a simple scheduling DSL
- ⚙️ CustomizationsProject – demonstrates customizing a generated project
- 🎓 Education – a DSL for modeling education structures
- 🧮 EducationInterpreter – adds an interpreter to the Education DSL
- 🔢 Expressions – a small arithmetic expression language
- 🛡️ Insurance – a DSL for modeling insurance products
- 🚀 StarterLanguage – a minimal language to get started quickly
- 🧩 TyperExample – demonstrates typing rules in practice
Quick Start
To create a new Freon language project, run:
npm create freon@latestFollow the prompts, then:
cd my-language
npm run styles (only needed once, and whenever you change CSS files)
npm run devBecause the above starts a webserver, you need to open a second terminal and start the model server as well:
`npm run server` ➡️ Open your browser at the URL shown (typically http://localhost:5173/) to try out your new DSL editor.
What You Get
The generated project includes:
- 📂 Language definitions: folders for
.ast,.edit,.scope,.type, and.validfiles. - ⚙️ Build scripts: ready-made npm commands for building and running your editor.
- 🌐 Browser editor: a Svelte-based web app scaffolded and ready to use.
- 🧩 Integration with Freon meta-languages: scope, typing, validation, and more.
Next Steps
- 📖 Read the Freon documentation for detailed guides.
- 🎮 Explore create-freon-languages for example languages and templates.
- 🛠️ Customize the generated project to fit your business domain.
Contributing
This package is maintained as part of the freon4dsl project.
If you’d like to contribute, please open issues or PRs in the main repository.
License
MIT
