{"id":29794170,"url":"https://github.com/andrearcaina/fafnir","last_synced_at":"2026-04-10T13:32:26.109Z","repository":{"id":303158238,"uuid":"1014568363","full_name":"andrearcaina/fafnir","owner":"andrearcaina","description":"distributed and scalable microservice backend for trading platforms","archived":false,"fork":false,"pushed_at":"2026-03-10T01:32:39.000Z","size":16925,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-10T09:44:27.191Z","etag":null,"topics":["docker","gcp","go","grafana","graphql","grpc","microservices","nats","prometheus"],"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/andrearcaina.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-06T01:28:26.000Z","updated_at":"2026-03-10T01:32:42.000Z","dependencies_parsed_at":"2025-07-06T03:24:31.530Z","dependency_job_id":"48d5b200-8781-4c78-8920-401aa29ffd8d","html_url":"https://github.com/andrearcaina/fafnir","commit_stats":null,"previous_names":["andrearcaina/den","andrearcaina/fafnir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrearcaina/fafnir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffafnir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffafnir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffafnir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffafnir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrearcaina","download_url":"https://codeload.github.com/andrearcaina/fafnir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffafnir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31645284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","gcp","go","grafana","graphql","grpc","microservices","nats","prometheus"],"created_at":"2025-07-28T03:09:17.665Z","updated_at":"2026-04-10T13:32:25.198Z","avatar_url":"https://github.com/andrearcaina.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fáfnir\n\n\u003e The name \"Fáfnir\" is inspired from Norse mythology, and refers to a dwarf who transformed into a mythical Germanic dragon, so he can guard his treasure hoard of gold and such.\n\nThis is a purely educational project that serves as a hands-on demonstration of building a modern codebase\nthat explores microservices architecture, asynchronous event-driven design,\nand best practices for creating a scalable, distributed application.\nI do not intend to use this project for other purposes and is mostly\na playground for my learning, experimentation, and exploration.\n\nNow for the application:\nIt is designed to function as the backend for a stock trading simulator/platform, including services for user management, authentication, stock data retrieval, buy/sell operations, and security/permissions.\n\n## Documentation\n\nFor more detailed information, please refer to the documentation in the `docs/` directory, or visit the following links:\n\n| Guide                                | Description                         |\n| ------------------------------------ | ----------------------------------- |\n| [Architecture](docs/architecture.md) | Project structure, service overview |\n| [Development](docs/development.md)   | Setup, local dev, make commands     |\n| [Database](docs/database.md)         | Migrations, Goose, DB details       |\n| [GraphQL](docs/graphql.md)           | API schema, queries, mutations      |\n| [Designs](docs/designs)              | Excalidraw designs and images       |\n\n## TODO\n\nIn no particular order:\n\n- [x] Design and implement additional microservices ([issue #15](https://github.com/andrearcaina/fafnir/issues/15)).\n- [x] Integrate NATS for asynchronous events and messaging ([issue #11](https://github.com/andrearcaina/fafnir/issues/11)).\n    - [x] Swapped from Pub/Sub to Worker Queues for message persistence with NATS JetStream ([issue #20](https://github.com/andrearcaina/fafnir/issues/20)).\n    - [x] Implement more events across services than just user creation.\n- [x] Create system architecture, network and data diagrams (upkeep as much as possible).\n- [x] Build a simulation engine for orchestrating trading events ([PR #32](https://github.com/andrearcaina/fafnir/pull/32)).\n- [ ] Add unit, integration, end-to-end and load/stress tests.\n    - [x] Perform load testing using Locust to simulate concurrent users ([issue #8](https://github.com/andrearcaina/fafnir/issues/8)).\n- [x] Explore Kubernetes local implementation ([issue #5](https://github.com/andrearcaina/fafnir/issues/5)).\n    - [x] Use Helm for Kubernetes package management and manifests ([issue #29](https://github.com/andrearcaina/fafnir/issues/29)).\n- [x] Explore centralizing logging with Elasticsearch ([issue #6](https://github.com/andrearcaina/fafnir/issues/6)).\n    - [x] Migrate to utilizing [Loki](https://grafana.com/oss/loki/) for both Minikube and docker-compose ([issue #29](https://github.com/andrearcaina/fafnir/issues/29)).\n    - [x] Migrate from `log` to `log/slog` for structured logging and better integration with [Loki](https://grafana.com/oss/loki/) ([issue #31](https://github.com/andrearcaina/fafnir/issues/31)).\n- [ ] Implement a CI/CD pipeline for automated testing and Docker builds.\n- [ ] Production deployment via DigitalOcean and Traefik ([issue #22](https://github.com/andrearcaina/fafnir/issues/22)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearcaina%2Ffafnir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrearcaina%2Ffafnir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearcaina%2Ffafnir/lists"}