Skip to content

stevedylandev/snippets

Repository files navigation

Snippets.so

cover No ads, no fuss, just code

Development Setup

Clone the repo and install

git clone https://github.com/stevedylandev/snippets && cd snippets && npm install

Create a .env.local file with the following variables

# Created at https://app.pinata.cloud/developers/api-keys
PINATA_JWT=

# Located at https://app.pinata.cloud/gateway
GATEWAY_URL=

Start up the server with npm run dev

Ports

API

curl --location 'https://www.snippets.so/api/upload' \
--header 'Content-Type: application/json' \
--data '{
  "content": "console.log(\"hello world!\")",
  "name": "hello.ts",
  "lang": "typescript"
}'

List of supported languages

https://snippets.so/snip/{IpfsHash}

CLI

brew install stevedylandev/snippets-cli/snippets-cli

For other installs check out the Github repo

Usage

snip hello.ts

Contact

Feedback? hello@stevedylan.dev Like what you see? Eth Address Buy me a coffee

About

Clean and simple code sharing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published