{"id":15144271,"url":"https://github.com/vercetti322/textcache","last_synced_at":"2026-02-15T05:33:02.487Z","repository":{"id":255498165,"uuid":"851558315","full_name":"vercetti322/TextCache","owner":"vercetti322","description":"A simple, secure platform for storing and sharing text snippets with ease. Share your notes or code with customizable options like syntax highlighting, tags, and expiration times.","archived":false,"fork":false,"pushed_at":"2024-09-10T06:15:55.000Z","size":286,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T22:47:48.904Z","etag":null,"topics":["chakra-ui","pastebin","react","vercel","vite"],"latest_commit_sha":null,"homepage":"https://text-cache.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vercetti322.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T10:09:38.000Z","updated_at":"2024-09-10T06:21:23.000Z","dependencies_parsed_at":"2024-12-20T04:08:37.800Z","dependency_job_id":"eafd23a8-b6a7-4c5d-a263-d92ddad671e7","html_url":"https://github.com/vercetti322/TextCache","commit_stats":null,"previous_names":["vercetti322/textcache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercetti322%2FTextCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercetti322%2FTextCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercetti322%2FTextCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercetti322%2FTextCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercetti322","download_url":"https://codeload.github.com/vercetti322/TextCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517924,"owners_count":20951716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chakra-ui","pastebin","react","vercel","vite"],"created_at":"2024-09-26T10:23:19.515Z","updated_at":"2025-10-05T16:22:32.470Z","avatar_url":"https://github.com/vercetti322.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n  Textcache\n\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://skillicons.dev/icons?i=react,vite,vercel\" /\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003cp\u003e\n  Textcache is an alternative to Pastebin which allows for sharing of text snippets (with the option of password protection)    in a safe manner. The text shared is end-to-end encrypted using AES encryption - check that out at \n  \u003ca href=\"https://en.wikipedia.org/wiki/Advanced_Encryption_Standard\"\u003eAES wiki\u003c/a\u003e. \n  This repository has the frontend React code styled with \u003ca href=\"https://v2.chakra-ui.com/\"\u003eChakra\u003c/a\u003e library. The \n  project is hosted at \u003ca href=\"https://text-cache.vercel.app/\"\u003eVercel\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\n  Web Preview\n\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/47ffdb30-e6f7-4eb8-bdf4-28ad2420f1f6\"\u003e\n  \u003cimg width=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/da16af89-fd32-4e16-bb01-465cb89c5372\"\u003e\n  \u003cimg width=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b7306d12-181e-43da-9b61-43b9d442a928\"\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003e\n  Guide\n\u003c/h2\u003e\nThe website allows u to get shareable links (upto 15 mins from generation) which can serve the content to anyone with the link. The other user can copy/download the content. The usage is pretty intutive and one can follow below steps:\n\n\u003cbr/\u003e\n\n1. Open the vercel link and click on ```Paste your text```, a moncaco editor screen will pop-up.\n\n2. One can type into or paste text (of any kind \u003c= 5000 lines) to it and click on ```Share``` button.\n\n3. The link got can be used by anyone to access the paste.\n\n4. One can also click on the ```Protect``` button to setup a 5 digit PIN to encrypt the content.\n\nInternally, the text is end-to-end AES encrypted. The decryption process only occurs at client-side. Both the server \u0026 redis container contain the encrypted text which makes the paste secure in case of data leaks. \n\n\u003ch2 align=\"center\"\u003e\n  Building \u0026 Running\n\u003c/h2\u003e\n\nTo build \u0026 run the project, u must have node.js installed on your system so that u can utilize npm for installing project dependencies and building it. Check out the node.js setup at \u003ca href=\"https://nodejs.org/en/download/package-manager\"\u003einstallation\u003c/a\u003e.\n\nFollow the below steps to run the project locally \u0026 subsequently build it too (not required for deployment tho)\n\n```\n# clone the project to get local folder\ngit clone https://github.com/vercetti322/TextCache.git\n\ncd TextCache\n\n# install the required dependencies (make sure ur current dir has package.json)\nnpm install\n\n# to run it locally, just hit following\nnpm run dev\n\n# to build it (after u have tested test server)\nnpm run build\n```\n\nIs that it? Unfortunately not, u gotta run the backend also and modify the base URL to the localhost port where ur backend runs. Don't worry, just head on to \u003ca href=\"https://github.com/vercetti322/textcache-backend.git\"\u003ebackend\u003c/a\u003e and follow instructions to setup ur server along-with redis!\n\nSeems daunting right? Don't worry deployment to vercel is much straightforward.\n\n\u003ch2 align=\"center\"\u003e\n  Deplopyment\n\u003c/h2\u003e\n\nJust head on to vercel and create a free tier account (mention that you are hobbyist student) until u get an empty dashboard.\nFollow the below steps to deploy:\n\n1. Click on the \"Add new\" and select the option for \"Project\"\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"400\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5cc403f4-4e11-4c0a-8c49-621df6b71848\"\u003e\n\u003c/div\u003e\n\n3. On the import git repository, select your react project (we have used vite here, but no issue with CRA), and simply click \"Deploy\"\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"400\" alt=\"image\" src=\"https://github.com/user-attachments/assets/839b3991-12a6-4626-a0a0-2563a161a945\"\u003e\n\u003c/div\u003e\n   \n5. Also, mention any environment variables (not in our case, i mentioned the base url of hosted server directly).\n\n6. Wait for some time untill the project builds and u get a live link!\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"400\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c279898e-3e56-4394-86f8-550bd11a63d2\"\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003e\n  Issues\n\u003c/h2\u003e \nThis section talks about some issues u might run into while deploying:\n\n1. Make sure u have a \u003ca href=\"https://github.com/vercetti322/TextCache/blob/master/vercel.json\"\u003evercel.json\u003c/a\u003e\n which tells vercel to route back any dynamic routes (as in our case) to ```index.html```.\n\n2. If u get an ```npm run build error (exit 1)``` error then 99% u the ```index.html``` is not able to ref the ```main.jsx```. Other errors like capitalization of components, directory not having ```package.json```, etc. might also be the cause.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercetti322%2Ftextcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercetti322%2Ftextcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercetti322%2Ftextcache/lists"}