0.0.27 • Published 3 years ago

insomnia-plugin-sync-gist-multiprovider-proxy v0.0.27

Weekly downloads
117
License
MIT
Repository
github
Last release
3 years ago

Insomnia Multiprovider Gist Sync

This is a fork of gist-sync aimed to support storing gists on a self-hosted gitlab instance, and some other providers

This is a plugin for Insomnia that allows users sync workspaces with gist of GitHub and a self-hosted gitlab.

Installation

Install the insomnia-plugin-sync-gist-multiprovider plugin from Preferences > Plugins.

Configure

1. Create a personal access token.

On your github account with gist scope/permission.

Or in your Gitlab account with the api scope.

2. Go to Insomnia, click on Insomnia Main Menu, and click on "Gist Sync Proxy - Configure":

Plugin Screenshot

Paste the corresponding configuration

For a github account

{
  "provider": "github",
  "token": "PERSONAL_ACCES_TOKEN",
  "gistID": ""
}

For a self-managed gitlab account, in a project level

{
  "provider": "gitlab",
  "token":  "PERSONAL_ACCES_TOKEN",
  "gistID": "",
  "baseURL": "http://your.gitlab.ip",
  "projectID": "1",
  "visibility": "private"
}

For a self-managed gitlab account, in a user level

{
  "provider": "gitlab",
  "token": "PERSONAL_ACCES_TOKEN",
  "gistID": "",
  "baseURL": "http://your.gitlab.ip",
  "visibility": "private"
}

Configuration options

SettingRequiredDescription
providertrueProvider to store the gists. available values: github, gitlab
tokentruePersonal acces token of your provider. NEVER SHARE IT
gistIDfalseGist ID where your data is stored. If not present, a new one will be automatically created
timeoutfalseRequest timeout in miliseconds. Default 3000
baseURLfalseGitlab only. URL of the gitlab instance you want to use. Default https://gitlab.com
projectIDfalseGitlab only. If you want to save the snippet in a project level, set it to the project ID. Default null (Defaults to user level)
visibilityfalseVisibility of the snippet. Options private, public, internal. Default private

Note: Most of the parameters aren't strictly validated.

Usage

  • Click on "Gist Sync Proxy - Send" to send your workspaces to Gist.
  • Click on "Gist Sync Proxy - Receive" to get your workspaces from Gist.

TODO

List of things todo.

  • Add gitlab user-level provider (fix current provider)
  • Add github provider
  • Change the logo
  • Change config options from json to a form (like joaostroher did)
  • Add an option to sync only some workspaces. Issue #3
  • CI/CD (Test and publish on merge request to release)
  • Add atlassian provider (?)
  • Tests
  • Linting
  • Redesign the logo
  • Fix Sync strategies edge cases (if any)

Note on how conflict resolving is being made. Currently, when you press the receive button, it will get the remote, compare both remote and local for changes and store the newest modifications into a combination of both, this can lead to confusing edge cases. If you are really interested on preserving integrity working with a team, please support insomnia with a team membership.

Possible edge case: Being unable to delete items because of how conflicts are resolved


Support me

Do you have any bucks in your wallet that you don't really need? Great!

You should consider donating to a charity or something more relevant.

If you really want to support me instead, here is a way to do it.

ko-fi

Naming variables is hard

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago