Giter Site home page Giter Site logo

mrwillcom / next-mastodon-gallery Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.08 MB

A Next.js powered gallery for Mastodon.

Home Page: https://gallery.mrwillcom.com

License: MIT License

JavaScript 1.38% TypeScript 68.77% SCSS 29.86%
gallery mastodon nextjs

next-mastodon-gallery's Introduction

Next Mastodon Gallery

A Next.js-powered gallery for Mastodon.

Preview / One-Click Deploy

Preview screenshot

Preview screenshot of details drawer Preview screenshot of details drawer

Getting Started

Deploy with Vercel

After deployment, you may need to make changes to configuration.

Configuration

A ready configuration is in config.tsx, options are all commented and typed.

About Mastodon API query URL

First, you need to get your account ID, according to Lookup account ID from Webfinger address - Mastodon documentation, you can make a request to your instance:

> curl 'https://<your-instance>/api/v1/accounts/lookup?acct=<your-username>'
{"id":"72358"...}%
       ^^^^^
       account ID

Then, you can refer to Get account’s statuses - Mastodon documentation, here is an example:

> # get all statuses tagged with `#photography`, excepted the ones without media attachments.
> curl 'http://<your-instance>/api/v1/accounts/<your-account-id>/statuses?only_media=true&tagged=photography'

Once you get a satisfied URL, put it into query in config.tsx.

Development

First, run the development server:

pnpm dev

Then, open http://localhost:3000.

next-mastodon-gallery's People

Contributors

mrwillcom avatar

Stargazers

Ethan Wong avatar Avinash avatar Kevin Zhong avatar Louis Aeilot avatar

Watchers

 avatar

next-mastodon-gallery's Issues

Add OGP Optimization

The Open Graph protocol enables any web page to become a rich object in a social graph. So I think this project needs some optimization from OGP so as to allow better experience when it comes to sharing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.