{"id":36726085,"url":"https://github.com/go-session/buntdb","last_synced_at":"2026-01-12T12:01:50.277Z","repository":{"id":57485347,"uuid":"136287309","full_name":"go-session/buntdb","owner":"go-session","description":"BuntDB store for Session.","archived":false,"fork":false,"pushed_at":"2018-10-29T02:28:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T20:49:14.776Z","etag":null,"topics":["buntdb-session","session"],"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/go-session.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":"2018-06-06T07:06:02.000Z","updated_at":"2018-10-29T02:27:04.000Z","dependencies_parsed_at":"2022-09-02T00:02:27.764Z","dependency_job_id":null,"html_url":"https://github.com/go-session/buntdb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/go-session/buntdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-session%2Fbuntdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-session%2Fbuntdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-session%2Fbuntdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-session%2Fbuntdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-session","download_url":"https://codeload.github.com/go-session/buntdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-session%2Fbuntdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["buntdb-session","session"],"created_at":"2026-01-12T12:01:50.200Z","updated_at":"2026-01-12T12:01:50.268Z","avatar_url":"https://github.com/go-session.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BuntDB store for [Session](https://github.com/go-session/session)\n\n[![Build][Build-Status-Image]][Build-Status-Url] [![Codecov][codecov-image]][codecov-url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]\n\n## Quick Start\n\n### Download and install\n\n```bash\n$ go get -u -v github.com/go-session/buntdb\n```\n\n### Create file `server.go`\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/go-session/buntdb\"\n\t\"github.com/go-session/session\"\n)\n\nfunc main() {\n\tsession.InitManager(\n\t\tsession.SetStore(buntdb.NewFileStore(\"session.db\")),\n\t)\n\n\thttp.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tstore, err := session.Start(context.Background(), w, r)\n\t\tif err != nil {\n\t\t\tfmt.Fprint(w, err)\n\t\t\treturn\n\t\t}\n\n\t\tstore.Set(\"foo\", \"bar\")\n\t\terr = store.Save()\n\t\tif err != nil {\n\t\t\tfmt.Fprint(w, err)\n\t\t\treturn\n\t\t}\n\n\t\thttp.Redirect(w, r, \"/foo\", 302)\n\t})\n\n\thttp.HandleFunc(\"/foo\", func(w http.ResponseWriter, r *http.Request) {\n\t\tstore, err := session.Start(context.Background(), w, r)\n\t\tif err != nil {\n\t\t\tfmt.Fprint(w, err)\n\t\t\treturn\n\t\t}\n\n\t\tfoo, ok := store.Get(\"foo\")\n\t\tif ok {\n\t\t\tfmt.Fprintf(w, \"foo:%s\", foo)\n\t\t\treturn\n\t\t}\n\t\tfmt.Fprint(w, \"does not exist\")\n\t})\n\n\thttp.ListenAndServe(\":8080\", nil)\n}\n```\n\n### Build and run\n\n```bash\n$ go build server.go\n$ ./server\n```\n\n### Open in your web browser\n\n\u003chttp://localhost:8080\u003e\n\n    foo:bar\n\n## MIT License\n\n    Copyright (c) 2018 Lyric\n\n[Build-Status-Url]: https://travis-ci.org/go-session/buntdb\n[Build-Status-Image]: https://travis-ci.org/go-session/buntdb.svg?branch=master\n[codecov-url]: https://codecov.io/gh/go-session/buntdb\n[codecov-image]: https://codecov.io/gh/go-session/buntdb/branch/master/graph/badge.svg\n[reportcard-url]: https://goreportcard.com/report/github.com/go-session/buntdb\n[reportcard-image]: https://goreportcard.com/badge/github.com/go-session/buntdb\n[godoc-url]: https://godoc.org/github.com/go-session/buntdb\n[godoc-image]: https://godoc.org/github.com/go-session/buntdb?status.svg\n[license-url]: http://opensource.org/licenses/MIT\n[license-image]: https://img.shields.io/npm/l/express.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-session%2Fbuntdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-session%2Fbuntdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-session%2Fbuntdb/lists"}