Skip Navigation
Xylight

If you need to contact me, contact @[email protected] instead.

Posts
18
Comments
63
Joined
2 yr. ago
  • Actually you are on the latest stable release, phtn.app is currently running a beta 2.0

  • It is irrelevant if an instance doesn't host Photon, because it is accessible from phtn.app or self-hostable.

  • Photon @lemdro.id
    Xylight @lemm.ee

    Future of Photon in 2025

    Photon I feel is a representation of my general ability to do software development, as it's my biggest project. I'm disappointed in myself for how it's been going so far suddenly.

    I go through these switches in terms of my philosophy with software, and I guess right now I'm in the "it should do what it should well and expectedly, stop trying to do more and sacrifice the main functionality" phase.

    I don't like where Photon ended up, I added too many """features""" that were half baked and just complicated the codebase and added more issue vectors. What people use the most: posts and commenting, have been suffering in their usability with random bugs and a non-seamless experience.

    I've also been going much too slow on my promises for Svelte 5, and I can't change much until I've finished that or I'll get conflicts. I've been too lazy because of school and my life.

    As soon as I finish the svelte 5 migration, I'm gonna change these things:

    • No more features that are out of scope. The
  • When developing photon I always end up with more issues on chrome browsers than firefox. and half of those are because of its god awful scrollbar. Please use an overlay scrollbar instead of shifting the stupid page around, chrome.

  • The way I choose my icons for Photon is I kinda just scroll the list of my library and pick one that fits.

  • Use xdg-ninja to help clear out unwanted files not in your home folder, and give tips to move them into a normal folder like .config

  • That's an option. You can change the thumbnail alignment to the left, then use compact instead of list mode. OP is using bad settings.

  • Hi everyone, I'm the dev. Reading all these comments really hurts when it's something you've poured your heart and soul into for over a year.

    There's reasons I do everything I do in this UI, and my primary goal is to make Lemmy accessible for everyone.

    This is the "cozy" view as well, but there's a "compact" view for people like me who enjoy more information density. Again, my end goal is to make Lemmy accessible. I don't do this for the sidebars for convoluted reasons I won't get into.

    I'm not the one trying to advertise it, and I've never really tried to because of the fear of disapproval. I think I should advertise it myself now because then I can showcase the best parts and not get misunderstood. This screenshot uses the "list" view, imo the worst one, with some cursed chrome scrollbars.

    Now that I see that the majority of users believe this sucks, I'm not sure if my mission is worth it or if I'm even doing it right.

    I'm probably being too sensitive to criticism which I should expect from any project. But this project is the only one I used to feel proud of, then people chiming in claiming it's the ugliest thing they've seen. I don't know im blind to design which is the only thing I considered myself "good" at in terms of web dev.

  • General purpose instances are terrible for decentralization because they basically just put every reddit community on .world. instances revolving around a certain topic or region (like country instances or slrpnk or lemdroid) make more sense with the hierarchical structure of Lemmy.

  • If there's an epic games game you want but don't want to use the epic launcher or you're on Linux, Heroic Games launcher id a good choice

  • That's a good point, i didn't consider the value of the content it creates

  • why the hell do websites even have those 6 separate input fields? you can just have one and style it differently

  • to play devil's advocate, from reddit's view those third party apps were just using server resources and making them no money.

  • i'm pretty confused why people here understandably hate DRM, monopolies, and billionares, but are fine with steam and Gaben

  • I need to add language settings to communities and profiles. I really dislike how lemmy handles this though.

    If you change it in lemmy-ui, it will propagate to Photon because it's an account wide setting.

  • Photon seems to have a semantic layout that firefox detects as settable into reader mode.

  • Hey how did you get my world 😡😡

  • Can confirm. AAAAAAAAAAAAA (peaked 39c today)

  • Photon @lemdro.id
    Xylight @lemm.ee

    Photon theming changes, new markdown renderer, and lots of tweaks

    verification for lemmy apps: LemmyApps/#2

    cross-posted from: https://lemm.ee/post/39906482

    There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2.

    Biggest changes

    Command palette

    • Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc.

    Theming changes

    • You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly)
    • Admins can set their own default theme for photon with PUBLIC_THEME.

    New markdown renderer

    • Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown.
    • Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblock
  • Same happens for me on gboard.

  • Lemmy Apps @lemmy.world
    Xylight @lemm.ee

    Photon theming changes, new markdown renderer, and lots of tweaks

    There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2.

    Biggest changes

    Command palette

    • Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc.

    Theming changes

    • You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly)
    • Admins can set their own default theme for photon with PUBLIC_THEME.

    New markdown renderer

    • Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown.
    • Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblocks can be copyable.

    Lots of languages

    • There are a ton of languages thanks to the community.
    • English
    • Hebrew
    • Bulgarian
    • Chinese
    • Dutch
    • Estonian
    • Finnish
    • Fren
    Photon @lemdro.id
    Xylight @lemm.ee

    How would you feel about this feature?

    I've been messed around with random features in photon, and i tried something stupid today.

    I was experimenting with an AI post summary feature, (just because i wanted an excuse to make a cool animation) but as I was using it, it actually ended up kind of useful.

    If I were to implement this feature, it would only work like this:

    • The user would have to opt-in manually.
    • The user would need to specify what AI service they wish to use.
    • The user would have to specify their own API key, if the service requires one.

    In the end, I probably won't add this, since you can just copy/paste the content into an AI app. But it could also be slightly more convenient.

    What do you think?

    Photon @lemdro.id
    Xylight @lemm.ee

    Thanks to all translators!

    I just wanted to say thanks to all the translators of photon! Even if you only changed 1 word, translating this large app is not easy, especially because it's hard to find the context for certain actions.

    With all of your help, Photon is now available in 13 languages!

    English, Hebrew, Bulgarian, Estonian, Finnish, French, German, Japanese, Dutch, Polish, Chinese, and Portuguese!

    If you want to help translate, you can do so at https://weblate.xylight.dev/. You can translate as little or as much as you want!

    Lemmy Apps @lemmy.world
    Xylight @lemm.ee

    To any devs of a new Lemmy app... don't hardcode your app's strings!

    This is applicable to almost any piece of software with text in it. When starting your new app, you should make sure you are using a separate language file for the strings in your app. This makes text reusable, and you can change it all in one place.

    Once your app gains a community, if you did this, you can also get translators!

    With Photon i made the massive mistake of hardcoding everything up until the app became massive, and my PR for un-hardcoding all the strings looks like this:

    It was worth it though! Because the community has translated it into 11 languages!

    Photon @lemdro.id
    Xylight @lemm.ee

    Which dataset should be used for Photon's media bias action?

    Photon has a feature on links which gets data from Media Bias Fact Check to determine its media bias. However, I've seen controversy on lemmy.world's bot with this, and I'm not sure if this is the best place to get the data from.

    Should I use a different dataset? like allsides'?

    Photon @lemdro.id
    Xylight @lemm.ee

    Admins: Photon now offers a node server

    A lot of admins trying to host photon have been unable to after i switched from Node to Bun server. Bun is a newer server that is significantly faster, but it seems to have caused issues when hosting for weird reasons when people try to host it.

    Starting from v1.31.2, I will publish node images as well as bun images, it's very simple to access:

    Instead of ghcr.io/xyphyn/photon:tag, do ghcr.io/xyphyn/photon:tag-node

    Photon @lemdro.id
    Xylight @lemm.ee

    Did people think the old dark theme was black?

    When I changed the default theme I saw someone say I should name the classic theme "AMOLED". Apparently, the theme was so dark to a lot of people that it appeared black! I guess my designer's eye and working on photon for over a year made me not notice this.

    The classic theme uses a very dark gray for the main background, and an even darker gray for the sides. There was never any black, except in very very early versions of Photon.

    Photon @lemdro.id
    Xylight @lemm.ee

    i finally fixed user and community links

    TL;DR: nonstandard community and user links should work properly now, when people waste their time by doing [[email protected]](https://instance.url/c/community) instead of [email protected]

    ::: spoiler rant ok so why do people, instead of using the proper syntax for users and communities, ([email protected] and @[email protected]) they take the EXTRA EFFORT to make it a NONSTANDARD MARKDOWN LINK which means linkify-it (which even the official lemmy-ui uses) won't work properly because its meant to make custom syntax like this to work very nicely BUT THEY MAKE IT A MARKDOWN LINK which means I SHOULDNT BE MODIFYING IT but they make it so i have to BECAUSE THEY TYPED EXTRA KEYSTROKES, USED MORE DB DATA, JUST TO RUIN THEIR LINK. JUST USE THE NORMAL LEMMY LINK FORMAT INSTEAD OF MARKDOWN LINK STUFF AAAA ok so get this right people are out here taking the PERFECTLY GOOD syntax for users and communities the one with exclamation point and at sign and whatever and blah

    Photon @lemdro.id
    Xylight @lemm.ee

    New markdown renderer

    This will be a test post for markdown, as I'm switching to a faster markdown renderer that will allow me to do some cool stuff, like allow expanding images and running my code in markdown.

    It might release with v1.31.2.

    Photon @lemdro.id
    Xylight @lemm.ee

    Photon v1.31 -- Command Palette!

    arguably a bigger update than v1.31, lots of backend changes for better speed

    i've been using this command palette a lot because it makes doing everything so fast. let me know if there's any action or link you'd like added, since it's very easy to do.

    What's Changed

    • feat: add a command palette by @Xyphyn in https://github.com/Xyphyn/photon/pull/364
      • Press / or ctrl + p or right click the photon logo to bring up the command palette
      • Instantly start typing to find a link, or run an action
    • design: Make compact mode even more compact
    • misc: add infinite scroll to communities too
    • code: rewrite how post feeds are handled, improving speed and cleanliness and allowing more opportunities for caching.
    • misc: add support for upvoted/downvoted posts and uploaded media in the profile page
    • strings: tweak some strings for better clarity
    • Vertical postlink layout for mobile by @sevonj in https://github.com/Xyphyn/photon/pull/360

    Full Changelog: https://gith

    Photon @lemdro.id
    Xylight @lemm.ee

    Command Palette!

    I'm working on a command palette for Photon, which will allow you to press ctrl + p or / to open a prompt where you can type and go to a page or a recent post instantly.

    Are there any actions or links that you'd want me to add?

    Photon @lemdro.id
    Xylight @lemm.ee

    Big speed improvements and infinite scroll

    This update is currently available on phtn.app, with a tagged release coming soon. Post navigation is down by 65% and returning from posts is instant.

    What's Changed

    • feat: add infinite scroll
      • You can now scroll down infinitely without clicking next!
      • As a bonus, returning from a post page is now instant.
      • Of course, you can turn it off in settings.
      • A virtual list is also used so that infinite posts can be loaded with no performance impact.
    • feat: parse tags from title
      • Tesseract dev and I had the same idea, [tags in brackets] in posts will automatically be converted to a badge/flair. You can click it to search for all posts with that tag in a community.
      • I added options which let you choose flairs to blur posts of or hide.
    • tweak link design
    • improve smaller screen support
    • codebase: move $profile to a derived, immutable store to improve consistency
    • i18n: add new languages/update languages
      • Chinese
      • English
    Lemmy Apps @lemmy.world
    Xylight @lemm.ee

    Big speed improvements and infinite scroll

    This update is currently available on phtn.app, with a tagged release coming soon. Post navigation is down by 65% and returning from posts is instant.

    What's Changed

    • feat: add infinite scroll
      • You can now scroll down infinitely without clicking next!
      • As a bonus, returning from a post page is now instant.
      • Of course, you can turn it off in settings.
      • A virtual list is also used so that infinite posts can be loaded with no performance impact.
    • feat: parse tags from title
      • Tesseract dev and I had the same idea, [tags in brackets] in posts will automatically be converted to a badge/flair. You can click it to search for all posts with that tag in a community.
      • I added options which let you choose flairs to blur posts of or hide.
    • tweak link design
    • improve smaller screen support
    • codebase: move $profile to a derived, immutable store to improve consistency
    • i18n: add new languages/update languages
      • Chinese
      • English
      • Estonian
      • French
      • Finnish
    Photon @lemdro.id
    Xylight @lemm.ee

    test

    I'm working on adding a feature that will convert tags in the title to flairs, which you can add custom filters/rules to.

    Photon @lemdro.id
    Xylight @lemm.ee

    Big speed improvements and infinite scroll

    Hey, I've been working on a few changes to photon that make it a lot faster to open posts and return, and as a result of these changes I can also make infinite scroll work. If you go to this link, Vercel will have commented on the post with a preview link. Those are basically the beta links.

    Preview Link

    Let me know of any bugs and any changes you'd like!

    Current roadmap

    • Make this not duplicate posts in memory
    • Make this work on all posts
    • Use a virtual list for better render performance
    Photon @lemdro.id
    Xylight @lemm.ee

    Lemmy now has alt text, photon is adding it

    all 0.19.4 features coming soon