{"id":22942426,"url":"https://github.com/stardustdl/loment","last_synced_at":"2026-04-11T20:42:38.516Z","repository":{"id":38373617,"uuid":"279572407","full_name":"StardustDL/loment","owner":"StardustDL","description":"Loment is a light comment service.","archived":false,"fork":false,"pushed_at":"2023-03-15T06:56:39.000Z","size":76,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-07T15:51:56.838Z","etag":null,"topics":["acblog","comment-system","comments","dotnet","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StardustDL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-07-14T11:57:39.000Z","updated_at":"2020-07-22T07:12:20.000Z","dependencies_parsed_at":"2023-01-29T20:35:15.714Z","dependency_job_id":"44296bf0-81d0-453c-81d4-cc7d45d5e7bd","html_url":"https://github.com/StardustDL/loment","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StardustDL%2Floment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StardustDL%2Floment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StardustDL%2Floment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StardustDL%2Floment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StardustDL","download_url":"https://codeload.github.com/StardustDL/loment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709908,"owners_count":20821298,"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":["acblog","comment-system","comments","dotnet","golang"],"created_at":"2024-12-14T13:47:48.413Z","updated_at":"2025-10-05T09:11:22.173Z","avatar_url":"https://github.com/StardustDL.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loment\n\n![CI](https://github.com/StardustDL/loment/workflows/CI/badge.svg) ![CD](https://github.com/StardustDL/loment/workflows/CD/badge.svg) ![License](https://img.shields.io/github/license/StardustDL/loment.svg) [![Loment](https://buildstats.info/nuget/Loment)](https://www.nuget.org/packages/Loment/)\n\nLoment is a Light cOmMENT service.\n\n## API\n\n- **Post** `/` with *Comment* body: Create comment, return id\n- **Post** `/query` with *CommentQuery* body: Query comments, return list of comments\n- - **Post** `/count` with *CommentQuery* body: Query and count comments, return the number of comments\n- **Get** `/id`: Get comment by id, return comment\n- **Delete** `/id`: Delete comment by id, return if done\n- **Put** `/id` with *Comment* body: Update comment by id, return if done\n\n## Models\n\n```go\ntype Comment struct {\n\tId               string\n\tCreationTime     time.Time\n\tModificationTime time.Time\n\tContent          string\n\tUri              string\n\tAuthor           string\n\tEmail            string\n\tLink             string\n\tExtra            string\n}\n\ntype CommentQuery struct {\n\tId               string\n\tCreationTime     time.Time\n\tModificationTime time.Time\n\tContent          string\n\tUri              string\n\tAuthor           string\n\tEmail            string\n\tLink             string\n\tOffset           int\n\tLimit            int\n}\n```\n\n## SDK\n\nFor C#.\n\n```sh\ndotnet add package Loment\n```\n\nAPI:\n\n```csharp\npublic interface ILomentService\n{\n    Task\u003cstring?\u003e Create(Comment comment, CancellationToken cancellationToken = default);\n\n    Task\u003cIList\u003cComment\u003e\u003e Query(CommentQuery query, CancellationToken cancellationToken = default);\n\n    Task\u003clong\u003e Count(CommentQuery query, CancellationToken cancellationToken = default);\n\n    Task\u003cComment?\u003e Get(string id, CancellationToken cancellationToken = default);\n\n    Task\u003cbool\u003e Delete(string id, CancellationToken cancellationToken = default);\n\n    Task\u003cbool\u003e Update(Comment comment, CancellationToken cancellationToken = default);\n}\n```\n\n## Status\n\n![](https://buildstats.info/github/chart/StardustDL/loment?branch=master)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstardustdl%2Floment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstardustdl%2Floment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstardustdl%2Floment/lists"}