Giter Site home page Giter Site logo

demfabris / gistit Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 1.0 2.05 MB

Easy code snippet sharing

Home Page: https://gistit.vercel.app

License: Apache License 2.0

JavaScript 1.29% TypeScript 23.46% CSS 0.89% Rust 74.37%
rust cli gist share code snippet snippets p2p upload gistit

gistit's Introduction

Gistit - Share user snippets

⚡️ Quick and easy code snippet sharing tool

Crates.io Crates.io

A feature packed, hash based code snippet sharing tool focused on ease of use and simplicity.

⭐ Features

send and fetch gif

  • TUI support - send and preview gistits without leaving the terminal. (uses bat) 🦇
  • Easy to use - command line API made for humans, shell completion and fancy spinners. 👨‍🎨
  • Open source - Independent web application and server, open source top to bottom.
  • Integrated - Integration with GitHub Gists.
  • Handy - system clipboard integration that actually works.
  • Peer to peer - peer to peer file sharing via libp2p. The network stach behind IPFS. 🌐

Feature requests

I want a feature

Windows support comming soon

CLI

Basic Usage

You can send a local file or stdin.

# Local file
$ gistit myfile.txt

# Stdin
$ ls | gistit

# Additional info
$ ls | gistit -a "Matthew McConaughey" -d "My ls, lol"

Post to GitHub Gists.

$ gistit myfile.txt --github
# A browser window will open to authorize Github OAuth.
# Hit **authorize** and wait for the CLI to resume automatically.

Copy hash to system clipboard.

$ gistit myfile.txt -c
# Hash is now on your clipboard

Fetching gistits

# Fetch and preview
$ gistit f 8765d324ddd800f1112e77fece3d3ff2

# Fetch and save to local data directory
$ gistit f 8765d324ddd800f1112e77fece3d3ff2 --save

P2p

Peer to peer file sharing is opt in. Simply install gistit-daemon and start the background process.

# Start
$ gistit node --start

# Check network status
$ gistit node --status

# Stop
$ gistit node --stop

If gistit-daemon is running sending and fetching gistits will be automatically done via IPFS network.

Installation

Compiled binaries

Check releases

With AUR

gistit-bin

From crates.io

cargo install gistit gistit-daemon

From source (msrv 1.58)

# Clone
$ git clone https://github.com/fabricio7p/gistit.git

# Move
$ cd gistit

# Build
$ cargo build --release

Your binary will be inside target/release folder.

License

Licensed under either of MIT or Apache-2.0 at your option.

gistit's People

Contributors

demfabris avatar ultirequiem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

camargothais

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.