All workCase 25 / 35

Astrics

A social space for NASA's daily astronomy images

TL;DR · Problem

NASA publishes a remarkable image every day, but a plain feed of them is easy to forget.

TL;DR · Built

Astrics began as a small web app that shows NASA's astronomy picture of the day, aimed at students and space enthusiasts.

TL;DR · Outcome

Astrics is a public Django project with accounts, posts, follows, search, scheduled content and file de-duplication.

Cover — Astrics
Astrics screenshot
01

Overview

Astrics began as a small web app that shows NASA's astronomy picture of the day, aimed at students and space enthusiasts. Over about two years it grew into a social platform: people sign up, post images, videos and text, follow each other, like, comment, save favourites and search.

I built it alone with Django. A scheduled job pulls each day's NASA entry and notifies users, files are stored in Appwrite with duplicate detection, and a direct messaging feature was started on top.

02

The challenge

NASA publishes a remarkable image every day, but a plain feed of them is easy to forget. The idea was to turn it into a place where people could share what they find and talk about it.

That meant solving everyday backend problems on a small budget: fetching content on a schedule, storing user uploads without paying twice for the same file, and keeping profile and post search fast.

03

The goal

Make the daily NASA picture a starting point for a small community.

  • 01Fetch the astronomy picture of the day automatically and tell users when it is new.
  • 02Let users post, follow, like, comment and save favourites.
  • 03Store uploads outside the app server and avoid keeping duplicates.
  • 04Search users and posts, and add direct messages.
04

Daily content from NASA

A Celery task calls NASA's astronomy picture API, saves the title, explanation, image and media type for the date, and emails users when a new entry is created. Celery beat runs it on a schedule, and failures are reported to the admins by email.

Home feed2 screens
Home feed, dark theme1/2
Home feed, light theme2/2
05

The social layer

Users have profiles with a profile picture and cover, and can follow each other. Posts can be an image, a video or text, and other users can like them, comment and save them. Posts and profiles are searchable through PostgreSQL full-text search vectors.

User profile and posts
06

File storage and cleanup

Uploads go to Appwrite storage. Each file is hashed with SHA-256, and a reference count is kept so the same file is stored once. A scheduled cleanup task deletes files that nothing refers to any more.

07

Messaging

I added a messaging page and an Appwrite-backed message store for direct conversations. The last commits in the history are on this feature, so it is an early version rather than a finished one.

08

More screens

Astrics login page
09

The outcome

Astrics is a public Django project with accounts, posts, follows, search, scheduled content and file de-duplication. It is archived. It served as a place for me to learn background jobs, third-party storage and a full-text search setup, and the repository holds around 165 commits of my own.

Work together

Have an idea worth building?

I take products from first sketch to shipped, on the web, on mobile and on-chain. Let's talk about yours.