{"id":16910212,"url":"https://github.com/haileyok/blug","last_synced_at":"2025-07-25T14:03:13.251Z","repository":{"id":233256735,"uuid":"786376293","full_name":"haileyok/blug","owner":"haileyok","description":"My little ATProtocol blog using Remix, Tailwind, and Redis","archived":false,"fork":false,"pushed_at":"2024-11-12T06:41:56.000Z","size":1952,"stargazers_count":105,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-22T01:50:47.832Z","etag":null,"topics":["atproto","blog","bluesky","remix"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haileyok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-14T09:12:24.000Z","updated_at":"2025-07-18T01:52:53.000Z","dependencies_parsed_at":"2024-04-17T10:49:04.681Z","dependency_job_id":"627a42b1-2df7-4763-85ac-5c9dc0fa17d6","html_url":"https://github.com/haileyok/blug","commit_stats":null,"previous_names":["haileyok/blug"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haileyok/blug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haileyok%2Fblug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haileyok%2Fblug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haileyok%2Fblug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haileyok%2Fblug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haileyok","download_url":"https://codeload.github.com/haileyok/blug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haileyok%2Fblug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267015696,"owners_count":24021610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atproto","blog","bluesky","remix"],"created_at":"2024-10-13T18:59:49.180Z","updated_at":"2025-07-25T14:03:13.200Z","avatar_url":"https://github.com/haileyok.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blug - An ATProtocol Blog\n\nA simple little blog that pulls posts from your PDS, using the `com.whtwnd.blog.entry` lexicon. Uses Redis to keep them\ncached for a bit, in case you're popular and don't want to be constantly polling your PDS.\n\n```ts\ninterface WhtwndBlogEntryRecord {\n  $type: 'com.whtwnd.blog.entry'\n  content?: string\n  createdAt: string\n  theme?: string\n  title: string\n  ogp?: {\n    height: number | null\n    url: string | null\n    width: number | null\n  }\n}\n\ninterface WhtwndBlogEntryView {\n  rkey: string\n  cid: string\n  title: string\n  content?: string\n  createdAt: string\n  banner?: string\n}\n```\n\n## Configuration\n\nJust a few things are needed in your `.env` file.\n\n```shell\nATP_SERVICE=https://pds.haileyok.com/\nATP_IDENTIFIER=haileyok.com\nATP_DID=did:plc:oisofpd7lj26yvgiivf3lxsi\n```\n\n- `ATP_SERVICE` is the URL of your PDS. It's probably hosted by Bluesky. Find it at [internect.info](https://internect.info).\n- `ATP_IDENTIFIER` is your handle. It's used to know which repo to get records from.\n- `ATP_DID` is...your DID. Again, find it at [internect.info](https://internect.info). Used to get your Bluesky profile\n  (I use this just to get the already-hosted copy of your profile picture. You could rewrite this if you wanted to, would\n  be faster too).\n\nYou also need to have Redis running. I didn't bother adding configuration for it, so if you want to change where it's\nhosted at check `src/redis/redis.ts`.\n\n```shell\n# macos\nbrew install redis\nbrew services start redis\n\n# ubuntu\nsudo apt-get install redis-server\nsudo systemctl start redis\n\n# centos\nsudo yum install redis\nsudo systemctl start redis\n```\n\n## Development\n\nJust run the vite server, you know, like usual?\n\n```shellscript\nyarn run dev\n```\n\n## Deployment\n\nMake sure you have `dotenv-cli` installed.\n\n```shell\nnpm install -g dotenv-cli\n```\n\nThen build and serve.\n\n```\nyarn build\nyarn start\n```\n\n## Creating Posts\n\nThere's various ways you could do this. I just use a Markdown editor and then manually save them with `createRecord`.\nYou can also use the editor at [whtwnd's website](https://whtwnd.com/edit) to create them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaileyok%2Fblug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaileyok%2Fblug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaileyok%2Fblug/lists"}