35

GitHub - danfragoso/thdwb: The hotdog web browser and web browser engine

 4 years ago
source link: https://github.com/danfragoso/thdwb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

thdwb

This is the hotdog web browser project. It's a web browser with its own layout and rendering engine, parsers, and UI toolkit!

It's made from scratch entirely in golang. External dependencies are only OpenGL and GLFW, even go dependencies are kept to a minimum.

The main goal of this project is to learn how to does a web browser works under the hood by implementing one. The browser is far from stable, spec-compliant, or even really useful, but, I'm slowly working on bringing more features and supporting more sites.

hotdoghotdoghotdog

scr_1.png

Components

  • ketchup (html parser and DOM Tree builder)
  • mayo (css parser and Render Tree builder)
  • mustard (UI Toolkit, events and OpenGL)
  • sauce (requests, cache and filesystem)
  • bun (css layout calculator)
  • gg (drawing routines and text rendering)

Getting started

  • Running

    cd src
    make

    This command will start the browser and load an example page

  • Testing

    cd src
    make test

    This command will run all the configurated unit tests

  • Building

    cd src
    make build

    This command will build the binary version

Screenshots

scr_2.png

scr_3.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK