Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

This is Knap. It's a new language I created that turns data into Markdown. The syntax should feel familiar and comes with wonderfully pleasant features to modify and format plain text. Knap is open source. Over a million people already use Knap directly or indirectly because it started as...

242,038 görüntüleme • 1 ay önce •via X (Twitter)

41 Yorum

kepano profil fotoğrafı
kepano1 ay önce

Knap: a simple template language that turns data into Markdown using logic, variables, and filters.

Joost Plattel profil fotoğrafı
Joost Plattel1 ay önce

It also means "pretty" in Dutch ;-)

Ian Maurer 🧬 profil fotoğrafı
Ian Maurer 🧬1 ay önce

I love that the share button now works with Obsidian, but the one feature of Obsidian Web Clipper that I enjoyed was that it kept the URL in the frontmatter. I actually didn't like many more of the properties that were included, but knowing the URL of the source is super helpful.

kepano profil fotoğrafı
kepano1 ay önce

Just add URL to your template!

Ian Maurer 🧬 profil fotoğrafı
Ian Maurer 🧬1 ay önce

ofc you thought of it.

Pitch profil fotoğrafı
Pitch1 ay önce

Everyone builds scrapers, but the real bottleneck is clean data-to-Markdown formatting before context hits an LLM. Piping Defuddle into Knap quietly solves that entire ingestion layer.

Spirit of Star profil fotoğrafı
Spirit of Star1 ay önce

what makes Knap different than Djot?

kepano profil fotoğrafı
kepano1 ay önce

They are unrelated in purpose. Djot is an alternative to Markdown. Knap is a templating language to generate Markdown. Though it's not really optimized for that, Knap can also generate Djot.

Spirit of Star profil fotoğrafı
Spirit of Star1 ay önce

Obsidian ecosystem is extremely interesting, how new things keep being added even though Obsidian does serve it's purpose well, now contributions seemingly are going towards Markdown Ecosystem as a whole

Daniel White profil fotoğrafı
Daniel White1 ay önce

@round This is crazy man, you’re cooking

Sonion Ring profil fotoğrafı
Sonion Ring1 ay önce

@obsdmd So it’s Tera basically

kepano profil fotoğrafı
kepano1 ay önce

@obsdmd Knap's syntax is intentionally designed to feel familiar if you've used Twig, Liquid, Jinja, Tera, etc. But Knap is specifically designed for generating Markdown with frontmatter, so it has many more built-in filters for that purpose and different defaults for whitespace.

Kaleb profil fotoğrafı
Kaleb1 ay önce

Will you be updating your obsidian skills repo to include Knap? 👀🤔

John Rood profil fotoğrafı
John Rood1 ay önce

this is a sneaky-good agent primitive: keep structured data as truth, compile only the exact Markdown each run needs, and stop burning context on giant raw JSON blobs.

Jonathan Laserson profil fotoğrafı
Jonathan Laserson1 ay önce

I read your text and watched the video and I still don't understand what knap is doing. How is the output with all the data generated from the input which is just code?

☉ Sunny Operator (sol/acc) profil fotoğrafı
☉ Sunny Operator (sol/acc)1 ay önce

Looks like it's heavily inspired by Jinja + Shopify Liquid

R profil fotoğrafı
R1 ay önce

Love this!!!

Tristan 📚 profil fotoğrafı
Tristan 📚1 ay önce

@obsdmd Reminds me of Nunjucks, which I used to use a lot with the 11ty static site generator. Nice, I’ll check it out.

Thord D. Hedengren⚡️ profil fotoğrafı
Thord D. Hedengren⚡️1 ay önce

Intriguing!

Anup Chavan profil fotoğrafı
Anup Chavan1 ay önce

This will be very useful for my Custom Views plugin. Thanks ❤️

Eyayaw Beze profil fotoğrafı
Eyayaw Beze1 ay önce

why new lang? why not python, r like

kepano profil fotoğrafı
kepano1 ay önce

it's not trying to be a full programming language, it's designed to be simple and safe

Eyayaw Beze profil fotoğrafı
Eyayaw Beze1 ay önce

i see. we don't have to learn new lang anyway thanks to ...

🇯🇵 human touched 🇯🇵 profil fotoğrafı
🇯🇵 human touched 🇯🇵1 ay önce

it can be hard to truly blow our minds in this day and age, but Klap will blow millions... 🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯🤯

AutoDoc profil fotoğrafı
AutoDoc1 ay önce

Welp, that's more or less what I have been looking for. Seems great!

Gregor profil fotoğrafı
Gregor1 ay önce

When I built markdown generation for transaction summaries, conditional logic crept into every template until nothing was maintainable. Rewrote it three times before settling on a dumb string builder.

Kevin profil fotoğrafı
Kevin1 ay önce

@obsdmd We don’t deserve you

Silas profil fotoğrafı
Silas1 ay önce

This is amazing. Will definitely try and use this in some apps I'm working on.

Lux Moreau ✨ profil fotoğrafı
Lux Moreau ✨1 ay önce

nice

Remi profil fotoğrafı
Remi1 ay önce

i think my claude will like this

beto.group profil fotoğrafı
beto.group1 ay önce

Game changer, most data won't always need to be store location simply knap it Keep up the great work 🫡

Mikhail Kashkin profil fotoğrafı
Mikhail Kashkin1 ay önce

Love new Jinja templates!

tolliko profil fotoğrafı
tolliko1 ay önce

@obsdmd will it be part of obsidian?

Fluxo Consciente profil fotoğrafı
Fluxo Consciente1 ay önce

I cannot find words to describe the amount of amazement i get from kepano... omg

François Vaux profil fotoğrafı
François Vaux1 ay önce

Any plan on adding custom blocks à-la Nunjucks/Jinja through the API? If so, I'd definitely switch to Knap for my Blueprint Obsidian plugin :D

keshav profil fotoğrafı
keshav1 ay önce

might as well throw in support to knap on my markdown-graphs lol

Matt Miller profil fotoğrafı
Matt Miller1 ay önce

dude this is incredibly cool. one thing i love about vue is how conditionals are scoped to the element, so instead of: {% if cast %} {{ cast | sort:"Actor" | table }} {% endif %} it's: {{ if cast | sort:"Actor" | table }} would love a shorthand :)

peculiarnewbie profil fotoğrafı
peculiarnewbie1 ay önce

Jfc only you will make a language just to make a web clipper. No wonder it's the best web clipper around

Ian Maurer 🧬 profil fotoğrafı
Ian Maurer 🧬1 ay önce

Prfect timing! Thsnks :)

Martin Navrátil profil fotoğrafı
Martin Navrátil1 ay önce

Bro, that is just jinja with compilation target set to markdown instead of html...

meowy catgirl profil fotoğrafı
meowy catgirl1 ay önce

good choice of name

Benzer Videolar