{"id":37105330,"url":"https://github.com/jonhadfield/gosn","last_synced_at":"2026-01-14T12:42:25.395Z","repository":{"id":57492000,"uuid":"148219037","full_name":"jonhadfield/gosn","owner":"jonhadfield","description":"A go library for Standard Notes","archived":true,"fork":false,"pushed_at":"2020-07-09T17:26:49.000Z","size":472,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T05:59:18.116Z","etag":null,"topics":["golang","golang-library","standard-notes"],"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/jonhadfield.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-09-10T21:03:54.000Z","updated_at":"2025-09-23T21:46:19.000Z","dependencies_parsed_at":"2022-08-28T11:50:22.635Z","dependency_job_id":null,"html_url":"https://github.com/jonhadfield/gosn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jonhadfield/gosn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fgosn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fgosn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fgosn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fgosn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhadfield","download_url":"https://codeload.github.com/jonhadfield/gosn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fgosn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["golang","golang-library","standard-notes"],"created_at":"2026-01-14T12:42:24.664Z","updated_at":"2026-01-14T12:42:25.366Z","avatar_url":"https://github.com/jonhadfield.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosn\n[![Build Status](https://www.travis-ci.org/jonhadfield/gosn.svg?branch=master)](https://www.travis-ci.org/jonhadfield/gosn) [![CircleCI](https://circleci.com/gh/jonhadfield/gosn/tree/master.svg?style=svg)](https://circleci.com/gh/jonhadfield/gosn/tree/master) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/jonhadfield/gosn/) [![Go Report Card](https://goreportcard.com/badge/github.com/jonhadfield/gosn)](https://goreportcard.com/report/github.com/jonhadfield/gosn) \n\n### version 2 now available: [gosn-v2](https://github.com/jonhadfield/gosn-v2)\n\n# about\n\n\u003ca href=\"https://standardnotes.org/\" target=\"_blank\"\u003eStandard Notes\u003c/a\u003e is a service and application for the secure management and storage of notes.  \n\ngosn is a library to help develop your own application to manage notes on the official, or your self-hosted, Standard Notes server.\n\n# installation\n\nUsing go get: ``` go get github.com/jonhadfield/gosn```\n\n# documentation\n\n- [guides](docs/index.md)\n- [go docs](https://godoc.org/github.com/jonhadfield/gosn)\n\n# basic usage\n## authenticating\n\nTo interact with Standard Notes you first need to sign in:\n\n```golang\n    sIn := gosn.SignInInput{\n        Email:     \"someone@example.com\",\n        Password:  \"mysecret,\n    }\n    sOut, _ := gosn.SignIn(sIn)\n```\n\nThis will return a session containing the necessary secrets and information to make requests to get or put data.\n\n## getting items\n\n```golang\n    input := GetItemsInput{\n        Session: sOut.Session,\n    }\n    gio, _ := GetItems(input)\n```\n\n## creating a note\n\n```golang\n    # create note content\n    content := NoteContent{\n        Title:          \"Note Title\",\n        Text:           \"Note Text\",\n    }\n    # create note\n    note := NewNote()\n    note.Content = content\n    \n    # sync note\n    pii := PutItemsInput{\n    \t\tSession: sOut.Session,\n    \t\tItems:   []gosn.Notes{note},\n    }\n    pio, _ := PutItems(pii)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fgosn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhadfield%2Fgosn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fgosn/lists"}