Metadata-Version: 2.4
Name: blueskyfeed
Version: 0.1.0
Summary: A Django app for displaying a cached Bluesky author feed.
Home-page: https://github.com/peterkmurphy/blueskyfeed
Author: Peter Murphy
Author-email: peterkmurphy@gmail.com
License: LICENSE.txt
Keywords: bluesky atproto django feed sidebar
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: Django>=5.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# blueskyfeed

A small Django application that fetches and caches a read-only Bluesky author
feed from the public AT Protocol API, then renders it with a template tag.

No Bluesky credentials are required.

## Background

The feature and placement were inspired by Mezzanine’s
[`mezzanine.twitter`](https://github.com/stephenmcd/mezzanine) sidebar widget
(“Recent Tweets”): a compact, cached list of recent posts in the site’s right
column. `blueskyfeed` is a new implementation for Bluesky/AT Proto, not a fork
of Mezzanine’s Twitter polling code.

## Installation

Install the package, add `blueskyfeed` to `INSTALLED_APPS`, configure the
settings below, and include `{% bluesky_feed %}` in a template after loading
`blueskyfeed_tags`.

Optional CSS is bundled at `blueskyfeed/css/blueskyfeed.css`. Host sites
should load it after their base stylesheet, for example:

```html
<link rel="stylesheet" href="{% static 'blueskyfeed/css/blueskyfeed.css' %}">
```

## Configuration

`BLUESKYFEED_HANDLE`
: Bluesky handle to display, for example `peterkmurphy.bsky.social`.

`BLUESKYFEED_SIDEBAR_TITLE`
: Heading shown above the feed. Defaults to `Recent Posts`.

`BLUESKYFEED_FEED_LIMIT`
: Number of posts to request (1–20). Defaults to `5`.

`BLUESKYFEED_TIMEOUT`
: HTTP timeout in seconds. Defaults to `5`.

`BLUESKYFEED_CACHE_SECONDS`
: Cache lifetime in seconds. Defaults to `300`.

`BLUESKYFEED_USER_AGENT`
: User-Agent header sent to the public Bluesky API.

## Template tag

```html
{% load blueskyfeed_tags %}
{% bluesky_feed %}
```

Override the default template by creating `templates/blueskyfeed/feed.html` in
your project.
