Getting Structured Data from Web Pages with AI and Re-usable Specs / / No Comments As I say from time to time, every now and then I build something as a proof of concept and the result is… ok? I’m not really sure if the idea actually made sense and if the final result is usable, but the exploration was interesting enough that I think it warrants sharing with you good people. That’s what today’s post is. This demo all began with a simple idea – how do you handle getting RSS like content from a site that doesn’t actually have an RSS feed? This typically relies on looking at the page as data to be parsed. For a while now, there have been multiple good ways to turn a web page into structured data. As an example, AgentQL lets use a GraphQL-like... more → Posted in: JavaScript Tagged with: data, from, Getting, Pages, Reusable, Specs, Structured
Generating PDF Invoices from Word Templates with officeParser / / No Comments Last week I shared a demo ("Generating PDFs from Word Templates with officeParser") that made use of the awesome officeParser open source library. That demo was a simple "customer report" web app that took custom data and a Word template. Once the form was submitted, the library converted tokens in the Word template to real data and output a PDF. I decided to build another demo using the library, this time on the server with a simple Node.js script. As I mentioned previously, this new feature mimics Adobe’s Document Generation API. At the time I wrote my blog post, the library just supported simple transformations. So given “ in your Word template, if you passed... more → Posted in: JavaScript Tagged with: from, Generating, Invoices, officeParser, Templates, Word
Generating PDFs from Word Templates with officeParser / / No Comments I’ve been singing the praises of the officeParser library for a while. It’s an open source JavaScript library that can parse, extract, and convert between PDFs and Office documents, as well as OpenOffice, ePub and more. My demos have all focused on client-side examples but obviously the library would work great in a server side workflow as well. I haven’t worked at Adobe for years now, but I still get strangely excited working with documents. I’ll just add that to the long list of reasons I’m a big nerd. A few weeks ago, I reached out to Harsh Ankur about an idea inspired by Adobe’s Document Generation API. This was probably my favorite API in their suite of... more → Posted in: JavaScript Tagged with: from, Generating, officeParser, PDFs, Templates, Word
What’s Missing from Human History? / / No Comments The Globe of History is a new interactive map that recounts 6,000 years of human events. In fact, not only does it recount history – it reinterprets it as well.For example, it reveals that what most historians have considered one of the most revolutionary and significant periods in human history was, in fact, a new dark age. That’s right – according to The Globe of History, only one significant Maps Mania… more → Posted in: Interactive Maps Tagged with: from, History, Human, missing, What's
Extracting Data from Web Pages with AgentQL and BoxLang / / No Comments I discovered AgentQL a few weeks ago and have been thinking about it quite a bit. In a nutshell, it lets you perform queries against a web page. They’ve got a simple query language that kinda reminds me of GraphQL, but simpler. So for example, consider the page you are on right now – if I wanted to get the tags, I could use this query: { tags[] } And it would return: { "tags": [ "#development", "#boxlang" ] } What if I wanted the links? I could change my query to express this: { tags[] { label url } } And then get: { "tags": [ { "label": "#development", "url":... more → Posted in: JavaScript Tagged with: AgentQL, BoxLang, data, Extracting, from, Pages
Using GenAI to Create a SDK from Sample Code / / No Comments I’ve been experimenting more and more with AI-assisted coding (not gonna call it vibe coding, even when I do), and the results have been incredibly interesting. Today, I decided to try something interesting – generating a SDK for an API. There are multiple tools out there that can convert an OpenAPI specification to an SDK (and those tools I’ve seen are pretty darn cool), but I wanted to attempt another route. Earlier this month I blogged about the new Foxit PDF APIs I’m working with. These APIs are all really simple, which is good of course, but when prepping for the release, I wanted to build code samples for every possible operation. I did so, and they’re up in... more → Posted in: JavaScript Tagged with: code, create, from, GenAI, Sample, using
Results from My Vibe Coding Live Stream / / No Comments Usually for my Code Break shows, I assume if folks miss it they’ll just check out the recordings, but while my earlier session is fresh in my mind, I thought I’d share a bit more about the session and a look at the code generated. It actually went a heck of a lot better than I anticipated to be honest, and was fun. To be clear, it wasn’t perfect, and I’ll touch a bit on what my tool of choice struggled with, but overall I’m really impressed with what I got built in an hour. What I Used and Why Constant readers here know I almost always use Google Gemini for anything AI related, but I’ve been trying to branch out a bit lately. Also, I found their Visual Studio... more → Posted in: JavaScript Tagged with: coding, from, live, results, stream, Vibe
Creating a PDF Book from Markdown with BoxLang / / No Comments Recently I’ve done some blog posts on BoxLang involving Markdown and PDFs, and I was curious if I could put together something that really demonstrated a complete tool of some sort. With that in mind, I built a "book" system where you can author pages in Markdown and use a BoxLang CLI script to generate a resulting PDF. It’s more a POC than a real app, but it was pretty fun to build. Here’s what I did. Functionality At a high level, the book is created from a source of Markdown files. Each Markdown file can use front matter (data on top) to define variables that are evaluated at the time the book is created. You can also use a "global" data file to define... more → Posted in: JavaScript Tagged with: book, BoxLang, creating, from, Markdown