{"id":23802157,"url":"https://github.com/flyingcakes85/static-serve-api","last_synced_at":"2026-06-07T16:31:36.657Z","repository":{"id":228402792,"uuid":"773883930","full_name":"flyingcakes85/static-serve-api","owner":"flyingcakes85","description":"Simple static API for serving custom quotes!  Primarily to serve custom quotes on my WIP homepage redesign.","archived":false,"fork":false,"pushed_at":"2024-03-18T15:14:26.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T22:19:52.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/flyingcakes85.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}},"created_at":"2024-03-18T15:10:22.000Z","updated_at":"2024-03-18T15:10:46.000Z","dependencies_parsed_at":"2024-03-18T16:45:32.181Z","dependency_job_id":"9dcbf7be-dbeb-4eca-ae31-1d55d8fad758","html_url":"https://github.com/flyingcakes85/static-serve-api","commit_stats":null,"previous_names":["flyingcakes85/static-serve-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcakes85%2Fstatic-serve-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcakes85%2Fstatic-serve-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcakes85%2Fstatic-serve-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcakes85%2Fstatic-serve-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyingcakes85","download_url":"https://codeload.github.com/flyingcakes85/static-serve-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240052226,"owners_count":19740473,"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":[],"created_at":"2025-01-01T22:19:56.402Z","updated_at":"2025-11-11T16:31:42.222Z","avatar_url":"https://github.com/flyingcakes85.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Serve API\n\nA simple static API for serving custom quotes!\n\nThis is made primarily to serve custom quotes on my WIP [homepage](https://snehit.dev) redesign.\n\n## Usage\n\nAssuming the input data is contained in `data.yaml`, this command will emit quotes in `./public` folder.\n\n```sh\n./static-serve-api data.yaml\n```\n\nUse `-o PATH` to alter the emit folder.\n\n```sh\n./static-serve-api data.yaml -o /web/static/quotes\n```\n\n\n## Data file format\n\nInput data file is expected to be in YAML format.\n\n```yaml\npath_prefix: \"quotes\"\nquotes:\n  - text: \"A beautiful quote.\"\n    author: \"Author Name\"\n  - text: \"Another beautiful quote\"\n    author: \"Author Name\"\n    custom_path: \"collection\"\n```\n\n- `path_prefix`: (*string*) **optional** property, specifying a path prefix under the emit path provided on command line\n- `quotes` (*array*) each element must have the following\n    - `text`: (*string*) the actual quote\n    - `author`: (*string*) author attributed\n    - `auto_id`: (*boolean*) **optional**, set false to disable auto-numbered file for the specific quote (this must be accompanies with a `custom_path`, otherwise the specific quote won't be emitted)\n    - `custom_id`: (*string*) **optional**, a custom name for the emitted file for the specific quote\n    - `custom_path`: (*string*) **optional**, an override to `path_prefix` for the specific quote\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingcakes85%2Fstatic-serve-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyingcakes85%2Fstatic-serve-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingcakes85%2Fstatic-serve-api/lists"}