Polarite is a Pastebin alternative made for simplicity written in Go.


Polarite is a Pastebin alternative made for simplicity written in Go.

Usage

Web Interface

Visit https://polarite.teknologiumum.com

API

Send a POST request to link coming soon with:

  • Content-Type header with the value of text/plain
  • Non-empty request body consisting of the text you want to store
  • Authorization header with the value of Your Name with a minimum of 15 characters.

Example request:

  • cURL
" \ -X POST \ -d "Hello World" \ https://polarite.teknologiumum.com/ ">
curl \
    -H "Content-Type: text/plain" \
    -H "Authorization: John Doe 
   
    "
    \
    -X POST \
    -d "Hello World" \
    https://polarite.teknologiumum.com/
  • Javascript (via Fetch API)
" }, body: "Hello world!" }) ">
fetch("https://polarite.teknologiumum.com/", {
    method: "POST",
    headers: {
        "Content-Type": "text/plain",
        "Authorization": "John Doe 
   
    "
   
    },
    body: "Hello world!"
})
  • Go
") client := &http.Client{} resp, err := client.Do(req) } ">
import (
    "net/http"
    "strings"
)

func Polarite() {
    body := strings.NewReader("Hello world")
    req, err := http.NewRequest(http.MethodPost, "https://polarite.teknologiumum.com/", body)
    req.Header.Add("Content-Type", "text/plain")
    req.Header.Add("Authorization", "John Doe 
   
    "
   )

    client := &http.Client{}
    resp, err := client.Do(req)
}
  • C#
" }, { "ContentType", "text/plain" } }, Content = new StringContent("Hello world", Encoding.UTF8, "text/plain") }; var task = await client.SendAsync(request); ">
using System.Net.Http;

var client = new HttpClient();
var request = new HttpRequestMessage() {
    RequestUri = new Uri("https://polarite.teknologiumum.com/"),
    Method = HttpMethod.Post,
    Headers = {
        { "Authorization", "John Doe 
   
    "
    },
        { "ContentType", "text/plain" }
    },
    Content = new StringContent("Hello world", Encoding.UTF8, "text/plain")
};

var task = await client.SendAsync(request);

I'm here for Hacktoberfest, what can I do?

If you're new to open source, we really recommend reading a few articles about contributing to open source projects:

You can start by reading the CONTRIBUTING.md. Then you can search for issues that you can work on.

Have fun!

Why the name, Polarite?

In the dawn of time, it began with the birth of Graphene repository, which its' name was picked from the name of a mineral. Then, not so long after, another repository called Flourite emerged. It's actually a typo of Fluorite, another name of a mineral. Now, where mankind stands, we want to continue that convention, to pick a name from a list of mineral on Wikipedia.

Similar Resources

A session manager for tmux written in Go

A session manager for tmux written in Go

Smug - tmux session manager Inspired by tmuxinator and tmuxp. Smug automates your tmux workflow. You can create a single configuration file, and Smug

Jan 6, 2023

An example client implementation written in GO to access the CyberVox platform API

About This is an example client implementation written in GO to access the CyberVox platform API.

Nov 7, 2022

💥 Fusion is a tiny stream processing library written in Go.

💥 Fusion Fusion is a tiny stream processing library written in Go. See reactor for a stream processing tool built using fusion. Features Simple & lig

Jun 30, 2021

Airplay 2 Receiver written in go

Go Play 2 This is a work in progress Airplay 2 Speaker implementation largely inspired by airplay2-receiver Status Can be paired manually on IOS 14.x

Dec 25, 2022

Simple 'UserKit' for Malware written in Go. Startup, Hidden Files, Critical Process and Registry Watcher

