GithubHelp home page GithubHelp logo

komorebi's Introduction

Hi there πŸ‘‹

komorebi's People

Contributors

dependabot[bot] avatar kgaughan avatar sourcery-ai[bot] avatar

Watchers

 avatar  avatar  avatar

komorebi's Issues

Use ogp.py to construct embeds for platforms that don't support oEmbed

I'm thinking of the likes of Bandcamp. Here's an example of such content:

<meta property="og:video" content="https://bandcamp.com/EmbeddedPlayer/v=2/track=1335882601/size=large/tracklist=false/artwork=small/">
<meta property="og:video:secure_url" content="https://bandcamp.com/EmbeddedPlayer/v=2/track=1335882601/size=large/tracklist=false/artwork=small/">
<meta property="og:video:type" content="text/html">
<meta property="og:video:height" content="120">
<meta property="og:video:width" content="400">

That could be translated into an iframe easily enough, though it's not something that could be wrapped in a façade, so some kind of lazy loading might work better here, so it only gets downloaded if it scrolls into view.

Vimeo embeds

Here's an example embed from Vimeo:

{
  "type": "video",
  "version": "1.0",
  "provider_name": "Vimeo",
  "provider_url": "https://vimeo.com/",
  "title": "Hand Drawn Logos",
  "author_name": "Seb Lester",
  "author_url": "https://vimeo.com/user5124626",
  "is_plus": "1",
  "account_type": "plus",
  "html": "<iframe src=\"https://player.vimeo.com/video/127032605?app_id=122963\" width=\"438\" height=\"320\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen title=\"Hand Drawn Logos\"></iframe>",
  "width": 438,
  "height": 320,
  "duration": 154,
  "description": "A compilation of the most recent hand drawn logos from my Instagram page,  www.instagram.com/seblester.",
  "thumbnail_url": "https://i.vimeocdn.com/video/517674965_295x166",
  "thumbnail_width": 295,
  "thumbnail_height": 217,
  "thumbnail_url_with_play_button": "https://i.vimeocdn.com/filter/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F517674965_295x166&src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png",
  "upload_date": "2015-05-06 08:48:18",
  "video_id": 127032605,
  "uri": "/videos/127032605"
}

It's a bit nicer than YouTube's one, but ensuring the thumbnail is the right size will take a bit more work.

Generation of subresource integrity hashes

Dealing with these is really annoying. What I think would be useful are:

  • A subcommand for Flask to generate the hashes statically so they can be saved to a JSON file and used during a production deployment.
  • Automatic generation of the SRI hashes for when it's running in development mode.

Could be worth turning into a package of its own.

Embed scaling

YouTube recently started making its embeds tiny. Here's an example:

<iframe
    width="200"
    height="113"
    src="https://www.youtube.com/embed/1234567890a?feature=oembed"
    frameborder="0"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
    allowfullscreen></iframe>

This is very, very small. I think I need a way to rescale things like these.

Make the add/edit form dynamic

Some form of inline editing would be nice, as would a way to preview embeds. This would be a good opportunity to play with HTMX.

Add Full Text Search support

It's one thing to have all these entries, but it's rather useless to keep them around if there's no way of searching them. SQLite has a decent enough FTS engine built in, so there ought to be a search facility added.

Spider for broken links

It might be useful to check older links occasionally for freshness, by doing a conditional GET/HEAD on them to ensure they're still around. Anything other than a 304 (or a 200 for some dynamically generated pages) should be flagged.

Some kind of report of their status might also be nice.

Sitemap and partial sitemap generation

Komorebi should have a mechanism for generating sitemaps, including a flag to accept a last modification date, so it only generates the new sitemap if necessary.

Accompanying this will be a script to manage a sitemap index.

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.