Go HTML

Open-source Go projects categorized as HTML | Edit details

Top 23 Go HTML Projects

  • GitHub repo semaphore

    Modern UI for Ansible

    Project mention: Automatic softwaredeployment & installation/updating Tool | reddit.com/r/selfhosted | 2022-01-13

    Googled and found this: https://github.com/ansible-semaphore/semaphore

  • GitHub repo gotenberg

    A Docker-powered stateless API for PDF files.

    Project mention: Is there any possibility to convert mixed file types to PDF? | reddit.com/r/golang | 2022-01-14

    Back to Go - there are both free/open source (gopdf,gofpdf) and commercial (ex: UniPDF) pdf libraries for Go; there also coordination libraries for Go, such as https://github.com/gotenberg/gotenberg , which sounds like it might be a better fit for your very bare question (you may get better answers with a more complete example of what you want to do). It does not directly produce PDFs in Go code, but instead orchestrates passing uploaded files to Chromium, LibreOffice, or various pdf engines. Between them, it can convert a wide variety of file formats to PDF. (Again, really they are basically being printed to PDF - it is a one-way action.)

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo chroma

    A general purpose syntax highlighter in pure Go

    Project mention: Chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc. | reddit.com/r/planetemacs | 2021-09-23
  • GitHub repo minify

    Go minifiers for web formats (by tdewolff)

  • GitHub repo bluemonday

    bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS

    Project mention: HTML Sanitizer API | news.ycombinator.com | 2021-05-06

    My thoughts as a maintainer of a HTML sanitizer https://github.com/microcosm-cc/bluemonday

    1. Sanitizing is not difficult, defining the policy/config is difficult as your need is not someone else's. First glance of this proposal is that this needs a lot more work to cover people's needs. It's good enough, but will have a lot of edges and will need to evolve.

    2. If you allow a blocklist then people will use that by default as it's easier to say "I don't want " than it is to say "I only accept 3. Even if you sanitize something you should keep the raw input... you should store the raw input alongside the sanitized (in fact the sanitized is merely a cached version of the raw input having been sanitized). The reason for this is you will have issues you need to debug (and can't without the input) and you will have round-trip edits you should support (but it's not round-trippable when everything you return is different from the input, do not punish a user who pasted HTML thinking it was safe by then not allowing them to edit it out because you threw everything away). Additionally if you want to ever report on the input, i.e. topK values, and you've modified the input and not kept raw, then you can never do this.

    4. Provide a sane default. Most engineers simply do not know what is safe or not. I ship a policy in bluemonday for user generated content... it is safe by default and good enough for most people, and it can be taken and extended due to the way the API is structured so can cover other scenarios as a foundation policy.

    I think the proposal in general: specify a standard for a sanitization API has merit. But mostly it has merit if it specifies a standard for defining sanitization policies/configuration, allowing them to be portable across different languages and systems.

    The one I wrote is very heavily inspired by https://github.com/owasp/java-html-sanitizer which is the OWASP project one maintained by Mike Samuel. When I did my research before writing the Go one, this was far and away the best way to construct the policy/config and I already saw that this perspective was more valuable than whether it's a token based parser (GIGO but low memory) or a DOM builder (more memory)... no-one cares about the internals, they care about expressing what safe means to them.

  • GitHub repo render

    Go package for easily rendering JSON, XML, binary data, and HTML templates responses. (by unrolled)

    Project mention: Any good git repos made by a single dev? | reddit.com/r/golang | 2021-08-18
  • GitHub repo PufferPanel

    PufferPanel is an open source game server management panel, designed for both small networks and game server providers.

    Project mention: Running a linux distro on a dedicated desktop pc to run a vanilla 1.18 MC server | reddit.com/r/linux_gaming | 2021-12-06

    I've always run pufferpanel on Ubuntu server (no desktop) for my minecraft instances.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo go-wkhtmltopdf

    Golang commandline wrapper for wkhtmltopdf (by SebastiaanKlippert)

    Project mention: [Advice] Generating PDFs in Golang. | reddit.com/r/golang | 2021-11-23

    Simplest way is to use a Go package: https://github.com/SebastiaanKlippert/go-wkhtmltopdf

  • GitHub repo xpath

    XPath package for Golang, supports HTML, XML, JSON document query.

  • GitHub repo htmlquery

    htmlquery is golang XPath package for HTML query.

  • GitHub repo html-to-markdown

    ⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules. (by JohannesKaufmann)

  • GitHub repo Jade

    Jade.go - pug template engine for Go (golang)

  • GitHub repo goview

    Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.

  • GitHub repo gomponents

    View components in pure Go, that render to HTML 5.

    Project mention: Daz: Composable HTML components in golang | reddit.com/r/golang | 2021-03-22

    reminds me of https://github.com/maragudk/gomponents

  • GitHub repo renderer

    Simple, lightweight and faster response (JSON, JSONP, XML, YAML, HTML, File) rendering package for Go

  • GitHub repo goq

    A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library

  • GitHub repo go-wkhtmltopdf

    Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface

  • GitHub repo htmlgo

    A library for writing type-safe HTML in Golang

    Project mention: Chaining methods in go with struct inheritance | reddit.com/r/golang | 2021-02-25

    Good suggestion. This is similar to htmlgo which is another library I looked at to get ideas https://github.com/julvo/htmlgo

  • GitHub repo go-premailer

    Inline styling for html mail in golang

  • GitHub repo gomodest

    A complex SAAS starter kit using Go, the html/template package, and sprinkles of javascript.

    Project mention: Ask HN: What novel tools are you using to write web sites/apps? | news.ycombinator.com | 2021-04-04
  • GitHub repo pgo

    Go library for PHP community with convenient functions

  • GitHub repo html2data

    Library and cli for extracting data from HTML via CSS selectors

  • GitHub repo pagser

    Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-14.

Go HTML related posts

Index

What are some of the best open-source HTML projects in Go? This list will help you:

Project Stars
1 semaphore 4,643
2 gotenberg 3,382
3 chroma 3,036
4 minify 2,840
5 bluemonday 2,154
6 render 1,568
7 PufferPanel 725
8 go-wkhtmltopdf 688
9 xpath 445
10 htmlquery 444
11 html-to-markdown 303
12 Jade 267
13 goview 255
14 gomponents 237
15 renderer 231
16 goq 206
17 go-wkhtmltopdf 85
18 htmlgo 85
19 go-premailer 79
20 gomodest 66
21 pgo 60
22 html2data 50
23 pagser 42
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
scoutapm.com