Coder Social home page Coder Social logo

yuzu's Introduction

Yuzu

NOTE: THIS PROJECT IS WIP

Yuzu is a gemenai browser and a fork of Amfora. It aims to implement basic scripting the gemenai protocal that keeps the power in the users hands.

As markdown is already supported in Gemeni, Yuzu fold all code blocks annoted as scripts and gives you the option to run them requiring you explicit input.

This change of paradimgn where code is displayed inline and users have to volentarily run the code aims to discorage what has happend to the modern web without the nuclear options of removing all scripting.

To use the code any language that supports WASI is good, however sticking to the more popular once is better as code needs to be compiled on the users system and so using more common compilers is better.

/// Run this code to enable live search on the page
Page::search_bar()?.set_callback(|input| {
    Page::list()?.text.edit(|text| {
        text
            .lines()
            .filter(|line| line.contain(input))
        })
})

To define html like tags to query elements the must be labled withing the documents like this:

< dynamic>

You could write some code to have this header change!

< \dynamic>

You could then query this element as Page::dynamic() and make changes to it.

IMPORTANT NOTE

Yuzu is not trying to change the way gemeni works. Part of the magic is that beacuse these code snippets are showed on other sites in plain text it encorages websites to keep it to a minimal.

This is great as it means that people think twice before putting code in their websites.

Although some people disable js on the web they are a sever minority and so websites can afford to exclude these people. The goal is to make that not an option on gemeni

TODO

  • Bookmarks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.