Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevedylandev/snippets
Clean and simple code sharing
https://github.com/stevedylandev/snippets
developer-tools
Last synced: 3 months ago
JSON representation
Clean and simple code sharing
- Host: GitHub
- URL: https://github.com/stevedylandev/snippets
- Owner: stevedylandev
- License: mit
- Created: 2024-07-02T02:18:03.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-10T23:04:55.000Z (3 months ago)
- Last Synced: 2024-10-12T16:28:13.941Z (3 months ago)
- Topics: developer-tools
- Language: TypeScript
- Homepage: https://snippets.so
- Size: 513 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snippets.so
![cover](https://www.snippets.so/og.png)
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
```bash
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://github.com/stevedylandev/snippets/blob/main/lib/languages.ts)```
https://snippets.so/snip/{IpfsHash}
```### CLI
```
brew install stevedylandev/snippets-cli/snippets-cli
```For other installs check out the [Github repo](https://github.com/stevedylandev/snippets-cli)
**Usage**
```
snip hello.ts
```## Contact
Feedback? [[email protected]](mailto:[email protected])
Like what you see? [Eth Address](https://rainbow.me/stevedylandev.eth) [Buy me a coffee](https://buymeacoffee.com/stevedylandev)