GoUserKit Simple UserKit for Malware written in Go Features Makes Process Critical (NtSetInformationProcess) Hides Files Simple Add to Startup (HKCU R

Jan 3, 2023

jacobin - A more than minimal JVM written in Go and capable of running Java 11 bytecode.

This overview gives the background on this project, including its aspirations and the features that it supports. The remaining pages discuss the basics of JVM operation and, where applicable, how Jacobin implements the various steps, noting any items that would be of particular interest to JVM cognoscenti.

Dec 29, 2022

A wrapper for the Wandbox API, written in Golang!

GoWandBox A simple wrapper for the WandBox API, written in Golang! Documentation can be found at classpythonaddike.github.io/gowandbox/ Note: This wra

Sep 19, 2021

A simple typewriter written in go for KOBO e-readers

A simple typewriter written in go for KOBO e-readers

Kobowriter This small project aims to let you use your old KOBO e-reader (mine is a GLO HD) as a simple, distraction free typewriter. For years I thou

Dec 25, 2022

fccCoin Clone written in GoLang

fccCoin Description fccCoin Clone written in GoLang Actual Code for fccCoin written in Python

Oct 2, 2021
Comments
  • feat: create paste controller interface & implementation

    feat: create paste controller interface & implementation

    related to #6, create paste controller interface and implementation on business/controller. Interface make it possible to implement dependency injection by simply depend on the interface instead of actual object / struct. The dependent then can receive any object that comply to that interface.

  • feat: add homepage

    feat: add homepage

    I spent too much time thinking how to do this without Javascript and thinking other dumb overengineered stuff. I could've spent like 10 minutes writing this simple thing if I didn't try to be smort lmao. sigh

  • chore: removed caching for get paste and clean up lexers

    chore: removed caching for get paste and clean up lexers

    @elianiva nanti kamu bisa tolong bikin documentation di readme atau dimana gitu, daftar query params yang disupport di GET /:id sama daftar theme & language yang disupport? thanks

  • Create Github Container Package to publish Docker image

    Create Github Container Package to publish Docker image

    Documentation: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

    And implement on Github Actions: https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action

    Why? Easier for people to run the app rather than cloning the repo, pull go image from there, build the docker image, store every trash on their machine.

gopbin is a minimalist and opinionated pastebin implementation written in Go.

gopbin gopbin is a minimalist and opinionated pastebin implementation written in

Dec 28, 2021
Zinc Search engine. A lightweight alternative to elasticsearch that requires minimal resources, written in Go.
Zinc Search engine. A lightweight alternative to elasticsearch that requires minimal resources, written in Go.

Zinc Search Engine Zinc is a search engine that does full text indexing. It is a lightweight alternative to Elasticsearch and runs using a fraction of

Jan 1, 2023
Elytrium Billing: Module-based billing platform made with Go

In development Elling - Elytrium Billing Module-based billing platform made with Go The main idea of this product - make a stable billing platform for

Jun 4, 2022
HackerNews client made with Kyoto
HackerNews client made with Kyoto

HackerNews demo HackerNews demo client, made with kyoto Install Clone repo: git clone https://github.com/yuriizinets/kyoto-hn Go to the cloned directo

Jul 2, 2022
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar

Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star.

Dec 6, 2021
General releases made easy for golang

release General releases made easy What it is Release is inspired to GoReleaser for automates general releases that, in most cases, does not require a

Jan 7, 2022
Random fake data generator written in go
Random fake data generator written in go

Gofakeit Random data generator written in go Features 160+ Functions!!! Concurrent Global Rand Struct Generator Custom Functions Http Server Command L

Jan 1, 2023
Genetic Algorithm written in go

This genetic algorithm is designed to minimise the problem specific code from a genetic algorithm. The three interfaces Gene, Initialiser, an Evaluato

Feb 15, 2022
Simple and expressive toolbox written in Go

ugo Simple and expressive toolbox written with love and care in Go. Deeply inspired by underscore.js and has the same syntax and behaviour Fully cover

Sep 27, 2022
A simplistic todo list manager written in Go
A simplistic todo list manager written in Go

Tasks Tasks is a simplistic Go webapp to manage tasks, I built this tool to manage tasks which I wanted to do, there are many good kanban style boards

Dec 10, 2022