Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

sheep-snow/skyshare

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skyshare 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, 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...

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<typeof mtype & typeof etype> => 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

About

Bluesky API Client with OGP generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.5%
  • Astro 16.0%
  • JavaScript 1.4%
  • Shell 0.1%