{"id":20912458,"url":"https://github.com/fogleman/ribbon","last_synced_at":"2025-07-25T16:34:25.945Z","repository":{"id":144202304,"uuid":"82627635","full_name":"fogleman/ribbon","owner":"fogleman","description":"Ribbon diagrams of proteins in #golang.","archived":false,"fork":false,"pushed_at":"2022-02-19T16:08:32.000Z","size":797,"stargazers_count":248,"open_issues_count":3,"forks_count":24,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-11T06:06:30.770Z","etag":null,"topics":["3d","biochemistry","chemistry","go","protein","protein-data-bank"],"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/fogleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-02-21T02:38:57.000Z","updated_at":"2025-06-15T14:52:15.000Z","dependencies_parsed_at":"2023-06-18T04:30:31.059Z","dependency_job_id":null,"html_url":"https://github.com/fogleman/ribbon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fogleman/ribbon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fribbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fribbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fribbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fribbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/ribbon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fribbon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267030826,"owners_count":24024233,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["3d","biochemistry","chemistry","go","protein","protein-data-bank"],"created_at":"2024-11-18T14:27:27.154Z","updated_at":"2025-07-25T16:34:25.892Z","avatar_url":"https://github.com/fogleman.png","language":"Go","readme":"# Protein Ribbon Diagrams\n\nParse PDB files and render ribbon diagrams of proteins in pure Go.\n\n![4HHB](http://i.imgur.com/UFprBGt.png)\n\n### Installation\n\n[Go](https://golang.org/) should be installed and your `GOPATH` should be set (defaults to `$HOME/go` in Go 1.8+). `$GOPATH/bin` should be on your `$PATH` if you want to run the binaries easily.\n\n    $ go get -u github.com/fogleman/ribbon/cmd/rcsb\n\n### Example Usage\n\nProvide a 4-digit RCSB Structure ID. The PDB file will automatically be downloaded and an image will be rendered. The triangle mesh will also be saved.\n\n```bash\n$ rcsb 4hhb  # generates 4hhb.png and 4hhb.stl\n```\n\n### Resources\n\n[RCSB Protein Data Bank](http://www.rcsb.org/) - Find PDB files of proteins here. Over 100,000 in the database.\n\n[PDB File Format](http://www.wwpdb.org/documentation/file-format-content/format33/v3.3.html) - Details on the PDB file format.\n\n### Package `pdb`\n\n[Documentation](https://godoc.org/github.com/fogleman/ribbon/pdb)\n\nThe `pdb` package parses PDB files. The following entities are currently parsed:\n\n```\nATOM   =\u003e *pdb.Atom\nHETATM =\u003e *pdb.Atom\nCONECT =\u003e *pdb.Connection\nHELIX  =\u003e *pdb.Helix\nSHEET  =\u003e *pdb.Strand\nBIOMT  =\u003e pdb.Matrix\nSMTRY  =\u003e pdb.Matrix\n```\n\nAdditionally, some higher-level constructs are produced:\n\n```\n*pdb.Residue\n*pdb.Chain\n```\n\n### Package `ribbon`\n\n[Documentation](https://godoc.org/github.com/fogleman/ribbon/ribbon)\n\nThe `ribbon` package generates 3D meshes given a `pdb.Model`. It can produce the following types of meshes:\n\n- Ribbon\n- Ball \u0026 stick (for ligands)\n- Space filling\n- Backbone\n\n### Package `fauxgl`\n\nThe [fauxgl](https://github.com/fogleman/fauxgl) library is used for rendering the 3D meshes in pure Go.\n\n### Samples\n\n![Sample](http://i.imgur.com/ImWjsrH.png)\n![Sample](http://i.imgur.com/nQLRbfW.png)\n![Sample](http://i.imgur.com/XNAgIoQ.png)\n![Sample](http://i.imgur.com/YjQeClg.png)\n","funding_links":[],"categories":["Software"],"sub_categories":["Vector Creation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fribbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2Fribbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fribbon/lists"}