While at a summer barbecue with her brother and his friends, Joyce Kim checked her e-mail and saw an unfamiliar name.
The e-mail was from a guy she'd supposedly met at a party who now wanted to take her out on a date. The only problem was, she didn't remember ever meeting him.
She read the e-mail aloud to her brother Jared and his entourage — all "tech geeks" who had toted their laptops to the party. The group immediately turned to their keyboards to do a little cyber-stalking.
While working with his friends to Google, check Friendster and search MySpace for any information they could find on the prospective date, Mr. Kim had a thought: Why not write a program that searches all the social-networking sites at once and creates a profile of the person you're searching for?
Within a few days, Jared Kim was running a company designed to do just that.
His experience is both an example and a cautionary tale for a new generation of code writers, programmers and Web developers who are increasingly using social-networking sites as platforms to start their own businesses.
This new "cottage industry" has become so prominent that even Facebook — a popular college social-networking site — agreed in May to partner with some of these so-called "third-party" businesses. The deal will allow select companies to run their programs off Facebook's platform and generate ad revenue.
But when Mr. Kim first had the idea to create his company at that barbecue in May 2006, it was more of a fun summer project than a moneymaking venture.
A lot of people spend hours browsing sites to stalk friends, ex-girlfriends and love interests online "but there isn't a streamlined process that's, like, one shot, boom," said the now 19-year-old freshman at the University of California at Berkeley.
In one day, Mr. Kim had built a program he calls "a little hack I put together" and named it Stalkerati.
In three weeks, the site was featured in a blog. In another week, 10,000 users were on the site per day.
All the traffic soon got the attention of MySpace, the social-networking company owned by News Corp.'s Fox Interactive Media. MySpace considered Stalkerati a security risk since it required users to give their MySpace password and user name. It blocked Stalkerati, and other social-networking sites followed.
MySpace is still, in many ways, where it's at in the third-party world. It allows users to type in Web code directly into profiles. That allows them to change the look of their actual profile page or create programs that work off the MySpace site to provide services it doesn't offer.
"Anything you can do on the Web is at least possible on MySpace," said Matt Brown, a 25-year-old MySpace user and co-owner of an interactive-marketing agency in Denver.
Do a Web search for MySpace and you'll find a wide variety of third-party companies, including sites that offer codes that can add colors or background pictures to your profile page. Other companies offer additional tools for inputting pictures or sending instant messages to MySpace friends.
Many of these sites are funded with click-through ads that can make the owner anywhere from $1 to $10 for every 1,000 page views. Since many of these sites get thousands — or even hundreds of thousands — of page views, the money can add up.
Although no one keeps track of the number of third-party sites and companies, Pete Cashmore, who runs the social-networking blog Mashable, said the number is in the thousands and growing. Every time users demand a new function for MySpace or a new way to personalize their profiles, programmers respond, he said.
"The market really seems to fill in those gaps really quickly," he added.
Mr. Brown, for example, uses a Web site called myspacelog.com, which has tapped into a big demand from users desperate to know who's been checking out their profiles. The site keeps a list of the unique Internet Protocol address of its subscribers, and each time one of its users looks at Mr. Brown's profile, it adds that user identity to a log of who's viewed him.
If the viewer isn't a subscriber, Mr. Brown can still see the user's IP address, which can be used to look up the city and state where it's registered.
In other words, when his ex-girlfriend in Boston is checking out his profile, Mr. Brown has a pretty good idea.
The site has signed up almost 200,000 users since it started a year ago. Social-networkers seem to be willing to give up the anonymity of the Web to satisfy their curiosity and find out if the girl you once loved still thinks of you.
"I think MySpace might enjoy having us around," said co-founder Tom Gill, a 25-year-old Orlando, Fla., resident.
But user demand doesn't necessarily mean a business will succeed in the social-networking sphere. Since many of these sites work off the MySpace platform, they must abide by MySpace's terms of service, which prohibits any unauthorized commercial use of the site.
MySpace said although it's shut down and blocked some sites like Stalkerati for violating its terms, it's mainly encouraged innovation and development.
"We have always offered our users a blank canvas for their creativity and self-expression, whether it's customizing profiles, importing HTML, or embedding third-party services," the company said in a statement.
In fact, MySpace has recently made some inroads with third-party services. Last month, MySpace's parent company announced it would buy Photobucket, which lets users share photos and videos with each other online.
Fox Interactive also bought Flektor in May, a photo- and video-sharing site that had been open to the public for only a month. Fox plans to incorporate Flektor's slide shows, video mash-ups and interactive presentations into MySpace.
But for many of those starting a new third-party MySpace business, like Jared Kim, MySpace has been more of a policeman than a benefactor. He's stopped trying to work around the MySpace block. "It's pretty much an endless battle," he said.
"They're basically a gatekeeper," Mr. Kim said. "They choose who's allowed to stay and who can't come in."