An open API service indexing awesome lists of open source software.

https://github.com/nkte8/skyshare

Bluesky API Client with OGP generator.
https://github.com/nkte8/skyshare

bluesky client generator ogp-image webservice

Last synced: 12 months ago
JSON representation

Bluesky API Client with OGP generator.

Awesome Lists containing this project

README

          

![](./astro/public/materials/longlogo.svg)

[Skyshare](https://skyshare.uk/) is web application that BlueSky user saves their time of boring SNS X.com(Twitter).

## How works

Skyshare post your post to Bluesky with AT Protocol.
for twitter, because of X taxes, Skyshare present Post Link: [Like that](https://twitter.com/intent/tweet?text=This is tweet sample.&url=https://skyshare.uk/posts/nlla.bsky.social_3kk7qzpffl22n/), can only with media by OGP image.

## AT Protocol

Because of bluesky official typescript client seems not available works on React, Skyshare uses REST API directry by fetch API like that...

```ts:src/utils/atproto_api/createSession.ts
import endpoint_url, { com_atproto } from "./base"
import mtype from "./models/createSession.json"
import etype from "./models/error.json"
const endpoint = endpoint_url(com_atproto.server.createSession)

export const api = async ({
identifier,
password,
}:{
identifier: string,
password: string,
}): Promise => fetch(endpoint,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(
{
identifier: identifier,
password: password,
})
}).then((response) => response.json()
).catch(() => {})

export default api
```

## more info

[Zenn article: for japanese developer](https://zenn.dev/nkte8/articles/2024-02-03-r01)