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.
- Host: GitHub
- URL: https://github.com/nkte8/skyshare
- Owner: nkte8
- License: bsd-3-clause
- Created: 2024-03-13T12:36:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T11:10:25.000Z (about 2 years ago)
- Last Synced: 2025-04-10T12:56:09.630Z (about 1 year ago)
- Topics: bluesky, client, generator, ogp-image, webservice
- Language: TypeScript
- Homepage: https://skyshare.uk/
- Size: 1.61 MB
- Stars: 35
- Watchers: 3
- Forks: 4
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[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)