1import UrbitApi from '@urbit/http-api';
2console.log(`Initializing Urbit API at ${Date()}`);
3const api: UrbitApi = new UrbitApi('');
5function scry<T = any>(path: string): Promise<T> {
6 return api.scry<T>({ app: 'astrolabe', path });
9function getPoint(patp: string): Promise<any> {
10 return scry<any>(`/point/${patp}`);
13function getSpawnedPoints(patp: string): Promise<any> {
14 return scry<any>(`/point/${patp}/spawned`);
17function searchPoints(search: string): Promise<any> {
18 return scry<any>(`/search/${search}`);
21function getDoc(path: string): Promise<string> {
22 return scry<string>(`/doc/${path}`);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list