Skip to content

Create an elementary prototype #1

@julienetie

Description

@julienetie

This prototype demonstrates the following key concepts:

  1. Zig Application with QuickJS Integration:

    • A Zig program that leverages QuickJS through its C bindings to execute JavaScript code.
    • The application seamlessly interoperates with QuickJS, enabling dynamic scripting capabilities within a high-performance Zig environment.
  2. User-Defined JavaScript Scripting:

    • A user-provided JavaScript function that takes data as input, manipulates it, and returns the transformed result.
    • This showcases how custom logic can be injected into the system using vanilla JavaScript, providing flexibility for end-users.
  3. Dynamic HTML Generation:

    • The manipulated data is used to generate a static HTML file, demonstrating how user scripts can influence the final output.
    • This step highlights the integration of data processing and static site generation, a core feature of the system.

Purpose and Scope

While this prototype is not exhaustive or a fully realistic representation of Bonita, it serves as a proof of concept for how Bonita will utilize user-created JavaScript to manipulate static sites. Specifically, it illustrates:

  • The ability to embed and execute user scripts within a Zig application.
  • The seamless flow of data between Zig and JavaScript, enabling dynamic content manipulation.
  • The generation of static HTML files based on processed data, showcasing the end-to-end workflow.

This prototype lays the groundwork for Bonita's vision of empowering users to customize and enhance static sites through JavaScript scripting, all within a performant and secure Zig-based environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions