Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist

**/node_modules
**/dist
8 changes: 4 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ Create a new Tsky instance.
```ts
import { Tsky } from 'tsky'

const app = new AppBskyNS(); // TODO
const tsky = new Tsky(app);
const app = new AppBskyNS() // TODO
const tsky = new Tsky(app)
```

### `tsky.profile(did: string): Promise<Profile>`

Get a profile by DID.

```ts
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd');
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd')

console.log(profile.handle);
console.log(profile.handle)
```
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ outline: deep

# Examples

TODO: Add examples here
TODO: Add examples here
10 changes: 4 additions & 6 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ $ bun add -D tsky

:::


## Usage

```ts
import { Tsky } from 'tsky'

const app = new AppBskyNS() // TODO
const tsky = new Tsky(app)

const app = new AppBskyNS(); // TODO
const tsky = new Tsky(app);

const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd');
const profile = await tsky.profile('did:plc:giohuovwawlijq7jkuysq5dd')

console.log(profile.handle);
console.log(profile.handle)
```
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ features:
icon: ☁️
details: Like a walk on the clouds
---

File renamed without changes.
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,21 @@
"docs:preview": "pnpm run --filter tsky-docs preview",
"format": "biome check --write .",
"format:check": "biome check",
"lint": "pnpm --filter tsky run lint",
"lint:fix": "pnpm --filter tsky run lint:fix"
"lint": "eslint ./packages ./docs",
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4"
"@antfu/eslint-config": "^3.11.2",
"@biomejs/biome": "^1.9.4",
"@eslint/js": "^9.15.0",
"eslint": "^8.57.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-promise": "^6.0.0",
"nano-staged": "^0.8.0",
"typescript-eslint": "^8.16.0"
},
"nano-staged": {
"*.{js,ts,cjs,mjs}": ["biome check --write --"]
}
}
9 changes: 1 addition & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,9 @@
"test:typescript": "tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^3.11.2",
"@atproto/api": "^0.13.18",
"@eslint/js": "^9.15.0",
"eslint": "^8.57.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-promise": "^6.0.0",
"globals": "^15.12.0",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
"typescript": "^5.7.2"
}
}
48 changes: 30 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
packages:
- packages/*
- docs/