{"id":17043499,"url":"https://github.com/thebaer/writeas-self-destruct","last_synced_at":"2025-07-30T14:16:23.761Z","repository":{"id":145369257,"uuid":"180428677","full_name":"thebaer/writeas-self-destruct","owner":"thebaer","description":"Automatically delete Write.as posts after a single view (demo)","archived":false,"fork":false,"pushed_at":"2019-04-09T19:08:38.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T05:27:25.434Z","etag":null,"topics":["go","writeas"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebaer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-04-09T18:41:08.000Z","updated_at":"2021-08-04T19:49:36.000Z","dependencies_parsed_at":"2023-05-04T15:01:36.962Z","dependency_job_id":null,"html_url":"https://github.com/thebaer/writeas-self-destruct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebaer%2Fwriteas-self-destruct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebaer%2Fwriteas-self-destruct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebaer%2Fwriteas-self-destruct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebaer%2Fwriteas-self-destruct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebaer","download_url":"https://codeload.github.com/thebaer/writeas-self-destruct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245045685,"owners_count":20552077,"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":["go","writeas"],"created_at":"2024-10-14T09:29:41.536Z","updated_at":"2025-03-23T02:24:04.360Z","avatar_url":"https://github.com/thebaer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Self-Destructing Write.as Posts\n\nThis demo application automatically deletes a Write.as post after it's been viewed once.\n\nIt accomplishes this by polling a post you own, checking the number of views, and deleting it if `Views \u003e 0`. Since the platform doesn't increment the view count for API calls, this works.\n\n## How to use this\n\nPublish an anonymous post on Write.as, and share the full URL with the person who you'd like to read the message.\n\nNow modify `main.go` to include your login credentials and the post's ID (it's the part between `https://write.as/` and `.md` in the URL you just shared). Then start the application, and leave it running.\n\n## Security\n\n**This is for demonstration only; please don't use it to communicate sensitive information.** This tool is easily circumvented if the person you shared the link with accesses your post with the `.txt` extension, as this does not increment the view count, and thus their view won't be registered. They could also request the post via the API or with a `User-Agent` header that mimics a bot ([any listed here](https://github.com/writeas/web-core/blob/master/bots/bots.go)) to avoid the view count incrementing. These trivial workarounds mean that this tool makes no guarantees that your post is truly only viewed once.\n\n## Polling interval\n\nThe Write.as API doesn't rate-limit requests on most endpoints today, but may in the future. Please be mindful of the polling interval you choose if you use this tool over a long period of time, and keep it to at least 30 seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebaer%2Fwriteas-self-destruct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebaer%2Fwriteas-self-destruct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebaer%2Fwriteas-self-destruct/lists"}