DEV Community

Victor Chanil Park
Victor Chanil Park

Posted on

Rino, easy static website builder with HTML, CSS and Typescript/Javascript

Fast learning, preprocessing, intuitive website builder

Rino.js is your go-to web framework for building efficient static websites with HTML, CSS and Typescript/Javascript. Designed for developers of all levels, it simplifies web development by combining the power of standard web technologies with streamlined preprocessing tools.

Requirement

  • Node.js
  • HTML
  • CSS
  • Javascript / Typescript

Quick Start

Getting started is as simple as:

npm create rino@latest
Enter fullscreen mode Exit fullscreen mode

With just one command, you can set up your project and start developing immediately.

Why Choose Rino.js for Your Website?

Modern web frameworks like Angular, React, Next.js, Vue, and Nuxt have reshaped web app development, but they often come with challenges such as:

  • Higher Costs: Increased expenses for hosting, traffic management, and maintenance.
  • Complexity: Steep learning curves, complex rules, and slower build speeds.
  • Resource Demands: Higher computing requirements.

Enter Rino.js. Built to simplify the process, Rino.js focuses on standard web technologies: HTML, CSS, and JavaScript. It provides:

  • HTML Components: Easily build reusable components.
  • Seamless Integration: Use npm packages and libraries for JavaScript. Import CSS files and generate as one.
  • Automation Tools: Generate sitemaps, compress images, and more.

Even beginners can grasp the basics of Rino.js within 30 minutes, making it an excellent choice for rapid development. Check out the Project Structure and Syntax guide for a deeper dive.

Rino.js also offers flexibility: it allows you to integrate other frameworks like React or Vue when needed, keeping your project lightweight and manageable.

Commands

Development
Run a development server:

npm run dev
Enter fullscreen mode Exit fullscreen mode

Static Website Generation
Generate your static website:

npm run generate
Enter fullscreen mode Exit fullscreen mode

Generate your static website with a sitemap:

npm run generate-sitemap
Enter fullscreen mode Exit fullscreen mode

Image Compression
Run the image compression tool:

npm run image
Enter fullscreen mode Exit fullscreen mode

Project Structure

Rino.js 2 introduces an intuitive project directory and file structure, emphasizing automation and simplicity.
Key Directories

  • /pages: Base HTML files for web pages. The file and directory structure directly reflect the final output.
  • /components: Reusable HTML components. Use them with syntax like:
<component @path="/header" @tag="div" />
Enter fullscreen mode Exit fullscreen mode
  • /mds: Markdown files, automatically parsed into HTML.
  • /public: Static files like images and external assets.
  • /scripts: JavaScript libraries. Place exportable scripts in /scripts/export/.
  • /styles: CSS libraries. Exportable styles go in /styles/export/.

Templating with JavaScript/TypeScript

<script @type="js">
result = "<div>Hello, Rino.js!</div>";
</script>
Enter fullscreen mode Exit fullscreen mode

Markdown Support

Embed Markdown directly into your HTML files:

<script @type="md">
# Markdown Title
This is Markdown content inside a HTML file.
</script>
Enter fullscreen mode Exit fullscreen mode

Free, MIT licensed open-source project

Rino.js is an open-source project under the MIT license, free for everyone to use.

Learn More

Start your journey with Rino.js today and redefine how you build a website—faster, simpler, and more intuitively.

Top comments (0)