{"id":33552209,"url":"https://github.com/turoyt/snowshare","last_synced_at":"2026-04-22T08:01:27.638Z","repository":{"id":313780640,"uuid":"1052586978","full_name":"TuroYT/snowshare","owner":"TuroYT","description":"A modern, secure file and link sharing platform built with Next.js, Prisma, and NextAuth. Share URLs, code snippets, and files with customizable expiration, privacy, and QR codes.","archived":false,"fork":false,"pushed_at":"2026-04-21T17:14:57.000Z","size":1953,"stargazers_count":67,"open_issues_count":1,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T19:26:00.652Z","etag":null,"topics":["code-sharing","file-sharing","link-shortener","nextjs","pastebin","url-shortener"],"latest_commit_sha":null,"homepage":"https://s.romain-pinsolle.fr","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TuroYT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"romain.pinsolle","thanks_dev":null,"custom":null}},"created_at":"2025-09-08T09:07:29.000Z","updated_at":"2026-04-21T17:14:59.000Z","dependencies_parsed_at":"2026-03-02T10:02:31.664Z","dependency_job_id":null,"html_url":"https://github.com/TuroYT/snowshare","commit_stats":null,"previous_names":["turoyt/snowshare"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/TuroYT/snowshare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuroYT%2Fsnowshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuroYT%2Fsnowshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuroYT%2Fsnowshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuroYT%2Fsnowshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TuroYT","download_url":"https://codeload.github.com/TuroYT/snowshare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuroYT%2Fsnowshare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32126709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-sharing","file-sharing","link-shortener","nextjs","pastebin","url-shortener"],"created_at":"2025-11-27T13:03:19.192Z","updated_at":"2026-04-22T08:01:27.631Z","avatar_url":"https://github.com/TuroYT.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n   \u003cimg src=\"public/logo.svg\" alt=\"SnowShare Logo\" width=\"120\" style=\"margin-bottom: 10px;\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\" style=\"font-family: 'Segoe UI', Arial, sans-serif; color: #3b82f6; font-size: 2.5rem; margin-bottom: 0.5em;\"\u003eSnowShare\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"font-size: 1.15rem; color: #374151; font-weight: 500; margin-bottom: 1.5em;\"\u003e\n   SnowShare is a modern, \u003cb\u003esecure\u003c/b\u003e file and link sharing platform built with Next.js, Prisma, and NextAuth.\u003cbr\u003e\n   It provides a clean, user-friendly interface for sharing URLs, text snippets, and files with customizable options for expiration, privacy, and access.\n\u003c/p\u003e\n\n## Features ✨\n\n### LinkShare 🔗\n\n- Share any URL with a customizable shortened link\n- Set expiration times (1 day to solar explosion) ⏳\n- Option for no expiration (authenticated users)\n- Custom slugs for personalized links\n- Password protection for enhanced security 🔒\n- Instant QR code generation for shared links 📱\n\n### PasteShare 📋\n\n- Share code snippets and text with syntax highlighting 🎨\n- Support for multiple programming languages\n- Expiration options and password protection 🔒\n- Ideal for sharing code samples, configuration files, or any text content\n\n### FileShare 📁\n\n- Secure file uploads with size limits\n- Automatic file type detection\n- Download tracking 📥\n- Same expiration and protection features\n\n### User Management 👥\n\n- User registration and authentication via NextAuth 🔑\n\n- **Frontend**: Next.js 16, React 19.1, TailwindCSS 4\n- **Authentication**: NextAuth.js with bcrypt password hashing\n- **Special Features**: QR code generation, custom URL slugs\n\n## Getting Started 🚀\n\n- Node.js 24+ and npm/yarn\n- PostgreSQL database\n\n### Prerequisites ✅\n\n- Node.js 24+ and npm/yarn\n- PostgreSQL database\n\n- Node.js 24+ and npm/yarn\n- PostgreSQL database\n\n### Installation 🛠️\n\n1. Clone the repository\n\n   ```\n   git clone https://github.com/TuroYT/snowshare\n   cd snowshare\n   ```\n\n2. Install dependencies\n\n   ```\n   npm install\n   ```\n\n3. Set up environment variables\n   Create a `.env` file in the root directory with the following variables:\n\n   ```\n   # Database\n   DATABASE_URL=\"postgresql://username:password@localhost:5432/snowshare\"\n\n   # NextAuth\n   NEXTAUTH_URL=\"http://localhost:3000\"\n   NEXTAUTH_SECRET=\"your-secret-key\"\n\n   # Auth (allow or disallow user signups)\n   ALLOW_SIGNUP=true\n   ```\n\n## Docker\n\n### Quick start (Docker Hub)\n\nThe easiest way to run SnowShare — no build needed, PostgreSQL included.\n\n#### Option A — docker-compose (recommended)\n\n1. Create a `docker-compose.yml`:\n\n```yaml\nversion: \"3.9\"\n\nservices:\n  db:\n    image: postgres:16-alpine\n    restart: unless-stopped\n    environment:\n      POSTGRES_USER: postgres\n      POSTGRES_PASSWORD: postgres\n      POSTGRES_DB: snowshare\n    volumes:\n      - db-data:/var/lib/postgresql/data\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U postgres\"]\n      interval: 5s\n      timeout: 5s\n      retries: 10\n\n  app:\n    image: turodev/snowshare:latest\n    restart: unless-stopped\n    depends_on:\n      db:\n        condition: service_healthy\n    environment:\n      DATABASE_URL: postgres://postgres:postgres@db:5432/snowshare\n      NEXTAUTH_URL: http://localhost:3000 # Change to your public URL\n      NEXTAUTH_SECRET: changeme-replace-with-random-secret # Change this!\n      ALLOW_SIGNUP: \"true\"\n    ports:\n      - \"3000:3000\"\n    volumes:\n      - uploads:/app/uploads\n\nvolumes:\n  db-data:\n  uploads:\n```\n\n2. Start the stack:\n\n```bash\ndocker compose up -d\n```\n\n#### Option B — docker run\n\nStart PostgreSQL first:\n\n```bash\ndocker run -d \\\n  --name snowshare-db \\\n  --network snowshare-net \\\n  -e POSTGRES_USER=postgres \\\n  -e POSTGRES_PASSWORD=postgres \\\n  -e POSTGRES_DB=snowshare \\\n  -v snowshare-db:/var/lib/postgresql/data \\\n  postgres:16-alpine\n```\n\nThen start SnowShare:\n\n```bash\ndocker network create snowshare-net\n\ndocker run -d \\\n  --name snowshare \\\n  --network snowshare-net \\\n  -p 3000:3000 \\\n  -e DATABASE_URL=\"postgres://postgres:postgres@snowshare-db:5432/snowshare\" \\\n  -e NEXTAUTH_URL=\"http://localhost:3000\" \\\n  -e NEXTAUTH_SECRET=\"$(openssl rand -base64 32)\" \\\n  -e ALLOW_SIGNUP=\"true\" \\\n  -v snowshare-uploads:/app/uploads \\\n  turodev/snowshare:latest\n```\n\n---\n\nThe app will be available at http://localhost:3000.\n\n\u003e **Note:** Change `NEXTAUTH_URL` to your public domain and use a strong `NEXTAUTH_SECRET` (generate one with `openssl rand -base64 32`).\n\nAvailable tags: `latest`, `1.3.9`, `1.3`\n\n### Build from source\n\n```bash\ndocker compose up -d --build\n```\n\n4. Initialize the database\n\n   ```\n   npx prisma migrate dev\n   ```\n\n5. Start the development server\n\n   ```\n   npm run dev\n   ```\n\n6. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure 🗂️\n\n```\n/\n├── prisma/                # Prisma schema and migrations\n├── public/                # Static assets\n└── src/\n    ├── app/               # Next.js App Router structure\n    │   ├── api/           # API routes\n    │   ├── auth/          # Authentication pages\n    │   ├── protected/     # Protected slugs and shares\n    │   └── s/             # Short link redirects\n    ├── components/        # React components\n    ├── hooks/             # Custom React hooks\n    └── lib/               # Utility functions and shared code\n```\n\n## 🙏 Acknowledgments\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License ⚖️\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Privacy \u0026 Analytics 🔒\n\nSnowShare uses [Plausible Analytics](https://plausible.io/) for privacy-friendly, cookie-free usage statistics. Plausible is:\n\n- **GDPR compliant** — No personal data collected\n- **Cookie-free** — No consent banner needed\n- **Open source** — Transparent and auditable\n\nNo personally identifiable information is collected. Analytics help us understand usage patterns to improve the project.\n\n**To disable telemetry**, add to your `.env`:\n\n```env\nTELEMETRY=false\n```\n\n**To use your own Plausible instance**:\n\n```env\nPLAUSIBLE_DOMAIN=your-domain.com\nPLAUSIBLE_HOST=https://your-plausible-instance.com\n```\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=TuroYT/snowshare\u0026type=date\u0026legend=top-left)](https://www.star-history.com/#TuroYT/snowshare\u0026type=date\u0026legend=top-left)\n\n## Acknowledgments / Credits 🙌\n\n- [Next.js](https://nextjs.org/) - The React Framework\n- [Prisma](https://www.prisma.io/) - Next-generation ORM\n- [NextAuth.js](https://next-auth.js.org/) - Authentication for Next.js\n- [TailwindCSS](https://tailwindcss.com/) - Utility-first CSS framework\n","funding_links":["https://buymeacoffee.com/romain.pinsolle"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturoyt%2Fsnowshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturoyt%2Fsnowshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturoyt%2Fsnowshare/lists"}