{"id":21591405,"url":"https://github.com/classpythonaddike/croissant","last_synced_at":"2026-01-15T02:21:47.001Z","repository":{"id":47902758,"uuid":"384590081","full_name":"classPythonAddike/croissant","owner":"classPythonAddike","description":"A fast, easy to use Rest API framework implemented in Golang","archived":true,"fork":false,"pushed_at":"2021-08-12T02:02:43.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T10:16:13.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/classPythonAddike.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}},"created_at":"2021-07-10T02:04:24.000Z","updated_at":"2024-01-21T12:31:42.000Z","dependencies_parsed_at":"2022-08-31T14:31:47.425Z","dependency_job_id":null,"html_url":"https://github.com/classPythonAddike/croissant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/classPythonAddike/croissant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classPythonAddike%2Fcroissant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classPythonAddike%2Fcroissant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classPythonAddike%2Fcroissant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classPythonAddike%2Fcroissant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/classPythonAddike","download_url":"https://codeload.github.com/classPythonAddike/croissant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classPythonAddike%2Fcroissant/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265554756,"owners_count":23787278,"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":"2024-11-24T16:25:50.018Z","updated_at":"2026-01-12T05:10:28.157Z","avatar_url":"https://github.com/classPythonAddike.png","language":"Go","readme":"\u003ch1 align=center\u003eCroissant\u003c/h1\u003e\n\n\u003cdiv align=center\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/classPythonAddike/croissant\"\u003e\n  \u003cimg src=\"https://pkg.go.dev/badge/pkg.go.dev/github.com/classPythonAddike/croissant.svg\"\u003e\n  \u003c!--[![codecov](https://codecov.io/gh/classPythonAddike/croissant/branch/master/graph/badge.svg)](https://codecov.io/gh/classPythonAddike/croissant)--\u003e\n  \u003cimg src=\"https://goreportcard.com/badge/github.com/classPythonAddike/croissant\"\u003e\n  \u003cimg src=\"https://sourcegraph.com/github.com/classPythonAddike/croissant/-/badge.svg\"\u003e\n  \u003cimg src=\"https://www.codetriage.com/classpythonaddike/croissant/badges/users.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/classPythonAddike/croissant?style=flat\"\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\nA fast, easy to use Rest API Framework implemented in Golang\n\nCroissant was inspired by [FastAPI](https://fastapi.tiangolo.com/). It aims to implement FastAPI features such as Request Body Parsing, Built in Documentation Handling, and lastly, (but definitely not the least) less code required.\n\n## Goals for the Project\n\nI am aiming for \u003e 90% test coverage of Croissant's source code. In addition to this, I also want Croissant to be completely type safe.\n\n## Performance\n\nCroissant's performance is on par with API's created with Golang's standard lib - `net/http`. This is because, as of now, it is just a simple wrapper around the library. It is likely to decrease in speed once more features are added, and I will definitely try to reduce the impact.\n\nYou can see the programs used for comparison in the [benchmarks directory](/benchmarks).\n\n## Code Length\n\nMy primary goal for Croissant is to reduce the code needed for API's written in Golang.\n\n*As of now, Croissant API's require more code than net/http. But remember, these values are taken from the benchmark programs, which only involve 1 route. In addition to this, Croissant doesn't provide much more than net/http at the moment. So these values are not suitable to compare with, and are more than likely to change in the future.*\n\n1. Framework - The framework used while performing tests\n2. Code Length - Lines of code written, expressed with respect to Croissant (smaller is better)\n3. Time - Milliseconds taken to serve 1k requests, at 10 concurrent requests (Baton is used to test)\n\n| Framework | Code Length  | Time |\n|-----------|--------------|------|\n| Croissant | 1\t           | 40   |\n| net/http  | 0.8          | 35   |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclasspythonaddike%2Fcroissant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclasspythonaddike%2Fcroissant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclasspythonaddike%2Fcroissant/lists"}