{"id":17438888,"url":"https://github.com/fssay/secrets-cafe","last_synced_at":"2025-03-01T14:30:38.889Z","repository":{"id":222368316,"uuid":"749794806","full_name":"FssAy/secrets-cafe","owner":"FssAy","description":"Website for sharing stories anonymously","archived":true,"fork":false,"pushed_at":"2024-06-29T16:34:38.000Z","size":2191,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T22:23:37.914Z","etag":null,"topics":["hyper-rs","rust","rust-lang","surrealdb","vanilla-js"],"latest_commit_sha":null,"homepage":"https://secrets.cafe","language":"HTML","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/FssAy.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-01-29T12:15:26.000Z","updated_at":"2024-07-15T10:32:33.000Z","dependencies_parsed_at":"2024-02-24T23:21:43.340Z","dependency_job_id":"e84d31b2-487e-4c88-87a1-669d8e82c611","html_url":"https://github.com/FssAy/secrets-cafe","commit_stats":null,"previous_names":["fssay/secrets-cafe"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FssAy%2Fsecrets-cafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FssAy%2Fsecrets-cafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FssAy%2Fsecrets-cafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FssAy%2Fsecrets-cafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FssAy","download_url":"https://codeload.github.com/FssAy/secrets-cafe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241377701,"owners_count":19953149,"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":["hyper-rs","rust","rust-lang","surrealdb","vanilla-js"],"created_at":"2024-10-17T12:53:24.167Z","updated_at":"2025-03-01T14:30:38.443Z","avatar_url":"https://github.com/FssAy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secrets Cafe\nSource of the web page [secrets.cafe](https://secrets.cafe/) which is a platform for people to share their stories anonymously.\n\nCurrently, this is not a finished product, it lacks many features and is filled with bugs. \nI am not a frontend developer, so the website lacks proper support for mobile devices and the JS scripts might have a lot of issues.\nIf you would like to help see [Contributions](#contributions) section.\n\n### Usage\nIf you want to run **secrets.cafe** locally I would recommend building it in a release mode without any features. \u003cbr\u003e\n`cargo run --release`\n\nRunning in the debug mode might cause a crash when doing some database operations.\nIt can be fixed by increasing the stack size with tokio runtime builder, but I did not implement it yet.\n\n### Features\n- `tls` - This is an internal feature used as a \"_dependency_\" of other features for serving data over HTTPS.\n- `cloudflare` - Implementation of the TLS to work with Cloudflare certificates.\n- `rate-limits` - Enables rate limits on some API calls.\n\n### ToDo\nThis is a list of things to do before 1.0 release\n- [ ] Test HTML sanitizer.\n- [ ] Improve security.\n- [ ] Rework frontend.\n- [ ] Rework resource loading. _(?)_\n- [x] Add rate limits.\n- [ ] Add proper API documentation.\n- [ ] Add post page browser.\n\n### Contributions\nThe backend works by serving static vanilla files. \nTo comply with the backend it's important that your framework of choice allows to build the project into static vanilla files.\n\nPlease put the frontend source files into the [frontend-src](frontend-src) directory. \nIt should also contain a brief tutorial on how to build the project. \nIf that's possible it would be amazing if the build process could automatically update the [frontend](frontend) directory.\n\nNew static vanilla files should be placed into [frontend](frontend) directory.\nIf you want to add new files, or remove the existing ones please update the [resources](frontend/resources.json) file.\n\u003cbr\u003e\n_(Files placed in the section `\"other\"` might not work correctly, if that happens please notify me)_\n\nAny additional details like API endpoints and style guidelines can be found at [docs](docs) directory.\nYou don't have to follow the style guidelines.\n\nFor any questions please create an issue, or join [this](https://opensourceforce.net/discord) discord server and visit the [Secrets Cafe channel](https://canary.discord.com/channels/913584348937207839/1213547496375189534).\n\n**These are the current reworks that are being worked on:**\n- https://github.com/mk-nlp/secrets-cafe\n\n### API\nCheck out the [API.md](docs/API.md) file for details.\n\n### Console\nThe backend accepts input commands that can be executed at runtime:\n- `debug` - Responds with Ok status\n- `reload frontend` - Reloads all resources from \"frontend\" directory.\n- `mod add \u003cname\u003e \u003cpass\u003e \u003ctier\u003e` - Adds a new moderator account.\n   ###### Example: `mod add User1 1234567 1`\n- `mod authorise \u003cinput\u003e \u003ctier\u003e` - Changes mod's permissions tier.\n   ###### Example: `mod authorise mod:62345321545 3`\n\nTier numbers can be found at `src/database/types/tier.rs`\n\n---\n[secrets.cafe](https://secrets.cafe) © 2024 by [FssAy](https://github.com/FssAy) is licensed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/?ref=chooser-v1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffssay%2Fsecrets-cafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffssay%2Fsecrets-cafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffssay%2Fsecrets-cafe/lists"}