I was just messing around with Cursor, wanted to see what it was capable of.
Cloned an opensource repo of a fairly famous app written in Ruby. I wanted to reverse engineer some things just to get some ideas for my own app.
I asked Cursor to create an ERD from the ORM config so I could understand the db schema.
■■■■… it spits out some text for mermaid, I just pasted it into the web app and now I can see the complete schema.
Don’t care much for Ruby so I asked Cursor to port some of the source files from Ruby to Typescript and a few moments later we got some Typescript classes that seem to implement the same features as was written in Ruby. I did not test them or even see if they compiled or not but at least it was fun to watch.
This Ruby app has controller classes as it’s endpoint implementations, we can’t have any of that, so I asked Cursor to rewrite them in Typescript as Hono.js route handlers.
BAM… we got Hono async route handlers!
Looking at the data model of this app, I asked Cursor what one of the properties on a particular entity class was used for in the app and Cursor provided some really good information.
Then I asked Cursor how it would build this particular feature and what I got back was basically a fairly detailed and technical blog post.
Needless to say, I subscribed to the Pro plan and looking forward to all the fun things I can do with Cursor.